diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 09:40:31 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 09:40:31 +0000 |
commit | b86570f63e533abcbcb97c2572e0e5732a96307b (patch) | |
tree | cabc83be691530ae685c45a8bc7620ccc0e1ebdf /tests/t-triggers-depfarcycle/Makefile | |
parent | Initial commit. (diff) | |
download | dpkg-b86570f63e533abcbcb97c2572e0e5732a96307b.tar.xz dpkg-b86570f63e533abcbcb97c2572e0e5732a96307b.zip |
Adding upstream version 1.20.13.upstream/1.20.13upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/t-triggers-depfarcycle/Makefile')
-rw-r--r-- | tests/t-triggers-depfarcycle/Makefile | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/tests/t-triggers-depfarcycle/Makefile b/tests/t-triggers-depfarcycle/Makefile new file mode 100644 index 0000000..65a490c --- /dev/null +++ b/tests/t-triggers-depfarcycle/Makefile @@ -0,0 +1,36 @@ +TESTS_DEB := pkg-depends-a pkg-depends-b pkg-files pkg-trigger + +include ../Test.mk + +test-case: + # The trigger cycle does not affect us here. + $(DPKG_INSTALL) pkg-depends-a.deb pkg-files.deb \ + pkg-depends-b.deb pkg-trigger.deb + $(DPKG_UNPACK) pkg-files.deb + $(DPKG_CONFIGURE) --pending + + # Make sure everything is left in a correct state. + $(call pkg_is_installed,pkg-files) + $(call pkg_is_installed,pkg-depends-a) + $(call pkg_is_installed,pkg-depends-b) + $(call pkg_is_installed,pkg-trigger) + + # Provoke the trigger cycle. + $(DPKG_UNPACK) pkg-depends-a.deb + $(DPKG_UNPACK) pkg-depends-b.deb + $(DPKG_UNPACK) pkg-files.deb + ! $(DPKG_CONFIGURE) pkg-trigger + $(DPKG) -s pkg-depends-a pkg-depends-b pkg-files pkg-trigger + ! $(DPKG_CONFIGURE) --pending + + # Make sure everything is left in a correct state. + $(call pkg_is_installed,pkg-files) + $(call pkg_is_installed,pkg-depends-a) + $(call pkg_is_installed,pkg-depends-b) + $(call pkg_status_is,pkg-trigger,install ok half-configured) + + # Cleanup. + $(DPKG_PURGE) pkg-trigger pkg-files pkg-depends-a pkg-depends-b + +test-clean: + -$(DPKG_PURGE) pkg-trigger pkg-files pkg-depends-a pkg-depends-b |