summaryrefslogtreecommitdiffstats
path: root/tests/t-conflict-provide-replace-interface/Makefile
blob: 6aefafbe9949e02fdc36ac1d7fd737ebc6f21f7f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
TESTS_DEB := pkg-a pkg-b

include ../Test.mk

test-case:
	$(DPKG_INSTALL) pkg-a.deb
	# The user was not explicit in the request, fail
	! $(DPKG_INSTALL) pkg-b.deb
	# Even if requesting auto-deconfigure the request is not explicit
	# enough, fail
	! $(DPKG_INSTALL) -B pkg-b.deb
	# Set up the desired transaction
	echo pkg-a deinstall | $(BEROOT) $(DPKG) --set-selections
	$(DPKG_INSTALL) pkg-b.deb

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