aboutsummaryrefslogtreecommitdiff
path: root/t
Commit message (Collapse)AuthorAge
...
* | Document that last enclosure wins.Amitai Schlair2013-02-19
| |
* | Make enclosure follow WikiLink LinkingRules.Amitai Schlair2013-02-19
| |
* | Rename some posts and fix wrong assumptions.Amitai Schlair2013-02-19
| |
* | Make [[!meta enclosure=foo.mp3]] "work" for HTML.Amitai Schlair2013-02-19
| |
* | Document that podcasts are text XOR enclosure.Amitai Schlair2013-02-19
| |
* | Wrap a long line.Amitai Schlair2013-02-19
| |
* | Add tests for existing podcast behavior.Amitai Schlair2013-02-19
|/
* Bump test count for previous.Amitai Schlair2013-02-02
|
* Fix diffurl links (cvsweb expects unescaped '/').Amitai Schlair2013-02-02
|
* Fix longstanding bug (chdir to nonexistent dirs).Amitai Schlair2013-01-27
| | | | | | | | | | | | | | | | | In test, set up the post-commit hook for more realism (and bugs!). To make wrappers work in test, set PERL5LIB, and allow the wrappee's path to be overridden. Meta-test that post-commit is really hooked up by verifying that content is getting generated in destdir. About the longstanding bug, which as far as I know was harmless: CVS can't operate outside a srcdir, so we're always setting $CWD. "local $CWD" restores the previous value when we go out of scope. Usually that's correct. But if we're removing the last file from a directory, the post-commit hook will exec in a working directory that's about to not exist (CVS will prune it). The fix: chdir() manually in cvs_runcvs(), so we can selectively not chdir() back.
* Merge branch 'master' into cvsAmitai Schlair2013-01-25
|\
| * If the title of a trail or trail-member changes, rebuild affected pagesSimon McVittie2013-01-02
| | | | | | | | | | | | | | | | If the title of a trail changes, each member of that trail must be rebuilt, for its prev/up/next box to reflect the new title. If the title of a member changes, its next and previous items (if any) must be rebuilt, for their prev/up/next boxes to reflect the new title.
| * Add more trail regression testsSimon McVittie2013-01-02
| | | | | | | | | | Some of these untested bits have in fact regressed, and as such, are marked as TODO.
| * avoid syntax checking cvs, since it needs File::Chdir, whichJoey Hess2012-04-27
| | | | | | | | is not a build dep
| * 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
| |\
| * | 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
| | |
* | | Notes.Amitai Schlair2012-02-05
| | |
* | | More testings and fixings:Amitai Schlair2012-02-05
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* | | 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 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.