diff options
author | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2007-08-28 01:59:01 +0000 |
---|---|---|
committer | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2007-08-28 01:59:01 +0000 |
commit | 9c5f4761d8bf785ca98d5fda66fbbe9dbe11897c (patch) | |
tree | 6e2c8fab91dd051a7acc2cf0ab7c71fc58f6c278 /t | |
parent | 21c4bd8444480d6038d217fa2892d13ecce500ff (diff) | |
download | ikiwiki-9c5f4761d8bf785ca98d5fda66fbbe9dbe11897c.tar ikiwiki-9c5f4761d8bf785ca98d5fda66fbbe9dbe11897c.tar.gz |
* Support for looking in multiple directories for underlay files.
* Plugins can add new directories to the search path with the add_underlay
function.
* Split out smiley underlay files into a separate underlay, so if the plugin
isn't used, the wiki isn't bloated with all those files.
Diffstat (limited to 't')
-rwxr-xr-x | t/basewiki_brokenlinks.t | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/t/basewiki_brokenlinks.t b/t/basewiki_brokenlinks.t index fbcc10554..00811a5e3 100755 --- a/t/basewiki_brokenlinks.t +++ b/t/basewiki_brokenlinks.t @@ -1,9 +1,12 @@ #!/usr/bin/perl use warnings; use strict; -use Test::More tests => 3; +use Test::More 'no_plan'; -ok(! system("make ikiwiki.out")); -ok(! system("LANG=C perl -T -I. ./ikiwiki.out -plugin brokenlinks -rebuild -underlaydir=basewiki -templatedir=templates t/basewiki_brokenlinks t/basewiki_brokenlinks/out")); -ok(`grep 'no broken links' t/basewiki_brokenlinks/out/index.html`); -system("rm -rf t/basewiki_brokenlinks/out t/basewiki_brokenlinks/.ikiwiki"); +ok(! system("mkdir t/tmp")); +ok(! system("make -q ikiwiki.out")); +ok(! system("make extra_install DESTDIR=t/tmp/install PREFIX=/usr >/dev/null")); +ok(! system("LANG= perl -T -I. ./ikiwiki.out -plugin smiley -plugin brokenlinks -rebuild -underlaydir=t/tmp/install/usr/share/ikiwiki/basewiki -templatedir=templates t/basewiki_brokenlinks t/tmp/out")); +ok(`grep 'no broken links' t/tmp/out/index.html`); +ok(-e "t/tmp/out/style.css"); +ok(! system("rm -rf t/tmp t/basewiki_brokenlinks/.ikiwiki")); |