1 TESTS_DEB
:= pkg-file-original pkg-file-takeover
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 $(call pkg_is_installed
,pkg-file-takeover
)
14 test "`$(DPKG_QUERY) -S /test-file`" = "pkg-file-takeover: /test-file"
15 test "`$(DPKG_QUERY) -S /test-other`" = "pkg-file-takeover: /test-other"
16 cmp ref-file
"$(DPKG_INSTDIR)/test-file"
17 cmp ref-file
"$(DPKG_INSTDIR)/test-other"
21 # test-two-run-ordered
22 $(DPKG_INSTALL
) pkg-file-original.deb
23 $(DPKG_INSTALL
) pkg-file-takeover.deb
24 $(call pkg_is_not_installed
,pkg-file-original
)
26 $(DPKG_PURGE
) pkg-file-original pkg-file-takeover
27 test ! -f
"$(DPKG_INSTDIR)/test-file"
28 test ! -f
"$(DPKG_INSTDIR)/test-other"
31 # test-one-run-ordered
32 $(DPKG_INSTALL
) pkg-file-original.deb pkg-file-takeover.deb
33 $(call pkg_is_not_installed
,pkg-file-original
)
35 $(DPKG_PURGE
) pkg-file-original pkg-file-takeover
36 test ! -f
"$(DPKG_INSTDIR)/test-file"
37 test ! -f
"$(DPKG_INSTDIR)/test-other"
40 # test-two-run-reverse
41 $(DPKG_INSTALL
) pkg-file-takeover.deb
42 $(DPKG_INSTALL
) pkg-file-original.deb
43 $(call pkg_is_installed
,pkg-file-original
)
45 $(DPKG_PURGE
) pkg-file-original
46 test -f
"$(DPKG_INSTDIR)/test-file"
47 test -f
"$(DPKG_INSTDIR)/test-other"
48 $(DPKG_PURGE
) pkg-file-takeover
49 test ! -f
"$(DPKG_INSTDIR)/test-file"
50 test ! -f
"$(DPKG_INSTDIR)/test-other"
53 # test-one-run-reverse
54 $(DPKG_INSTALL
) pkg-file-takeover.deb pkg-file-original.deb
55 $(call pkg_is_installed
,pkg-file-original
)
57 $(DPKG_PURGE
) pkg-file-original
58 test -f
"$(DPKG_INSTDIR)/test-file"
59 test -f
"$(DPKG_INSTDIR)/test-other"
60 $(DPKG_PURGE
) pkg-file-takeover
61 test ! -f
"$(DPKG_INSTDIR)/test-file"
62 test ! -f
"$(DPKG_INSTDIR)/test-other"
65 $(DPKG_PURGE
) pkg-file-original pkg-file-takeover