aboutsummaryrefslogtreecommitdiff
path: root/t/cvs.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/cvs.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/cvs.t')
-rwxr-xr-xt/cvs.t12
1 files changed, 8 insertions, 4 deletions
diff --git a/t/cvs.t b/t/cvs.t
index cbac43252..43a2ca3a8 100755
--- a/t/cvs.t
+++ b/t/cvs.t
@@ -4,6 +4,8 @@ use strict;
use Test::More; my $total_tests = 72;
use IkiWiki;
+my $installed = $ENV{INSTALLED_TESTS};
+
my $default_test_methods = '^test_*';
my @required_programs = qw(
cvs
@@ -606,12 +608,14 @@ sub _generate_and_configure_post_commit_hook {
$config{wrapper} = $config{cvs_wrapper};
require IkiWiki::Wrapper;
- {
- no warnings 'once';
+ if ($installed) {
$IkiWiki::program_to_wrap = 'ikiwiki.out';
- # XXX substitute its interpreter to Makefile's $(PERL)
- # XXX best solution: do this to all scripts during build
}
+ else {
+ $IkiWiki::program_to_wrap = `which ikiwiki`;
+ }
+ # XXX substitute its interpreter to Makefile's $(PERL)
+ # XXX best solution: do this to all scripts during build
IkiWiki::gen_wrapper();
my $cvs = "cvs -d $config{cvsrepo}";