summaryrefslogtreecommitdiffstats
path: root/tests/t-provides/Makefile
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-08-07 13:30:08 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-08-07 13:30:08 +0000
commit44cf9c6d2d274eac37502e835155f7e985f1b8e6 (patch)
tree9576ba968924c5b9a55ba9e14f4f26184c62c7d4 /tests/t-provides/Makefile
parentAdding upstream version 1.22.6. (diff)
downloaddpkg-44cf9c6d2d274eac37502e835155f7e985f1b8e6.tar.xz
dpkg-44cf9c6d2d274eac37502e835155f7e985f1b8e6.zip
Adding upstream version 1.22.7.upstream/1.22.7
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/t-provides/Makefile')
-rw-r--r--tests/t-provides/Makefile15
1 files changed, 14 insertions, 1 deletions
diff --git a/tests/t-provides/Makefile b/tests/t-provides/Makefile
index 6794c20..76e3073 100644
--- a/tests/t-provides/Makefile
+++ b/tests/t-provides/Makefile
@@ -8,6 +8,17 @@ TESTS_DEB := \
include ../Test.mk
+test-bogus:
+ # test building with bogus provides
+ ! $(DPKG_BUILD_DEB) pkg-provides-bogus
+
+ # build bogus packages
+ $(DPKG_BUILD_DEB) --nocheck pkg-provides-bogus
+
+ # test installing packages with bogus provides
+ ! $(DPKG_INSTALL) pkg-provides-bogus.deb
+ $(call pkg_is_not_installed,pkg-provides-bogus)
+
define PURGE_DEPENDS
$(DPKG_PURGE) pkg-depends
$(DPKG_PURGE) pkg-depends-le
@@ -282,7 +293,7 @@ test-conflicts:
# The provided predependency is removed, pass
$(DPKG_PURGE) pkg-provides
-test-case: test-depends test-predepends test-breaks test-conflicts
+test-case: test-bogus test-depends test-predepends test-breaks test-conflicts
test-clean:
-$(DPKG_PURGE) pkg-depends
@@ -305,3 +316,5 @@ test-clean:
-$(DPKG_PURGE) pkg-a-depends-ge-lt
-$(DPKG_PURGE) pkg-b-provides
-$(DPKG_PURGE) pkg-c-provides
+
+ rm -f pkg-provides-bogus.deb