1 TESTS_DEB
:= pkg-conff-original pkg-conff-takeover-0 pkg-conff-takeover-1
5 TEST_CASES
+= test-two-run-ordered
6 TEST_CASES
+= test-one-run-ordered
7 TEST_CASES
+= test-two-run-reverse
8 TEST_CASES
+= test-one-run-reverse
10 test-case
: $(TEST_CASES
)
13 $(DPKG_QUERY
) -f
'$${Package} @ $${Conffiles}\n'
17 $(call pkg_is_installed
,pkg-conff-original
)
18 $(call pkg_is_installed
,pkg-conff-takeover
)
19 test "`$(DPKG_QUERY) -S /test-conffile`" = "pkg-conff-takeover: /test-conffile"
20 test "`$(DPKG_QUERY) -S /test-confpath`" = "pkg-conff-takeover: /test-confpath"
21 test "`$(CONFFILES) -W pkg-conff-original | grep obsolete | wc -l`" = "2"
22 test "`$(CONFFILES) -W pkg-conff-takeover | grep -v obsolete | wc -l`" = "2"
23 cmp ref-conffile
"$(DPKG_INSTDIR)/test-conffile"
24 cmp ref-conffile
"$(DPKG_INSTDIR)/test-confpath"
28 # test-two-run-ordered
29 $(DPKG_INSTALL
) pkg-conff-original.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.deb pkg-conff-takeover-0.deb
38 $(DPKG_INSTALL
) pkg-conff-takeover-1.deb
40 $(DPKG_PURGE
) pkg-conff-original pkg-conff-takeover
43 # test-two-run-reverse
44 $(DPKG_INSTALL
) pkg-conff-takeover-0.deb
45 $(DPKG_INSTALL
) pkg-conff-original.deb
46 $(DPKG_INSTALL
) pkg-conff-takeover-1.deb
48 $(DPKG_PURGE
) pkg-conff-original pkg-conff-takeover
51 # test-one-run-reverse
52 $(DPKG_INSTALL
) pkg-conff-takeover-0.deb pkg-conff-original.deb
53 $(DPKG_INSTALL
) pkg-conff-takeover-1.deb
55 $(DPKG_PURGE
) pkg-conff-original pkg-conff-takeover
58 $(DPKG_PURGE
) pkg-conff-original pkg-conff-takeover