summaryrefslogtreecommitdiff
path: root/scripts/t
diff options
context:
space:
mode:
authorGuillem Jover <guillem@debian.org>2019-06-02 23:13:02 +0200
committerGuillem Jover <guillem@debian.org>2019-10-12 16:37:22 +0200
commit1046c10897ba54a67ce5bd5760d054e39440a865 (patch)
treed89d2deebcfb99d058044ef7259050ee6197ac0c /scripts/t
parent63c42a7b2578457b63afd3c419f1442f51033f88 (diff)
downloaddpkg-1046c10897ba54a67ce5bd5760d054e39440a865.tar.gz
scripts/mk: Add support for nostrip DEB_BUILD_OPTIONS when setting STRIP
Diffstat (limited to 'scripts/t')
-rw-r--r--scripts/t/mk.t8
1 files changed, 7 insertions, 1 deletions
diff --git a/scripts/t/mk.t b/scripts/t/mk.t
index 98c7e5083..2e62cf5cf 100644
--- a/scripts/t/mk.t
+++ b/scripts/t/mk.t
@@ -16,7 +16,7 @@
use strict;
use warnings;
-use Test::More tests => 8;
+use Test::More tests => 9;
use Test::Dpkg qw(:paths);
use File::Spec::Functions qw(rel2abs);
@@ -109,6 +109,12 @@ foreach my $tool (keys %buildtools) {
}
test_makefile('buildtools.mk');
+$ENV{DEB_BUILD_OPTIONS} = 'nostrip';
+$ENV{TEST_STRIP} = ':';
+$ENV{TEST_STRIP_FOR_BUILD} = ':';
+test_makefile('buildtools.mk');
+delete $ENV{DEB_BUILD_OPTIONS};
+
foreach my $tool (keys %buildtools) {
delete $ENV{${tool}};
delete $ENV{"${tool}_FOR_BUILD"};