1 TESTS_DEB
:= pkg-conff-a pkg-conff-b pkg-conff-c
5 TEST_CASES
+= test-conflict-installed-implicit
6 TEST_CASES
+= test-conflict-removed-implicit
7 TEST_CASES
+= test-conflict-removed-explicit
9 test-case
: $(TEST_CASES
)
11 test-conflict-installed-implicit
:
12 # test if packages fail on install due to conflicting conffile
13 $(DPKG_INSTALL
) pkg-conff-a.deb
14 ! $(DPKG_INSTALL
) pkg-conff-b.deb
15 -$(DPKG_PURGE
) pkg-conff-b
16 $(DPKG_PURGE
) pkg-conff-a
18 test-conflict-removed-implicit
:
19 # test that conffile of removed package can be taken over
20 $(DPKG_INSTALL
) pkg-conff-a.deb
21 $(DPKG_REMOVE
) pkg-conff-a
22 $(DPKG_INSTALL
) pkg-conff-b.deb
23 # Verify the new conffile has been installed
24 grep
-q pkg-conff-b
"$(DPKG_INSTDIR)/test-conffile"
25 # Verify it's kept after purge of old package
26 $(DPKG_PURGE
) pkg-conff-a
27 test -e
"$(DPKG_INSTDIR)/test-conffile"
28 $(DPKG_PURGE
) pkg-conff-b
30 test-conflict-removed-explicit
:
31 # test that conffile of removed package can be taken over even if
32 # the new package is conflicting with the old one
33 $(DPKG_INSTALL
) pkg-conff-a.deb
34 $(DPKG_REMOVE
) pkg-conff-a
35 $(DPKG_INSTALL
) pkg-conff-c.deb
36 # Verify the new conffile has been installed
37 grep
-q pkg-conff-c
"$(DPKG_INSTDIR)/test-conffile"
38 # Verify it's kept after purge of old package
39 $(DPKG_PURGE
) pkg-conff-a
40 test -e
"$(DPKG_INSTDIR)/test-conffile"
41 $(DPKG_PURGE
) pkg-conff-c
44 -$(DPKG_PURGE
) pkg-conff-a pkg-conff-b pkg-conff-c