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 /tests/t-control-bogus/Makefile | |
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 '')
-rw-r--r-- | tests/t-control-bogus/Makefile | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/tests/t-control-bogus/Makefile b/tests/t-control-bogus/Makefile new file mode 100644 index 0000000..ec042dd --- /dev/null +++ b/tests/t-control-bogus/Makefile @@ -0,0 +1,32 @@ +include ../Test.mk + +test-case: + # test building package with bogus control files + ! $(DPKG_BUILD_DEB) pkg-bogus-colon + ! $(DPKG_BUILD_DEB) pkg-bogus-blank + ! $(DPKG_BUILD_DEB) pkg-bogus-fieldname-empty + ! $(DPKG_BUILD_DEB) pkg-bogus-fieldname-partial + ! $(DPKG_BUILD_DEB) pkg-bogus-format-string + + # build bogus packages + $(DPKG_BUILD_DEB) --nocheck pkg-bogus-colon + $(DPKG_BUILD_DEB) --nocheck pkg-bogus-blank + $(DPKG_BUILD_DEB) --nocheck pkg-bogus-fieldname-empty + $(DPKG_BUILD_DEB) --nocheck pkg-bogus-fieldname-partial + $(DPKG_BUILD_DEB) --nocheck pkg-bogus-format-string + + # test installing packages with bogus control files + ! $(DPKG_INSTALL) pkg-bogus-colon.deb + $(call pkg_is_not_installed,pkg-bogus-colon) + ! $(DPKG_INSTALL) pkg-bogus-blank.deb + $(call pkg_is_not_installed,pkg-bogus-blank) + ! $(DPKG_INSTALL) pkg-bogus-fieldname-empty.deb + $(call pkg_is_not_installed,pkg-bogus-fieldname-empty) + ! $(DPKG_INSTALL) pkg-bogus-fieldname-partial.deb + $(call pkg_is_not_installed,pkg-bogus-fieldname-partial) + ! $(DPKG_INSTALL) pkg-bogus-format-string.deb + $(call pkg_is_not_installed,pkg-bogus-format-string) + +test-clean: + rm -f pkg-bogus-colon.deb + rm -f pkg-bogus-blank.deb |