[debhelper-devel] [debhelper] 01/01: t/maintscript.t: Rename + Mark as executable

Niels Thykier nthykier at moszumanska.debian.org
Sun Jul 31 18:30:07 UTC 2016


This is an automated email from the git hooks/post-receive script.

nthykier pushed a commit to branch master
in repository debhelper.

commit 7a2344b85c6e3adc0b286163fc2446895be8184e
Author: Niels Thykier <niels at thykier.net>
Date:   Sun Jul 31 18:29:50 2016 +0000

    t/maintscript.t: Rename + Mark as executable
    
    Signed-off-by: Niels Thykier <niels at thykier.net>
---
 t/{maintscript => maintscript.t} | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/t/maintscript b/t/maintscript.t
old mode 100644
new mode 100755
similarity index 84%
rename from t/maintscript
rename to t/maintscript.t
index a07ae3e..e15daea
--- 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);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debhelper/debhelper.git




More information about the debhelper-devel mailing list