X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/f774f209133ddce006c74fe36cc7735963fc2516..2249e803accc76fab65c62385d6d3e44902b8de1:/t/comments.t?ds=inline diff --git a/t/comments.t b/t/comments.t index da2148b6b..f2e32c46e 100755 --- a/t/comments.t +++ b/t/comments.t @@ -1,7 +1,8 @@ #!/usr/bin/perl use warnings; use strict; -use Test::More 'no_plan'; +use Cwd qw(getcwd); +use Test::More; use IkiWiki; ok(! system("rm -rf t/tmp")); @@ -9,6 +10,20 @@ ok(mkdir "t/tmp"); ok(! system("cp -R t/tinyblog t/tmp/in")); ok(mkdir "t/tmp/in/post" or -d "t/tmp/in/post"); +my $installed = $ENV{INSTALLED_TESTS}; + +my @command; +if ($installed) { + @command = qw(ikiwiki); +} +else { + ok(! system("make -s ikiwiki.out")); + @command = ("perl", "-I".getcwd, qw(./ikiwiki.out + --underlaydir=underlays/basewiki + --set underlaydirbase=underlays + --templatedir=templates)); +} + my $comment; $comment = <