summaryrefslogtreecommitdiffstats
path: root/tests/t-triggers-cycle/Makefile
blob: b17f87739b968d3e6b31da80b98244a1264c2794 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
TESTS_DEB := pkg-depends pkg-trigger-a pkg-trigger-b

include ../Test.mk

test-case:
	$(DPKG_INSTALL) pkg-depends.deb
	# Should fail due to a trigger cycle.
	! $(DPKG_INSTALL) pkg-trigger-a.deb pkg-trigger-b.deb
	! $(DPKG_CONFIGURE) --pending

	# Make sure everything is left in a correct state.
	$(call pkg_is_installed,pkg-depends)
	$(call pkg_is_installed,pkg-trigger-a)
	$(call pkg_status_is,pkg-trigger-b,install ok half-configured)

	# Cleanup.
	$(DPKG_PURGE) pkg-trigger-a pkg-trigger-b
	$(DPKG_PURGE) pkg-depends

test-clean:
	-$(DPKG_PURGE) pkg-trigger-a pkg-trigger-b pkg-depends