1 TESTS_DEB
:= pkg-conff-original-0 pkg-conff-original-1 \
2 pkg-conff-takeover-0 pkg-conff-takeover-1
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
)
14 $(DPKG_QUERY
) -f
'$${Package} @ $${Conffiles}\n'
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"
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
33 $(DPKG_PURGE
) pkg-conff-original pkg-conff-takeover
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
41 $(DPKG_PURGE
) pkg-conff-original pkg-conff-takeover
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
50 $(DPKG_PURGE
) pkg-conff-original pkg-conff-takeover
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
58 $(DPKG_PURGE
) pkg-conff-original pkg-conff-takeover
61 $(DPKG_PURGE
) pkg-conff-original pkg-conff-takeover