summaryrefslogtreecommitdiffstats
path: root/tests/t-conffile-forcemiss/Makefile
blob: ab36890b3c633de757c2f1dc638306a925e70eae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
TESTS_DEB := pkg-conff-forcemiss-0 pkg-conff-forcemiss-1

include ../Test.mk

test-case:
	# Test if we get the new conffile after a missing one.
	$(DPKG_INSTALL) pkg-conff-forcemiss-0.deb
	$(BEROOT) rm "$(DPKG_INSTDIR)/test-conffile"
	$(DPKG_INSTALL) pkg-conff-forcemiss-1.deb
	! test -f "$(DPKG_INSTDIR)/test-conffile"
	$(DPKG_INSTALL) --force-confmiss pkg-conff-forcemiss-1.deb
	cmp ref-conffile "$(DPKG_INSTDIR)/test-conffile"
	$(DPKG_PURGE) pkg-conff-forcemiss

test-clean:
	$(DPKG_PURGE) pkg-conff-forcemiss