diff options
author | Guillem Jover <guillem@debian.org> | 2018-11-27 04:05:09 +0100 |
---|---|---|
committer | Guillem Jover <guillem@debian.org> | 2019-01-15 04:49:03 +0100 |
commit | 91e2ae0b74d9efb47a5635466a8e0f0826c0a0e8 (patch) | |
tree | 8238c2a45f8aa292cd1f09037a45ff291436f41a /scripts/t | |
parent | 37dd4ce62e0925967c59daec130540d2fa0402d6 (diff) | |
download | dpkg-91e2ae0b74d9efb47a5635466a8e0f0826c0a0e8.tar.gz |
scripts/mk: Add support for an improved dpkg_vendor_derives_from macro
Version the macros so that both can be used, and default the unversioned
one to the version 0 macro.
Diffstat (limited to 'scripts/t')
-rw-r--r-- | scripts/t/mk.t | 4 | ||||
-rw-r--r-- | scripts/t/mk/vendor-v0.mk | 6 | ||||
-rw-r--r-- | scripts/t/mk/vendor-v1.mk | 6 | ||||
-rw-r--r-- | scripts/t/mk/vendor.mk | 1 |
4 files changed, 16 insertions, 1 deletions
diff --git a/scripts/t/mk.t b/scripts/t/mk.t index 0062e993c..98c7e5083 100644 --- a/scripts/t/mk.t +++ b/scripts/t/mk.t @@ -16,7 +16,7 @@ use strict; use warnings; -use Test::More tests => 6; +use Test::More tests => 8; use Test::Dpkg qw(:paths); use File::Spec::Functions qw(rel2abs); @@ -117,5 +117,7 @@ foreach my $tool (keys %buildtools) { test_makefile('pkg-info.mk'); test_makefile('vendor.mk'); +test_makefile('vendor-v0.mk'); +test_makefile('vendor-v1.mk'); 1; diff --git a/scripts/t/mk/vendor-v0.mk b/scripts/t/mk/vendor-v0.mk new file mode 100644 index 000000000..602a8c63a --- /dev/null +++ b/scripts/t/mk/vendor-v0.mk @@ -0,0 +1,6 @@ +dpkg_vendor_derives_from = $(dpkg_vendor_derives_from_v0) + +include $(srcdir)/mk/vendor.mk + +test: + test "$(shell $(call dpkg_vendor_derives_from,debian))" = "yes" diff --git a/scripts/t/mk/vendor-v1.mk b/scripts/t/mk/vendor-v1.mk new file mode 100644 index 000000000..11c1314ef --- /dev/null +++ b/scripts/t/mk/vendor-v1.mk @@ -0,0 +1,6 @@ +include $(srcdir)/mk/vendor.mk + +dpkg_vendor_derives_from = $(dpkg_vendor_derives_from_v1) + +test: + test "$(call dpkg_vendor_derives_from,debian)" = "yes" diff --git a/scripts/t/mk/vendor.mk b/scripts/t/mk/vendor.mk index 371b39c87..4e0d9ff89 100644 --- a/scripts/t/mk/vendor.mk +++ b/scripts/t/mk/vendor.mk @@ -3,3 +3,4 @@ include $(srcdir)/mk/vendor.mk test: test "$(DEB_VENDOR)" = "Debian" test "$(DEB_PARENT_VENDOR)" = "" + test "$(shell $(call dpkg_vendor_derives_from,debian))" = "yes" |