Dpkg::OpenPGP::Backend::GnuPG: Accept keybox format keyrings as-is
[dpkg.git] / tests / t-conffile-rename / Makefile
bloba8d0272a99f26af3de3cbb5da1cbbf62841604f9
1 TESTS_DEB := pkg-conff-rename-0 pkg-conff-rename-1
3 include ../Test.mk
5 test-case:
6 $(DPKG_INSTALL) pkg-conff-rename-0.deb
7 $(DPKG_INSTALL) pkg-conff-rename-1.deb
8 test -f '$(DPKG_INSTDIR)/test-conffile-new'
9 test ! -f '$(DPKG_INSTDIR)/test-conffile-old'
10 test ! -f '$(DPKG_INSTDIR)/test-conffile-old.dpkg-remove'
11 test ! -f '$(DPKG_INSTDIR)/test-conffile-old.dpkg-bak'
12 $(DPKG_PURGE) pkg-conff-rename
13 # Same upgrade but with modified conffile, should still not prompt
14 $(DPKG_INSTALL) pkg-conff-rename-0.deb
15 $(BEROOT) sh -c "echo foo >>'$(DPKG_INSTDIR)/test-conffile-old'"
16 $(DPKG_INSTALL) pkg-conff-rename-1.deb
17 test -f '$(DPKG_INSTDIR)/test-conffile-new'
18 test ! -f '$(DPKG_INSTDIR)/test-conffile-old'
19 test ! -f '$(DPKG_INSTDIR)/test-conffile-old.dpkg-remove'
20 test ! -f '$(DPKG_INSTDIR)/test-conffile-old.dpkg-bak'
21 $(DPKG_PURGE) pkg-conff-rename
22 # Abort-upgrade restores the to-be-renamed conffile
23 $(DPKG_INSTALL) pkg-conff-rename-0.deb
24 $(BEROOT) touch '$(DPKG_INSTDIR)/fail-preinst'
25 $(DPKG_INSTALL) pkg-conff-rename-1.deb || true
26 $(BEROOT) rm -f '$(DPKG_INSTDIR)/fail-preinst'
27 test -f '$(DPKG_INSTDIR)/test-conffile-old'
28 test ! -f '$(DPKG_INSTDIR)/test-conffile-new'
29 test ! -f '$(DPKG_INSTDIR)/test-conffile-old.dpkg-remove'
30 test ! -f '$(DPKG_INSTDIR)/test-conffile-old.dpkg-bak'
31 $(DPKG_PURGE) pkg-conff-rename
33 test-clean: