]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - t/basewiki_brokenlinks.t
oh, and spamassassin too
[git.ikiwiki.info.git] / t / basewiki_brokenlinks.t
index 26e3859abedc37b39c70a2bcf40c505751f73455..6a86c4313d8ee0b3060f26e261701cafb356cd98 100755 (executable)
@@ -1,6 +1,7 @@
 #!/usr/bin/perl
 use warnings;
 use strict;
+use Cwd qw(getcwd);
 use Test::More;
 
 my $installed = $ENV{INSTALLED_TESTS};
@@ -14,10 +15,10 @@ if ($installed) {
 else {
        ok(! system("make -s ikiwiki.out"));
        ok(! system("make underlay_install DESTDIR=`pwd`/t/tmp/install PREFIX=/usr >/dev/null"));
-       @command = qw(env LC_ALL=C perl -I. ./ikiwiki.out
+       @command = (qw(env LC_ALL=C perl), "-I".getcwd, qw(./ikiwiki.out
                --underlaydir=t/tmp/install/usr/share/ikiwiki/basewiki
                --set underlaydirbase=t/tmp/install/usr/share/ikiwiki
-               --templatedir=templates);
+               --templatedir=templates));
 }
 
 foreach my $plugin ("", "listdirectives") {
@@ -37,6 +38,5 @@ foreach my $plugin ("", "listdirectives") {
        ok(-e "t/tmp/out/style.css"); # linked to..
        ok(! system("rm -rf t/tmp/out t/basewiki_brokenlinks/.ikiwiki"));
 }
-ok(! system("rm -rf t/tmp"));
 
 done_testing();