aboutsummaryrefslogtreecommitdiff
path: root/t
Commit message (Expand)AuthorAge
...
* | | More testings and fixings:•••* Test that adding a text file under a name formerly tracked as binary (and vice versa) gets the right keyword-substitution behavior. * Explicitly set -kkv for text files to make the tests pass. * CVS warns in these cases about "changing keyword expansion mode", but this is correct behavior, so filter it from stderr. Filter stdout the same way in case we ever want to keep any of it. * In rcs_add(), replace comments with obviousness. Amitai Schlair2012-02-05
* | | Remember to run all the tests before committing!Amitai Schlair2012-02-05
* | | Test checkconfig().Amitai Schlair2012-02-05
* | | Test RCS Id keyword expansion on typical commit.Amitai Schlair2012-02-05
* | | Notes from an evening's debugging.Amitai Schlair2012-02-05
* | | Write rcs_diff() tests according to the API spec, then make them pass.Amitai Schlair2012-02-05
| |/ |/|
* | Update test plan, missed in previous.Amitai Schlair2012-02-01
* | Express rcs_recentchanges() tests via utility functions, in preparation•••for writing more thorough tests, in order to safely extract the cvsps output-parsing routine for reuse by an upcoming rcs_revert(). Amitai Schlair2012-02-01
* | 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:•••Extract cvs_keyword_subst_args() and ensure it runs in $config{srcdir}. Using Perl's -T operator appears to work equally well, perhaps switch? Amitai Schlair2012-01-26
* | Move tests that simulate web commits into test_rcs_add(), then add•••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(). Amitai Schlair2012-01-24
* | Define required programs and modules at top for easy spotting.Amitai Schlair2012-01-22
* | No functional change: sort sub definitions.•••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). Amitai Schlair2012-01-22
* | 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:•••* 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. Amitai Schlair2012-01-22
* | Describe the needed test cases, and implement a couple Test::Class features.•••* 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 Amitai Schlair2012-01-22
* | Fix regression: failing to make the temp dir should nix the test plan.•••While here, nitpick style and wrap long lines. Amitai Schlair2012-01-22
* | Use config parameters directly and shorten long lines.Amitai Schlair2012-01-22
* | * Define expected number of tests near the top.•••* 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. Amitai Schlair2012-01-22
* | Fix a typo in the web commit test.Amitai Schlair2012-01-22
* | Simplify startup: use Test::More unconditionally, then determine•••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. Amitai Schlair2012-01-22
* | Extract subs: startup/shutdown, and tests for web and manual commits.•••No functional change intended. Amitai Schlair2012-01-22
* | fix test suite to work with discount•••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. Joey Hess2012-01-01
* | Add path and path_natural sort orders•••These correspond to title and title_natural, but compare the entire path: a < a/b < a/z < ab < b. (cherry picked from commit 903a5a314f1f5d833dbc208ce128f24195b40e4b) Simon McVittie2011-12-06
|/
* Add a trivial test for the rst plugin•••Signed-off-by: Simon McVittie <smcv@debian.org> Simon McVittie2011-10-22
* Fix comments testsuite to not rely on Date::Parse's ability to parse the date...•••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. Joey Hess2011-09-05
* 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'.•••... additionally to the previously supported two-letters codes. intrigeri2011-05-26
* | the underlying perl bug that this test case checks a workaround for has now b...•••hurrah! Thanks especially to Niko Tyni for tracking it down in the perl internals. Joey Hess2011-05-31
|/
* 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 verbose•••Want to avoid debug messages during tests Joey Hess2011-02-09
* fix test countJoey Hess2011-02-09
* Merge remote branch 'smcv/ready/transient-tag'•••Conflicts: t/tag.t Joey Hess2011-02-09
|\
| * tag test: write tag pages into the transient underlaySimon McVittie2011-01-07
| * tag: optionally write autocreated tags to the transient underlay•••For the moment, have the tag test keep the old behaviour. Simon McVittie2011-01-07
* | 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 underlay•••As with the tag plugin, for the moment keep the old behaviour in the test. Simon McVittie2011-01-22
| * | autoindex: stop tracking deletions, use generic autofile tracking instead•••- 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. Simon McVittie2011-01-22
| * | autoindex.t: check that none of the files that shouldn't be generated are aut...Simon McVittie2011-01-22
| * | autoindex: use add_autofile•••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. Simon McVittie2011-01-22
| * | 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