test suite fixes

master
joey 2007-08-21 19:58:14 +00:00
parent 7dd6385fdb
commit 7c032d1465
2 changed files with 3 additions and 2 deletions

2
t/basewiki_brokenlinks.t 100644 → 100755
View File

@ -4,6 +4,6 @@ use strict;
use Test::More tests => 3;
ok(! system("make ikiwiki.out"));
ok(! system("perl -T -I. ./ikiwiki.out -plugin brokenlinks -rebuild -underlaydir=basewiki -templatedir=templates t/basewiki_brokenlinks t/basewiki_brokenlinks/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");

View File

@ -5,7 +5,8 @@ use Test::More;
my @progs="ikiwiki.in";
my @libs="IkiWiki.pm";
push @libs, map { chomp; $_ } `find IkiWiki -type f -name \\*.pm`;
# monotone skipped since it needs a perl module
push @libs, map { chomp; $_ } `find IkiWiki -type f -name \\*.pm | grep -v IkiWiki/Rcs/monotone.pm`;
plan(tests => (@progs + @libs));