diff options
author | Niels Thykier <niels@thykier.net> | 2016-07-31 18:29:50 +0000 |
---|---|---|
committer | Niels Thykier <niels@thykier.net> | 2016-07-31 18:29:50 +0000 |
commit | 7a2344b85c6e3adc0b286163fc2446895be8184e (patch) | |
tree | 659bdb1b55757a038916095610cce8152b9bde2e | |
parent | f7d8a068eb3394e76409535c8ebb7ab04758ef35 (diff) | |
download | debhelper-7a2344b85c6e3adc0b286163fc2446895be8184e.tar.gz |
t/maintscript.t: Rename + Mark as executable
Signed-off-by: Niels Thykier <niels@thykier.net>
-rwxr-xr-x[-rw-r--r--] | t/maintscript.t (renamed from t/maintscript) | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/t/maintscript b/t/maintscript.t index a07ae3e4..e15daea3 100644..100755 --- a/t/maintscript +++ b/t/maintscript.t @@ -1,4 +1,6 @@ #!/usr/bin/perl +use strict; +use warnings; use Test; plan(tests => 8); @@ -10,7 +12,8 @@ rm_conffile /etc/1 mv_conffile /etc/2 /etc/3 1.0-1 EOF close OUT; -system("cd t/tmp && DH_COMPAT=7 fakeroot ../../dh_installdeb"); +system("echo 10 >> t/tmp/debian/compat"); +system("cd t/tmp && fakeroot ../../dh_installdeb"); for my $script (qw{postinst preinst prerm postrm}) { my @output=`cat t/tmp/debian/debhelper.$script.debhelper`; ok(grep { m{^dpkg-maintscript-helper rm_conffile /etc/1 -- "\$\@"$} } @output); |