Dpkg::Vendor::Debian: Only enable LFS when time64 is enabled for glibc
[dpkg.git] / tests / t-conffile-replaces-existing-and-upgrade / Makefile
blob18ff9dd6a7da71ba6dbf053766ec41ed426823b7
1 TESTS_DEB := pkg-conff-original-0 pkg-conff-original-1 \
2 pkg-conff-takeover-0 pkg-conff-takeover-1
4 include ../Test.mk
6 TEST_CASES += test-two-run-ordered
7 TEST_CASES += test-one-run-ordered
8 TEST_CASES += test-two-run-reverse
9 TEST_CASES += test-one-run-reverse
11 test-case: $(TEST_CASES)
13 define CONFFILES
14 $(DPKG_QUERY) -f '$${Package} @ $${Conffiles}\n'
15 endef
17 define VERIFY
18 $(call pkg_is_installed,pkg-conff-original)
19 $(call pkg_is_installed,pkg-conff-takeover)
20 test "`$(DPKG_QUERY) -S /test-conffile`" = "pkg-conff-takeover: /test-conffile"
21 test "`$(CONFFILES) -W pkg-conff-original | grep obsolete | wc -l`" = "1"
22 test "`$(CONFFILES) -W pkg-conff-takeover | grep -v obsolete | wc -l`" = "1"
23 cmp ref-conffile "$(DPKG_INSTDIR)/test-conffile"
24 endef
26 test-two-run-ordered:
27 # test-two-run-ordered
28 $(DPKG_INSTALL) pkg-conff-original-0.deb
29 $(DPKG_INSTALL) pkg-conff-original-1.deb
30 $(DPKG_INSTALL) pkg-conff-takeover-0.deb
31 $(DPKG_INSTALL) pkg-conff-takeover-1.deb
32 $(VERIFY)
33 $(DPKG_PURGE) pkg-conff-original pkg-conff-takeover
35 test-one-run-ordered:
36 # test-one-run-ordered
37 $(DPKG_INSTALL) pkg-conff-original-0.deb
38 $(DPKG_INSTALL) pkg-conff-original-1.deb pkg-conff-takeover-0.deb
39 $(DPKG_INSTALL) pkg-conff-takeover-1.deb
40 $(VERIFY)
41 $(DPKG_PURGE) pkg-conff-original pkg-conff-takeover
43 test-two-run-reverse:
44 # test-two-run-reverse
45 $(DPKG_INSTALL) pkg-conff-original-0.deb
46 $(DPKG_INSTALL) pkg-conff-takeover-0.deb
47 $(DPKG_INSTALL) pkg-conff-original-1.deb
48 $(DPKG_INSTALL) pkg-conff-takeover-1.deb
49 $(VERIFY)
50 $(DPKG_PURGE) pkg-conff-original pkg-conff-takeover
52 test-one-run-reverse:
53 # test-one-run-reverse
54 $(DPKG_INSTALL) pkg-conff-original-0.deb
55 $(DPKG_INSTALL) pkg-conff-takeover-0.deb pkg-conff-original-1.deb
56 $(DPKG_INSTALL) pkg-conff-takeover-1.deb
57 $(VERIFY)
58 $(DPKG_PURGE) pkg-conff-original pkg-conff-takeover
60 test-clean:
61 $(DPKG_PURGE) pkg-conff-original pkg-conff-takeover