diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 18:35:28 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 18:35:28 +0000 |
commit | ea314d2f45c40a006c0104157013ab4b857f665f (patch) | |
tree | 3ef2971cb3675c318b8d9effd987854ad3f6d3e8 /scripts/t/mk | |
parent | Initial commit. (diff) | |
download | dpkg-ea314d2f45c40a006c0104157013ab4b857f665f.tar.xz dpkg-ea314d2f45c40a006c0104157013ab4b857f665f.zip |
Adding upstream version 1.22.4.upstream/1.22.4
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'scripts/t/mk')
-rw-r--r-- | scripts/t/mk/architecture.mk | 36 | ||||
-rw-r--r-- | scripts/t/mk/buildapi.mk | 4 | ||||
-rw-r--r-- | scripts/t/mk/buildflags.mk | 26 | ||||
-rw-r--r-- | scripts/t/mk/buildopts.mk | 4 | ||||
-rw-r--r-- | scripts/t/mk/buildtools.mk | 33 | ||||
-rw-r--r-- | scripts/t/mk/debian/changelog | 5 | ||||
-rw-r--r-- | scripts/t/mk/debian/control | 6 | ||||
-rw-r--r-- | scripts/t/mk/pkg-info.mk | 11 | ||||
-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 | 6 |
11 files changed, 143 insertions, 0 deletions
diff --git a/scripts/t/mk/architecture.mk b/scripts/t/mk/architecture.mk new file mode 100644 index 0000000..2ac0222 --- /dev/null +++ b/scripts/t/mk/architecture.mk @@ -0,0 +1,36 @@ +include $(srcdir)/mk/architecture.mk + +test: + test "$(DEB_BUILD_ARCH)" = "$(TEST_DEB_BUILD_ARCH)" + test "$(DEB_BUILD_ARCH_ABI)" = "$(TEST_DEB_BUILD_ARCH_ABI)" + test "$(DEB_BUILD_ARCH_BITS)" = "$(TEST_DEB_BUILD_ARCH_BITS)" + test "$(DEB_BUILD_ARCH_CPU)" = "$(TEST_DEB_BUILD_ARCH_CPU)" + test "$(DEB_BUILD_ARCH_ENDIAN)" = "$(TEST_DEB_BUILD_ARCH_ENDIAN)" + test "$(DEB_BUILD_ARCH_LIBC)" = "$(TEST_DEB_BUILD_ARCH_LIBC)" + test "$(DEB_BUILD_ARCH_OS)" = "$(TEST_DEB_BUILD_ARCH_OS)" + test "$(DEB_BUILD_GNU_CPU)" = "$(TEST_DEB_BUILD_GNU_CPU)" + test "$(DEB_BUILD_GNU_SYSTEM)" = "$(TEST_DEB_BUILD_GNU_SYSTEM)" + test "$(DEB_BUILD_GNU_TYPE)" = "$(TEST_DEB_BUILD_GNU_TYPE)" + test "$(DEB_BUILD_MULTIARCH)" = "$(TEST_DEB_BUILD_MULTIARCH)" + test "$(DEB_HOST_ARCH)" = "$(TEST_DEB_HOST_ARCH)" + test "$(DEB_HOST_ARCH_ABI)" = "$(TEST_DEB_HOST_ARCH_ABI)" + test "$(DEB_HOST_ARCH_BITS)" = "$(TEST_DEB_HOST_ARCH_BITS)" + test "$(DEB_HOST_ARCH_CPU)" = "$(TEST_DEB_HOST_ARCH_CPU)" + test "$(DEB_HOST_ARCH_ENDIAN)" = "$(TEST_DEB_HOST_ARCH_ENDIAN)" + test "$(DEB_HOST_ARCH_LIBC)" = "$(TEST_DEB_HOST_ARCH_LIBC)" + test "$(DEB_HOST_ARCH_OS)" = "$(TEST_DEB_HOST_ARCH_OS)" + test "$(DEB_HOST_GNU_CPU)" = "$(TEST_DEB_HOST_GNU_CPU)" + test "$(DEB_HOST_GNU_SYSTEM)" = "$(TEST_DEB_HOST_GNU_SYSTEM)" + test "$(DEB_HOST_GNU_TYPE)" = "$(TEST_DEB_HOST_GNU_TYPE)" + test "$(DEB_HOST_MULTIARCH)" = "$(TEST_DEB_HOST_MULTIARCH)" + test "$(DEB_TARGET_ARCH)" = "$(TEST_DEB_TARGET_ARCH)" + test "$(DEB_TARGET_ARCH_ABI)" = "$(TEST_DEB_TARGET_ARCH_ABI)" + test "$(DEB_TARGET_ARCH_BITS)" = "$(TEST_DEB_TARGET_ARCH_BITS)" + test "$(DEB_TARGET_ARCH_CPU)" = "$(TEST_DEB_TARGET_ARCH_CPU)" + test "$(DEB_TARGET_ARCH_ENDIAN)" = "$(TEST_DEB_TARGET_ARCH_ENDIAN)" + test "$(DEB_TARGET_ARCH_LIBC)" = "$(TEST_DEB_TARGET_ARCH_LIBC)" + test "$(DEB_TARGET_ARCH_OS)" = "$(TEST_DEB_TARGET_ARCH_OS)" + test "$(DEB_TARGET_GNU_CPU)" = "$(TEST_DEB_TARGET_GNU_CPU)" + test "$(DEB_TARGET_GNU_SYSTEM)" = "$(TEST_DEB_TARGET_GNU_SYSTEM)" + test "$(DEB_TARGET_GNU_TYPE)" = "$(TEST_DEB_TARGET_GNU_TYPE)" + test "$(DEB_TARGET_MULTIARCH)" = "$(TEST_DEB_TARGET_MULTIARCH)" diff --git a/scripts/t/mk/buildapi.mk b/scripts/t/mk/buildapi.mk new file mode 100644 index 0000000..96269bc --- /dev/null +++ b/scripts/t/mk/buildapi.mk @@ -0,0 +1,4 @@ +include $(srcdir)/mk/buildapi.mk + +test: + test "$(DPKG_BUILD_API)" = "0" diff --git a/scripts/t/mk/buildflags.mk b/scripts/t/mk/buildflags.mk new file mode 100644 index 0000000..94d85a7 --- /dev/null +++ b/scripts/t/mk/buildflags.mk @@ -0,0 +1,26 @@ +DEB_CPPFLAGS_MAINT_APPEND = -DTEST_MK=test-host +DEB_CPPFLAGS_FOR_BUILD_MAINT_APPEND = -DTEST_MK=test-build + +include $(srcdir)/mk/buildflags.mk + +test: + test "$(ASFLAGS)" = "$(TEST_ASFLAGS)" + test "$(ASFLAGS_FOR_BUILD)" = "$(TEST_ASFLAGS_FOR_BUILD)" + test "$(CFLAGS)" = "$(TEST_CFLAGS)" + test "$(CFLAGS_FOR_BUILD)" = "$(TEST_CFLAGS_FOR_BUILD)" + test "$(CPPFLAGS)" = "$(TEST_CPPFLAGS) -DTEST_MK=test-host" + test "$(CPPFLAGS_FOR_BUILD)" = "$(TEST_CPPFLAGS_FOR_BUILD)-DTEST_MK=test-build" + test "$(CXXFLAGS)" = "$(TEST_CXXFLAGS)" + test "$(CXXFLAGS_FOR_BUILD)" = "$(TEST_CXXFLAGS_FOR_BUILD)" + test "$(DFLAGS)" = "$(TEST_DFLAGS)" + test "$(DFLAGS_FOR_BUILD)" = "$(TEST_DFLAGS_FOR_BUILD)" + test "$(FCFLAGS)" = "$(TEST_FCFLAGS)" + test "$(FCFLAGS_FOR_BUILD)" = "$(TEST_FCFLAGS_FOR_BUILD)" + test "$(FFLAGS)" = "$(TEST_FFLAGS)" + test "$(FFLAGS_FOR_BUILD)" = "$(TEST_FFLAGS_FOR_BUILD)" + test "$(LDFLAGS)" = "$(TEST_LDFLAGS)" + test "$(LDFLAGS_FOR_BUILD)" = "$(TEST_LDFLAGS_FOR_BUILD)" + test "$(OBJCFLAGS)" = "$(TEST_OBJCFLAGS)" + test "$(OBJCFLAGS_FOR_BUILD)" = "$(TEST_OBJCFLAGS_FOR_BUILD)" + test "$(OBJCXXFLAGS)" = "$(TEST_OBJCXXFLAGS)" + test "$(OBJCXXFLAGS_FOR_BUILD)" = "$(TEST_OBJCXXFLAGS_FOR_BUILD)" diff --git a/scripts/t/mk/buildopts.mk b/scripts/t/mk/buildopts.mk new file mode 100644 index 0000000..46d0efa --- /dev/null +++ b/scripts/t/mk/buildopts.mk @@ -0,0 +1,4 @@ +include $(srcdir)/mk/buildopts.mk + +test: + test "$(DEB_BUILD_OPTION_PARALLEL)" = "$(TEST_DEB_BUILD_OPTION_PARALLEL)" diff --git a/scripts/t/mk/buildtools.mk b/scripts/t/mk/buildtools.mk new file mode 100644 index 0000000..6c27c5c --- /dev/null +++ b/scripts/t/mk/buildtools.mk @@ -0,0 +1,33 @@ +include $(srcdir)/mk/buildtools.mk + +test: + test "$(AS)" = "$(TEST_AS)" + test "$(AS_FOR_BUILD)" = "$(TEST_AS_FOR_BUILD)" + test "$(CC)" = "$(TEST_CC)" + test "$(CC_FOR_BUILD)" = "$(TEST_CC_FOR_BUILD)" + test "$(CXX)" = "$(TEST_CXX)" + test "$(CXX_FOR_BUILD)" = "$(TEST_CXX_FOR_BUILD)" + test "$(OBJC)" = "$(TEST_OBJC)" + test "$(OBJC_FOR_BUILD)" = "$(TEST_OBJC_FOR_BUILD)" + test "$(OBJCXX)" = "$(TEST_OBJCXX)" + test "$(OBJCXX_FOR_BUILD)" = "$(TEST_OBJCXX_FOR_BUILD)" + test "$(F77)" = "$(TEST_F77)" + test "$(F77_FOR_BUILD)" = "$(TEST_F77_FOR_BUILD)" + test "$(FC)" = "$(TEST_FC)" + test "$(FC_FOR_BUILD)" = "$(TEST_FC_FOR_BUILD)" + test "$(LD)" = "$(TEST_LD)" + test "$(LD_FOR_BUILD)" = "$(TEST_LD_FOR_BUILD)" + test "$(STRIP)" = "$(TEST_STRIP)" + test "$(STRIP_FOR_BUILD)" = "$(TEST_STRIP_FOR_BUILD)" + test "$(OBJCOPY)" = "$(TEST_OBJCOPY)" + test "$(OBJCOPY_FOR_BUILD)" = "$(TEST_OBJCOPY_FOR_BUILD)" + test "$(OBJDUMP)" = "$(TEST_OBJDUMP)" + test "$(OBJDUMP_FOR_BUILD)" = "$(TEST_OBJDUMP_FOR_BUILD)" + test "$(NM)" = "$(TEST_NM)" + test "$(NM_FOR_BUILD)" = "$(TEST_NM_FOR_BUILD)" + test "$(AR)" = "$(TEST_AR)" + test "$(AR_FOR_BUILD)" = "$(TEST_AR_FOR_BUILD)" + test "$(RANLIB)" = "$(TEST_RANLIB)" + test "$(RANLIB_FOR_BUILD)" = "$(TEST_RANLIB_FOR_BUILD)" + test "$(PKG_CONFIG)" = "$(TEST_PKG_CONFIG)" + test "$(PKG_CONFIG_FOR_BUILD)" = "$(TEST_PKG_CONFIG_FOR_BUILD)" diff --git a/scripts/t/mk/debian/changelog b/scripts/t/mk/debian/changelog new file mode 100644 index 0000000..728c8ec --- /dev/null +++ b/scripts/t/mk/debian/changelog @@ -0,0 +1,5 @@ +source (1:2:3.4-5-6) suite; urgency=low + + * Initial release. + + -- Dpkg Developers <debian-dpkg@lists.debian.org> Tue, 04 Aug 2015 16:13:50 +0200 diff --git a/scripts/t/mk/debian/control b/scripts/t/mk/debian/control new file mode 100644 index 0000000..43b35d3 --- /dev/null +++ b/scripts/t/mk/debian/control @@ -0,0 +1,6 @@ +Source: source +Build-Depends: + dpkg-build-api (= 0), + +Package: binary +Architecture: all diff --git a/scripts/t/mk/pkg-info.mk b/scripts/t/mk/pkg-info.mk new file mode 100644 index 0000000..c0e3287 --- /dev/null +++ b/scripts/t/mk/pkg-info.mk @@ -0,0 +1,11 @@ +include $(srcdir)/mk/pkg-info.mk + +test: + test "$(DEB_SOURCE)" = "source" + test "$(DEB_VERSION)" = "1:2:3.4-5-6" + test "$(DEB_VERSION_EPOCH_UPSTREAM)" = "1:2:3.4-5" + test "$(DEB_VERSION_UPSTREAM_REVISION)" = "2:3.4-5-6" + test "$(DEB_VERSION_UPSTREAM)" = "2:3.4-5" + test "$(DEB_DISTRIBUTION)" = "suite" + test '$(SOURCE_DATE_EPOCH)' = '$(TEST_SOURCE_DATE_EPOCH)' + test "$${SOURCE_DATE_EPOCH}" = '$(TEST_SOURCE_DATE_EPOCH)' diff --git a/scripts/t/mk/vendor-v0.mk b/scripts/t/mk/vendor-v0.mk new file mode 100644 index 0000000..602a8c6 --- /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 0000000..11c1314 --- /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 new file mode 100644 index 0000000..4e0d9ff --- /dev/null +++ b/scripts/t/mk/vendor.mk @@ -0,0 +1,6 @@ +include $(srcdir)/mk/vendor.mk + +test: + test "$(DEB_VENDOR)" = "Debian" + test "$(DEB_PARENT_VENDOR)" = "" + test "$(shell $(call dpkg_vendor_derives_from,debian))" = "yes" |