summaryrefslogtreecommitdiffstats
path: root/tests/t-predepends-no-triggers/Makefile
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 14:58:51 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 14:58:51 +0000
commitcbffab246997fb5a06211dfb706b54e5ae5bb59f (patch)
tree0573c5d96f58d74d76a49c0f2a70398e389a36d3 /tests/t-predepends-no-triggers/Makefile
parentInitial commit. (diff)
downloaddpkg-cbffab246997fb5a06211dfb706b54e5ae5bb59f.tar.xz
dpkg-cbffab246997fb5a06211dfb706b54e5ae5bb59f.zip
Adding upstream version 1.21.22.upstream/1.21.22upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/t-predepends-no-triggers/Makefile')
-rw-r--r--tests/t-predepends-no-triggers/Makefile28
1 files changed, 28 insertions, 0 deletions
diff --git a/tests/t-predepends-no-triggers/Makefile b/tests/t-predepends-no-triggers/Makefile
new file mode 100644
index 0000000..962cf93
--- /dev/null
+++ b/tests/t-predepends-no-triggers/Makefile
@@ -0,0 +1,28 @@
+TESTS_DEB := pkg-real pkg-predepends pkg-trigger
+
+include ../Test.mk
+
+test-case:
+ # Install the file trigger
+ $(DPKG_INSTALL) pkg-trigger.deb
+ # Install the pre-dependency with --no-triggers
+ $(DPKG_INSTALL) --no-triggers pkg-real.deb
+ $(call pkg_status_is,pkg-real,install ok triggers-awaited)
+ # Should pass even if not yet configured...
+ $(DPKG_UNPACK) --no-triggers pkg-predepends.deb
+ # ...by running the required triggers
+ $(call pkg_status_is,pkg-real,install ok installed)
+ # Retry again, this time the trigger processing is not required
+ # because pkg-real has already been configured once
+ $(DPKG_PURGE) pkg-predepends
+ $(DPKG_INSTALL) --no-triggers pkg-real.deb
+ $(call pkg_status_is,pkg-real,install ok triggers-awaited)
+ $(DPKG_UNPACK) --no-triggers pkg-predepends.deb
+ $(call pkg_status_is,pkg-real,install ok triggers-awaited)
+ # Cleanup
+ $(DPKG_PURGE) pkg-predepends
+ $(DPKG_PURGE) pkg-real
+ $(DPKG_PURGE) pkg-trigger
+
+test-clean:
+ -$(DPKG_PURGE) pkg-predepends pkg-real pkg-trigger