aboutsummaryrefslogtreecommitdiff
path: root/t
Commit message (Collapse)AuthorAge
* Merge remote-tracking branch 'smcv/ready/literal-pagenames'Joey Hess2012-04-08
|\
| * trail, inline: treat pagenames as a list of literal names, not linksSimon McVittie2012-04-06
| |
* | prune: do not prune beyond an optional base directory, and add a testSimon McVittie2012-04-07
|/ | | | | | | | Previously, prune("wiki/srcdir/sandbox/test.mdwn") could delete srcdir or even wiki, if they happened to be empty. This is rarely what you want: there's usually some base directory (destdir, srcdir, transientdir or another subdirectory of wikistatedir) beyond which you do not want to delete.
* add some seatbelts to toad's jalopyJoey Hess2012-04-04
| | | | | This does not change the number of failing tests I see, but it does make it show the expected result, which makes analysis easier.
* Use utime to make initial files in trail test come from the pastSimon McVittie2012-03-19
| | | | | | This ensures that when we do the second phase of the test (edit some files and refresh), the changes get a different mtime and are picked up, even if the entire test happened between two 1-second "clock ticks".
* Replace [[!trailinline]] directive with [[!inline trail=yes]]Simon McVittie2012-03-18
|
* Merge tag '3.20120202' into trail3-integratedSimon McVittie2012-03-18
|\
| * Update test plan, missed in previous.Amitai Schlair2012-02-01
| |
| * Express rcs_recentchanges() tests via utility functions, in preparationAmitai Schlair2012-02-01
| | | | | | | | | | for writing more thorough tests, in order to safely extract the cvsps output-parsing routine for reuse by an upcoming rcs_revert().
| * Fail a test if an rcs_receive() hook is ever defined for CVS.Amitai Schlair2012-02-01
| |
| * Extract add_and_commit(), a common test action.Amitai Schlair2012-02-01
| |
| * 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)
* | Split trail directive into trailitems, trailoptionsSimon McVittie2011-11-12
| |
* | trail: improve and test sortingSimon McVittie2011-11-12
| |
* | Add path and path_natural sort ordersSimon McVittie2011-11-12
| | | | | | | | | | These correspond to title and title_natural, but compare the entire path: a < a/b < a/z < ab < b.
* | trail: new plugin (3rd attempt)Simon McVittie2011-11-09
|/
* 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.