Dpkg::Vendor::Debian: Move time64 buildflags feature from future to abi
[dpkg.git] / tests / t-predepends-no-triggers / Makefile
blob962cf93ed731a41907b2fb9a300ce49e82e7e347
1 TESTS_DEB := pkg-real pkg-predepends pkg-trigger
3 include ../Test.mk
5 test-case:
6 # Install the file trigger
7 $(DPKG_INSTALL) pkg-trigger.deb
8 # Install the pre-dependency with --no-triggers
9 $(DPKG_INSTALL) --no-triggers pkg-real.deb
10 $(call pkg_status_is,pkg-real,install ok triggers-awaited)
11 # Should pass even if not yet configured...
12 $(DPKG_UNPACK) --no-triggers pkg-predepends.deb
13 # ...by running the required triggers
14 $(call pkg_status_is,pkg-real,install ok installed)
15 # Retry again, this time the trigger processing is not required
16 # because pkg-real has already been configured once
17 $(DPKG_PURGE) pkg-predepends
18 $(DPKG_INSTALL) --no-triggers pkg-real.deb
19 $(call pkg_status_is,pkg-real,install ok triggers-awaited)
20 $(DPKG_UNPACK) --no-triggers pkg-predepends.deb
21 $(call pkg_status_is,pkg-real,install ok triggers-awaited)
22 # Cleanup
23 $(DPKG_PURGE) pkg-predepends
24 $(DPKG_PURGE) pkg-real
25 $(DPKG_PURGE) pkg-trigger
27 test-clean:
28 -$(DPKG_PURGE) pkg-predepends pkg-real pkg-trigger