aboutsummaryrefslogtreecommitdiff
path: root/t/git.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/git.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/git.t')
-rwxr-xr-xt/git.t10
1 files changed, 9 insertions, 1 deletions
diff --git a/t/git.t b/t/git.t
index 0396ae065..8990a554e 100755
--- a/t/git.t
+++ b/t/git.t
@@ -27,8 +27,16 @@ $config{diffurl} = '/nonexistent/cgit/plain/[[file]]';
IkiWiki::loadplugins();
IkiWiki::checkconfig();
+my $makerepo;
+if ($ENV{INSTALLED_TESTS}) {
+ $makerepo = "ikiwiki-makerepo";
+}
+else {
+ $makerepo = "./ikiwiki-makerepo";
+}
+
ok (mkdir($config{srcdir}));
-is (system("./ikiwiki-makerepo git $config{srcdir} $dir/repo"), 0);
+is (system("$makerepo git $config{srcdir} $dir/repo"), 0);
my @changes;
@changes = IkiWiki::rcs_recentchanges(3);