po: Update German programs translation
[dpkg.git] / tests / t-conffile-replaces-upgrade / Makefile
blob88298b35ce9fb539d9067b4d7165ec81cc553e4b
1 TESTS_DEB := pkg-conff-original pkg-conff-takeover-0 pkg-conff-takeover-1
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 CONFFILES
13 $(DPKG_QUERY) -f '$${Package} @ $${Conffiles}\n'
14 endef
16 define VERIFY
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"
25 endef
27 test-two-run-ordered:
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
32 $(VERIFY)
33 $(DPKG_PURGE) pkg-conff-original pkg-conff-takeover
35 test-one-run-ordered:
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
39 $(VERIFY)
40 $(DPKG_PURGE) pkg-conff-original pkg-conff-takeover
42 test-two-run-reverse:
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
47 $(VERIFY)
48 $(DPKG_PURGE) pkg-conff-original pkg-conff-takeover
50 test-one-run-reverse:
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
54 $(VERIFY)
55 $(DPKG_PURGE) pkg-conff-original pkg-conff-takeover
57 test-clean:
58 $(DPKG_PURGE) pkg-conff-original pkg-conff-takeover