dpkg-trigger: Initialize opt_act to 1
[dpkg.git] / tests / t-triggers-selfcycle / Makefile
blobcd916f831af84415af3d8e182c31efb89bf72050
1 TESTS_DEB := pkg-trigger-unpack pkg-trigger-activate
3 include ../Test.mk
5 test-case:
6 # Self trigger cycles cannot happen with unpacked files.
7 $(DPKG_INSTALL) pkg-trigger-unpack.deb
8 $(DPKG_UNPACK) pkg-trigger-unpack.deb
9 $(DPKG_CONFIGURE) pkg-trigger-unpack
10 $(DPKG_CONFIGURE) --pending
11 $(DPKG_PURGE) pkg-trigger-unpack
13 # Self trigger cycles cannot happen with activate directives.
14 $(DPKG_INSTALL) pkg-trigger-activate.deb
15 $(DPKG_UNPACK) pkg-trigger-activate.deb
16 $(DPKG_CONFIGURE) pkg-trigger-activate
17 $(DPKG_CONFIGURE) --pending
18 $(DPKG_PURGE) pkg-trigger-activate
20 # Cleanup.
21 $(DPKG_PURGE) pkg-trigger-unpack
22 $(DPKG_PURGE) pkg-trigger-activate
24 test-clean:
25 -$(DPKG_PURGE) pkg-trigger-unpack pkg-trigger-activate