aboutsummaryrefslogtreecommitdiff
path: root/t
Commit message (Collapse)AuthorAge
...
* | Uncomment the CVS keyword substitution mode tests, and make them pass:Amitai Schlair2012-01-26
| | | | | | | | | | Extract cvs_keyword_subst_args() and ensure it runs in $config{srcdir}. Using Perl's -T operator appears to work equally well, perhaps switch?
* | Move tests that simulate web commits into test_rcs_add(), then addAmitai Schlair2012-01-24
| | | | | | | | | | | | | | | | | | | | | | a bunch more tests (that wind up exercising rcs_commit(), rcs_commit_staged(), and rcs_recentchanges()). Extract some support routines for brevity. Most is_in_keyword_substitution_mode() tests are commented out because there's a bug -- non-binary files are being added with "cvs add -kb". Move tests that inspect recentchanges after direct CVS operations into test_rcs_recentchanges().
* | Define required programs and modules at top for easy spotting.Amitai Schlair2012-01-22
| |
* | No functional change: sort sub definitions.Amitai Schlair2012-01-22
| | | | | | | | | | | | | | | | | | | | | | | | | | In the code: * general plugin API calls (in plugins/write order), * VCS plugin API calls (in plugins/write order), then * internal support routines (in alphabetical order). In the tests: * general meta-behavior (in no particular order, yet), * general plugin API calls (in plugins/write order), * VCS plugin API calls (in plugins/write order), then * internal support routines (in semi-logical order).
* | Test::Class runs test subs in alphabetical order, so we do too.Amitai Schlair2012-01-22
| |
* | Ape xUnit more closely to remove ordering constraints on test subs:Amitai Schlair2012-01-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add setup and teardown methods, called before and after every test sub. * In setup, make a fresh repo; in teardown, throw it out. * Extract runtests method and define default test methods at top. * Move reflection routines near the xUnit-style subs they support. Adapt existing test subs to run independently: * In test_manual_add_and_commit(), assume a fresh repo. While here, plan a bit better: * Check for all modules used by cvs.pm. * Check for program existence more generally. * Check that we can rmdir after mkdir.
* | Describe the needed test cases, and implement a couple Test::Class features.Amitai Schlair2012-01-22
| | | | | | | | | | | | | | | | | | | | | | * Run all subs matching /^test_*/ (for which we can plan)... * Unless TEST_METHOD is set, in which case run matching subs (sans plan). * Define total number of tests very near 'use Test::More', where expected. * Define test tempdir where it's declared, no longer any reason why not. * Move most comments from TODO.cvs into t/cvs.t. * Add a whole bunch more comments describing the needed test cases. XXX existing tests are order-dependent, but currently happen to pass
* | Fix regression: failing to make the temp dir should nix the test plan.Amitai Schlair2012-01-22
| | | | | | | | While here, nitpick style and wrap long lines.
* | Use config parameters directly and shorten long lines.Amitai Schlair2012-01-22
| |
* | * Define expected number of tests near the top.Amitai Schlair2012-01-22
| | | | | | | | | | | | | | | | | | | | * Call readfile() directly from writefile(). * Parameterize commit message for the web-commit case. * Describe intent of test cases. * Rename test subs to match what they actually do. * To prove extra path slashes don't cause trouble, instead of running the same tests a second time, just assert that checkconfig() strips the slashes.
* | Fix a typo in the web commit test.Amitai Schlair2012-01-22
| |
* | Simplify startup: use Test::More unconditionally, then determineAmitai Schlair2012-01-22
| | | | | | | | | | | | the test plan at runtime. Use IkiWiki unconditionally too (as that's not what I'm testing here) to avoid the TAP error of printing a test result before having printed the plan.
* | Extract subs: startup/shutdown, and tests for web and manual commits.Amitai Schlair2012-01-22
| | | | | | | | No functional change intended.
* | fix test suite to work with discountJoey Hess2012-01-01
| | | | | | | | | | | | | | | | | | In the first test, discount returns the html attributes in a different order, which broke the test. Test only for the important text, not the exact html output. In the second test, discount does some encoding of its own of the partially encoded url, again resulting in different output.
* | Add path and path_natural sort ordersSimon McVittie2011-12-06
|/ | | | | | These correspond to title and title_natural, but compare the entire path: a < a/b < a/z < ab < b. (cherry picked from commit 903a5a314f1f5d833dbc208ce128f24195b40e4b)
* Add a trivial test for the rst pluginSimon McVittie2011-10-22
| | | | Signed-off-by: Simon McVittie <smcv@debian.org>
* Fix comments testsuite to not rely on Date::Parse's ability to parse the ↵Joey Hess2011-09-05
| | | | | | | | | date Columbus discovered America. Closes: #640350 This is such a pity. smcv had these great dates, but squeeze's Date::Parse cannot parse them. Oh well, at least it makes for a great bug closure title.
* comments: add regression test for sorting by dateSimon McVittie2011-06-04
|
* Merge remote-tracking branch 'intrigeri/po-long-language-codes'Joey Hess2011-06-03
|\
| * po: support language codes in the form of 'es_AR', and 'arn'.intrigeri2011-05-26
| | | | | | | | ... additionally to the previously supported two-letters codes.
* | the underlying perl bug that this test case checks a workaround for has now ↵Joey Hess2011-05-31
|/ | | | | | | been fixed hurrah! Thanks especially to Niko Tyni for tracking it down in the perl internals.
* added test cases for heredoc and triple-single.Timo Paulssen2011-05-13
|
* simple tests for heredoc.Timo Paulssen2011-05-13
|
* get rid of diag explain againLudwig Nussel2011-03-04
|
* turn off verboseJoey Hess2011-02-09
| | | | Want to avoid debug messages during tests
* fix test countJoey Hess2011-02-09
|
* Merge remote branch 'smcv/ready/transient-tag'Joey Hess2011-02-09
|\ | | | | | | | | Conflicts: t/tag.t
| * tag test: write tag pages into the transient underlaySimon McVittie2011-01-07
| |
| * tag: optionally write autocreated tags to the transient underlaySimon McVittie2011-01-07
| | | | | | | | For the moment, have the tag test keep the old behaviour.
* | Merge remote branch 'smcv/ready/transient-autoindex'Joey Hess2011-02-09
|\ \
| * | autoindex test: write autoindex pages into the transient underlaySimon McVittie2011-01-22
| | |
| * | Allow autoindex files to be written into the transient underlaySimon McVittie2011-01-22
| | | | | | | | | | | | As with the tag plugin, for the moment keep the old behaviour in the test.
| * | autoindex: stop tracking deletions, use generic autofile tracking insteadSimon McVittie2011-01-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Migrate the set of deletions to the {autofile} set, since it has more or less the same effect. This affects the "deleted" case in the test. - If a page has just been deleted, add it as an autofile anyway: by the time gen_autofile is called, it'll be in the list of deleted files, so it'll just be added to {autofile}. This affects the "gone" case in the test. - Behaviour change: we don't forget that a page with no reason to be re-created was deleted. This affects the 'expunged' and 'reinstated' cases in the test.
| * | autoindex.t: check that none of the files that shouldn't be generated are ↵Simon McVittie2011-01-22
| | | | | | | | | | | | autofiles
| * | autoindex: use add_autofileSimon McVittie2011-01-22
| | | | | | | | | | | | | | | | | | | | | | | | This does cause a minor regression: index pages are now committed individually rather than being a single commit per rebuild. This also means the autoindex regression test needs to trigger the autofile generation pass.
| * | autoindex.t: check that attachments cause indexingSimon McVittie2011-01-22
| | |
| * | autoindex test: check that an internal page doesn't cause indexingSimon McVittie2011-01-22
| | |
* | | Merge remote branch 'smcv/ready/tag-test'Joey Hess2011-02-09
|\ \ \ | | |/ | |/|
| * | tag test: assert that the only autofiles are the ones we wantSimon McVittie2010-12-28
| | |
* | | clean up t/tmpJoey Hess2011-01-24
| | |
* | | remove more test diag stuff that needs a newer Test::More than debian stable'sJoey Hess2011-01-24
| |/ |/|
* | Adapt autoindex test suite to work with old Test::More.Joey Hess2011-01-22
|/
* po test: add more cases, including (semi-)absolute URLsSimon McVittie2010-12-25
| | | | | Three cases are sub-optimal, but having fixed urlto(''), they all basically work.
* po: test beautify_urlpath with po_link_to=currentSimon McVittie2010-12-25
| | | | Same behaviour as 'default'.
* urlto.t: test urlto('', undef, ?)Simon McVittie2010-12-25
|
* urlto.t: test more cases, including the special case for to=''Simon McVittie2010-12-25
|
* Add a test for autoindex's current functionalitySimon McVittie2010-12-25
|
* extend the 'tag' test to cover auto-creation of tag pagesSimon McVittie2010-12-25
|
* test w/o second parameterJoey Hess2010-11-29
|
* Add a regression test for urlto, baseurl and cgiurl in ↵Simon McVittie2010-11-22
| | | | relative/local/absolute modes