Dpkg::Vendor::Debian: Move time64 buildflags feature from future to abi
[dpkg.git] / tests / t-triggers-path / Makefile
blobc211204eae67beb1c82dbaff27c82c085d0b4f44
1 TESTS_DEB := pkg-interest pkg-trigger-conffile pkg-trigger-cmd
3 include ../Test.mk
5 test-case:
6 $(DPKG_INSTALL) pkg-interest.deb
8 # Test that the trigger gets activated on conffile installation
9 $(DPKG_UNPACK) pkg-trigger-conffile.deb
10 test -e "$(DPKG_INSTDIR)/test-triggered-cmd" && $(BEROOT) rm -f "$(DPKG_INSTDIR)/test-triggered-cmd"
11 $(DPKG_CONFIGURE) pkg-trigger-conffile
12 test -e "$(DPKG_INSTDIR)/test-triggered-file" && $(BEROOT) rm -f "$(DPKG_INSTDIR)/test-triggered-file"
13 $(DPKG_PURGE) pkg-trigger-conffile
15 # Test that the trigger gets activated on explicit file request
16 $(DPKG_INSTALL) pkg-trigger-cmd.deb
17 test -e "$(DPKG_INSTDIR)/test-triggered-cmd" && $(BEROOT) rm -f "$(DPKG_INSTDIR)/test-triggered-cmd"
18 $(DPKG_PURGE) pkg-trigger-cmd
20 # Cleanup.
21 $(DPKG_PURGE) pkg-interest
23 test-clean:
24 $(BEROOT) rm -f "$(DPKG_INSTDIR)/test-triggered-cmd" "$(DPKG_INSTDIR)/test-triggered-file"
25 -$(DPKG_PURGE) pkg-interest
26 -$(DPKG_PURGE) pkg-trigger-conffile pkg-trigger-cmd