Commit Graph

16371 Commits (2f013cc0c26246d3a29fe6078275b4822b6f4aa9)

Author SHA1 Message Date
simonraven 4ba3c1c104 2012-01-28 06:05:44 -04:00
simonraven c0eca7ddc7 2012-01-28 05:16:52 -04:00
http://kerravonsen.dreamwidth.org/ a631d8b2a5 which came first, the chicken or the egg? 2012-01-26 23:51:04 -04:00
tycho garen 7bfa77380a comment to multi-threading discussion 2012-01-26 21:28:19 -05:00
http://kerravonsen.dreamwidth.org/ 6226d1a765 unofficial opinion 2012-01-26 21:57:21 -04:00
Amitai Schlair d6b7654fcf Move cvs_keyword_subst_args() down with the other internal support routines. 2012-01-26 17:08:12 -05:00
Amitai Schlair ac8eab29e8 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?
2012-01-26 16:57:00 -05:00
Amitai Schlair 9fd09149a3 Mollify strictures about barewords. 2012-01-26 16:55:13 -05:00
http://roughnecks.myopenid.com/ 0d48385bd3 2012-01-25 19:58:39 -04:00
http://smcv.pseudorandom.co.uk/ a8ded6bf1d Fix wikipedia URL: wikipedia.org, not wikimedia.org 2012-01-25 04:55:25 -04:00
Amitai Schlair 722953ac25 Merge branch 'cvs' of github.com:schmonz/ikiwiki into cvs 2012-01-25 00:43:07 -05:00
Amitai Schlair c9c5264191 Merge branch 'master' of git://git.ikiwiki.info into cvs 2012-01-25 00:41:53 -05:00
Amitai Schlair 1b73015251 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().
2012-01-24 05:58:41 -05:00
Amitai Schlair 16572fb0b4 Merge branch 'cvs' of github.com:schmonz/ikiwiki into cvs 2012-01-24 02:40:59 -05:00
Amitai Schlair 873c404f14 Merge branch 'master' of git://git.ikiwiki.info into cvs 2012-01-24 02:40:43 -05:00
Joey Hess bfda13f16c recentchangesdiff: truncate extremely large diffs
A diff was already truncated after 200 lines. But it could still be
arbitrarily enormous, if a spammer or other random noise source likes long
lines. That could use a lot of memory to html encode etc the diff and fill
it into the template. Truncating after 100kb seems sufficient; it allows
for 200 lines of up to 512 characters each.
2012-01-23 18:39:53 -04:00
Joey Hess 0376a8da8a Merge branch 'master' of ssh://git.ikiwiki.info 2012-01-23 18:16:26 -04:00
Joey Hess 100a68f4e2 fix the nodiscount setting 2012-01-23 18:15:14 -04:00
Amitai Schlair 678c240eff Merge branch 'master' into cvs 2012-01-22 20:50:25 -05:00
Amitai Schlair 354e4aaa04 Merge branch 'master' of git://git.ikiwiki.info 2012-01-22 20:49:34 -05:00
Amitai Schlair 19280af182 pull request (no functional change, just worried I broke easy merging) 2012-01-22 20:48:40 -05:00
Amitai Schlair c7c43cccba Merge branch 'master' into cvs 2012-01-22 20:42:00 -05:00
Amitai Schlair 0d0b87be58 pull request (no functional change, just worried I broke easy merging) 2012-01-22 20:39:12 -05:00
test f9ff7c7aae 2012-01-22 14:55:54 -04:00
Amitai Schlair a64b224f52 Merge branch 'master' into cvs 2012-01-22 11:18:07 -05:00
Amitai Schlair 662d256c82 ignore a file that always clutters status on OS X (no known fix) 2012-01-22 11:17:19 -05:00
Amitai Schlair ad0e56cdca Define required programs and modules at top for easy spotting. 2012-01-22 11:07:58 -05:00
Amitai Schlair c74571c758 Merge branch 'cvs' of github.com:schmonz/ikiwiki into cvs
Conflicts:
	TODO.cvs
	t/cvs.t
2012-01-22 10:53:45 -05:00
Amitai Schlair c1bbff4bfb update 2012-01-22 10:45:17 -05:00
Amitai Schlair 8e99750545 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).
2012-01-22 10:44:50 -05:00
Amitai Schlair ea04eb4102 Test::Class runs test subs in alphabetical order, so we do too. 2012-01-22 10:44:50 -05:00
Amitai Schlair 88b08b5835 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.
2012-01-22 10:44:50 -05:00
Amitai Schlair 1ea4949257 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
2012-01-22 10:44:49 -05:00
Amitai Schlair 3497f49f35 Fix regression: failing to make the temp dir should nix the test plan.
While here, nitpick style and wrap long lines.
2012-01-22 10:44:49 -05:00
Amitai Schlair 0b7d5aeeb6 Use config parameters directly and shorten long lines. 2012-01-22 10:44:49 -05:00
Amitai Schlair d760df3821 * 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.
2012-01-22 10:44:49 -05:00
Amitai Schlair b77da0bb3b Fix a typo in the web commit test. 2012-01-22 10:44:49 -05:00
Amitai Schlair f18160b95d 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.
2012-01-22 10:44:49 -05:00
Amitai Schlair f98c4c5b72 Extract subs: startup/shutdown, and tests for web and manual commits.
No functional change intended.
2012-01-22 10:44:49 -05:00
Amitai Schlair 2677b73207 add TODO notes 2012-01-22 10:44:48 -05:00
Amitai Schlair af29b004d5 point to my branch, wrap lines, working on test coverage now 2012-01-22 10:42:01 -05:00
Amitai Schlair 0b22579368 Merge branch 'cvs' of github.com:schmonz/ikiwiki into cvs
Conflicts:
	TODO.cvs
2012-01-22 02:40:38 -05:00
Amitai Schlair 97016a0061 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
2012-01-22 02:40:06 -05:00
Amitai Schlair fe1c7ea126 Fix regression: failing to make the temp dir should nix the test plan.
While here, nitpick style and wrap long lines.
2012-01-22 02:40:06 -05:00
Amitai Schlair 302643fb4e Use config parameters directly and shorten long lines. 2012-01-22 02:40:06 -05:00
Amitai Schlair 9e5ee1475a * 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.
2012-01-22 02:40:06 -05:00
Amitai Schlair 2586346231 Fix a typo in the web commit test. 2012-01-22 02:40:06 -05:00
Amitai Schlair bcb69f8fed 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.
2012-01-22 02:40:06 -05:00
Amitai Schlair 94c1f3bd33 Extract subs: startup/shutdown, and tests for web and manual commits.
No functional change intended.
2012-01-22 02:40:06 -05:00
Amitai Schlair 700d39d765 add TODO notes 2012-01-22 02:40:05 -05:00