aboutsummaryrefslogtreecommitdiff
path: root/t/meta.t
diff options
context:
space:
mode:
authorSimon McVittie <smcv@debian.org>2015-11-30 17:33:00 +0000
committerSimon McVittie <smcv@debian.org>2015-11-30 18:26:22 +0000
commitcdfb4ab1a3c60bf699b8d77618ec9bdf526cdb35 (patch)
tree6a33fd51436d66178fdfab689a8c6076cefa1c54 /t/meta.t
parent78a47d44c7c7d798c0a16c17954caef57e4c192e (diff)
downloadikiwiki-cdfb4ab1a3c60bf699b8d77618ec9bdf526cdb35.tar
ikiwiki-cdfb4ab1a3c60bf699b8d77618ec9bdf526cdb35.tar.gz
Run autopkgtest tests using autodep8 and the pkg-perl team's infrastructure
Diffstat (limited to 't/meta.t')
-rwxr-xr-xt/meta.t19
1 files changed, 15 insertions, 4 deletions
diff --git a/t/meta.t b/t/meta.t
index c95e23531..d23d9bc71 100755
--- a/t/meta.t
+++ b/t/meta.t
@@ -8,10 +8,21 @@ my $tmp = 't/tmp';
my $srcdir = "$tmp/in";
my $destdir = "$tmp/out";
-my @command = (qw(./ikiwiki.out --plugin meta --disable-plugin htmlscrubber));
-push @command, qw(-underlaydir=underlays/basewiki);
-push @command, qw(-set underlaydirbase=underlays);
-push @command, qw(--templatedir=templates);
+my $installed = $ENV{INSTALLED_TESTS};
+
+my @command;
+if ($installed) {
+ @command = qw(ikiwiki);
+}
+else {
+ ok(! system("make -s ikiwiki.out"));
+ @command = qw(perl -I. ./ikiwiki.out
+ --underlaydir=underlays/basewiki
+ --set underlaydirbase=underlays
+ --templatedir=templates);
+}
+
+push @command, qw(--plugin meta --disable-plugin htmlscrubber);
push @command, $srcdir, $destdir;
sub write_build_read_compare {