Dpkg::Vendor::Debian: Only enable LFS when time64 is enabled for glibc
[dpkg.git] / tests / t-file-replaces-disappear / Makefile
blob719f02bf973f867f049332929c1989f4acb118ba
1 TESTS_DEB := pkg-file-original pkg-file-takeover
3 include ../Test.mk
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)
12 define VERIFY
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"
18 endef
20 test-two-run-ordered:
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)
25 $(VERIFY)
26 $(DPKG_PURGE) pkg-file-original pkg-file-takeover
27 test ! -f "$(DPKG_INSTDIR)/test-file"
28 test ! -f "$(DPKG_INSTDIR)/test-other"
30 test-one-run-ordered:
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)
34 $(VERIFY)
35 $(DPKG_PURGE) pkg-file-original pkg-file-takeover
36 test ! -f "$(DPKG_INSTDIR)/test-file"
37 test ! -f "$(DPKG_INSTDIR)/test-other"
39 test-two-run-reverse:
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)
44 $(VERIFY)
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"
52 test-one-run-reverse:
53 # test-one-run-reverse
54 $(DPKG_INSTALL) pkg-file-takeover.deb pkg-file-original.deb
55 $(call pkg_is_installed,pkg-file-original)
56 $(VERIFY)
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"
64 test-clean:
65 $(DPKG_PURGE) pkg-file-original pkg-file-takeover