summaryrefslogtreecommitdiffstats
path: root/tests/t-disappear-diverted-other/Makefile
blob: d483b9ad5453826e848f22eb24047eefbd5b53f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
TESTS_DEB := pkg-divert pkg-diverted pkg-replaces

include ../Test.mk

test-case:
	# Test disappearing diverted package with a not contended pathname.
	$(DPKG_INSTALL) pkg-divert.deb
	$(DPKG_INSTALL) pkg-diverted.deb
	$(DPKG_INSTALL) pkg-replaces.deb
	# Should disappear because there is no contended pathname.
	$(call pkg_is_not_installed,pkg-divert)
	$(DPKG_PURGE) pkg-divert
	$(DPKG_PURGE) pkg-diverted
	$(DPKG_PURGE) pkg-replaces
	:
	# Test disappearing diverted package with a not contended pathname.
	$(DPKG_INSTALL) pkg-divert.deb
	$(DPKG_INSTALL) pkg-replaces.deb
	# Should disappear because there is no contended pathname.
	$(call pkg_is_not_installed,pkg-divert)
	$(DPKG_PURGE) pkg-divert
	$(DPKG_PURGE) pkg-replaces

test-clean:
	$(DPKG_PURGE) pkg-divert
	$(DPKG_PURGE) pkg-diverted
	$(DPKG_PURGE) pkg-replaces