diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 14:58:51 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 14:58:51 +0000 |
commit | cbffab246997fb5a06211dfb706b54e5ae5bb59f (patch) | |
tree | 0573c5d96f58d74d76a49c0f2a70398e389a36d3 /tests/t-triggers-selfcycle/Makefile | |
parent | Initial commit. (diff) | |
download | dpkg-upstream.tar.xz dpkg-upstream.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-triggers-selfcycle/Makefile')
-rw-r--r-- | tests/t-triggers-selfcycle/Makefile | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/t-triggers-selfcycle/Makefile b/tests/t-triggers-selfcycle/Makefile new file mode 100644 index 0000000..cd916f8 --- /dev/null +++ b/tests/t-triggers-selfcycle/Makefile @@ -0,0 +1,25 @@ +TESTS_DEB := pkg-trigger-unpack pkg-trigger-activate + +include ../Test.mk + +test-case: + # Self trigger cycles cannot happen with unpacked files. + $(DPKG_INSTALL) pkg-trigger-unpack.deb + $(DPKG_UNPACK) pkg-trigger-unpack.deb + $(DPKG_CONFIGURE) pkg-trigger-unpack + $(DPKG_CONFIGURE) --pending + $(DPKG_PURGE) pkg-trigger-unpack + + # Self trigger cycles cannot happen with activate directives. + $(DPKG_INSTALL) pkg-trigger-activate.deb + $(DPKG_UNPACK) pkg-trigger-activate.deb + $(DPKG_CONFIGURE) pkg-trigger-activate + $(DPKG_CONFIGURE) --pending + $(DPKG_PURGE) pkg-trigger-activate + + # Cleanup. + $(DPKG_PURGE) pkg-trigger-unpack + $(DPKG_PURGE) pkg-trigger-activate + +test-clean: + -$(DPKG_PURGE) pkg-trigger-unpack pkg-trigger-activate |