blob: 2e4a4548c045354503dd1b83c84d08f7f977bcb3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
#!/usr/bin/perl
use Test;
plan(tests => 1);
# This test is here to detect breakage in
# dh's rules_explicit_target, which parses
# slightly internal make output.
system("mkdir -p t/tmp/debian");
system("cp debian/control debian/compat debian/changelog t/tmp/debian");
open (OUT, ">", "t/tmp/debian/rules") || die "$!";
print OUT <<EOF;
#!/usr/bin/make -f
%:
PATH=../..:\$\$PATH PERL5LIB=../.. ../../dh \$@ --without autoreconf
override_dh_update_autotools_config override_dh_strip_nondeterminism:
override_dh_auto_build:
echo "override called"
EOF
close OUT;
system("chmod +x t/tmp/debian/rules");
my @output=`cd t/tmp && debian/rules build 2>&1`;
ok(grep { m/override called/ } @output);
system("rm -rf t/tmp");
# Local Variables:
# indent-tabs-mode: t
# tab-width: 4
# cperl-indent-level: 4
# End:
|