diff options
Diffstat (limited to '')
87 files changed, 514 insertions, 0 deletions
diff --git a/tests/t-conffile-replaces-disappear/Makefile b/tests/t-conffile-replaces-disappear/Makefile new file mode 100644 index 0000000..f5bc087 --- /dev/null +++ b/tests/t-conffile-replaces-disappear/Makefile @@ -0,0 +1,51 @@ +TESTS_DEB := pkg-conff-original pkg-conff-takeover + +include ../Test.mk + +TEST_CASES += test-two-run-ordered +TEST_CASES += test-one-run-ordered +TEST_CASES += test-two-run-reverse +TEST_CASES += test-one-run-reverse + +test-case: $(TEST_CASES) + +define VERIFY +$(call pkg_is_installed,pkg-conff-takeover) +test "`$(DPKG_QUERY) -S /test-conffile`" = "pkg-conff-takeover: /test-conffile" +cmp ref-conffile "$(DPKG_INSTDIR)/test-conffile" +endef + +test-two-run-ordered: + # test-two-run-ordered + $(DPKG_INSTALL) pkg-conff-original.deb + $(DPKG_INSTALL) pkg-conff-takeover.deb + $(call pkg_is_not_installed,pkg-conff-original) + $(VERIFY) + $(DPKG_PURGE) pkg-conff-original pkg-conff-takeover + test ! -f "$(DPKG_INSTDIR)/test-conffile" + +test-one-run-ordered: + # test-one-run-ordered + $(DPKG_INSTALL) pkg-conff-original.deb pkg-conff-takeover.deb + $(call pkg_is_not_installed,pkg-conff-original) + $(VERIFY) + $(DPKG_PURGE) pkg-conff-original pkg-conff-takeover + test ! -f "$(DPKG_INSTDIR)/test-conffile" + +test-two-run-reverse: + # test-two-run-reverse + $(DPKG_INSTALL) pkg-conff-takeover.deb + $(DPKG_INSTALL) pkg-conff-original.deb + $(call pkg_is_installed,pkg-conff-original) + $(VERIFY) + $(DPKG_PURGE) pkg-conff-original pkg-conff-takeover + test ! -f "$(DPKG_INSTDIR)/test-conffile" + +test-one-run-reverse: + # test-one-run-reverse + $(DPKG_INSTALL) pkg-conff-takeover.deb pkg-conff-original.deb + $(call pkg_is_installed,pkg-conff-original) + $(VERIFY) + $(DPKG_PURGE) pkg-conff-original pkg-conff-takeover + test ! -f "$(DPKG_INSTDIR)/test-conffile" + diff --git a/tests/t-conffile-replaces-disappear/pkg-conff-original/DEBIAN/conffiles b/tests/t-conffile-replaces-disappear/pkg-conff-original/DEBIAN/conffiles new file mode 100644 index 0000000..4fad7e9 --- /dev/null +++ b/tests/t-conffile-replaces-disappear/pkg-conff-original/DEBIAN/conffiles @@ -0,0 +1 @@ +/test-conffile diff --git a/tests/t-conffile-replaces-disappear/pkg-conff-original/DEBIAN/control b/tests/t-conffile-replaces-disappear/pkg-conff-original/DEBIAN/control new file mode 100644 index 0000000..523e417 --- /dev/null +++ b/tests/t-conffile-replaces-disappear/pkg-conff-original/DEBIAN/control @@ -0,0 +1,8 @@ +Package: pkg-conff-original +Version: 0 +Section: test +Priority: extra +Maintainer: Dpkg Developers <debian-dpkg@lists.debian.org> +Architecture: all +Description: test package - provide a conffile + diff --git a/tests/t-conffile-replaces-disappear/pkg-conff-original/test-conffile b/tests/t-conffile-replaces-disappear/pkg-conff-original/test-conffile new file mode 100644 index 0000000..7e3c47b --- /dev/null +++ b/tests/t-conffile-replaces-disappear/pkg-conff-original/test-conffile @@ -0,0 +1 @@ +test original diff --git a/tests/t-conffile-replaces-disappear/pkg-conff-takeover/DEBIAN/conffiles b/tests/t-conffile-replaces-disappear/pkg-conff-takeover/DEBIAN/conffiles new file mode 100644 index 0000000..4fad7e9 --- /dev/null +++ b/tests/t-conffile-replaces-disappear/pkg-conff-takeover/DEBIAN/conffiles @@ -0,0 +1 @@ +/test-conffile diff --git a/tests/t-conffile-replaces-disappear/pkg-conff-takeover/DEBIAN/control b/tests/t-conffile-replaces-disappear/pkg-conff-takeover/DEBIAN/control new file mode 100644 index 0000000..1f1e038 --- /dev/null +++ b/tests/t-conffile-replaces-disappear/pkg-conff-takeover/DEBIAN/control @@ -0,0 +1,9 @@ +Package: pkg-conff-takeover +Version: 0 +Section: test +Priority: extra +Maintainer: Dpkg Developers <debian-dpkg@lists.debian.org> +Architecture: all +Replaces: pkg-conff-original +Description: test package - conffile replaces takeover + diff --git a/tests/t-conffile-replaces-disappear/pkg-conff-takeover/test-conffile b/tests/t-conffile-replaces-disappear/pkg-conff-takeover/test-conffile new file mode 100644 index 0000000..82fe7fe --- /dev/null +++ b/tests/t-conffile-replaces-disappear/pkg-conff-takeover/test-conffile @@ -0,0 +1 @@ +test takeover diff --git a/tests/t-conffile-replaces-disappear/ref-conffile b/tests/t-conffile-replaces-disappear/ref-conffile new file mode 100644 index 0000000..82fe7fe --- /dev/null +++ b/tests/t-conffile-replaces-disappear/ref-conffile @@ -0,0 +1 @@ +test takeover diff --git a/tests/t-conffile-replaces-diverted/Makefile b/tests/t-conffile-replaces-diverted/Makefile new file mode 100644 index 0000000..5e9b176 --- /dev/null +++ b/tests/t-conffile-replaces-diverted/Makefile @@ -0,0 +1,18 @@ +TESTS_DEB := pkg-conff-0 pkg-conff-1 pkg-conff-move + +include ../Test.mk + +DPKG_DIVERT_OPTIONS += --local --rename --divert /test/conffile.moved + +test-case: + $(DPKG_INSTALL) pkg-conff-0.deb + $(DPKG_DIVERT_ADD) /test/conffile + test -f '$(DPKG_INSTDIR)/test/conffile.moved' + # Test if the other package can takeover a diverted conffile w/o error. + $(DPKG_INSTALL) pkg-conff-1.deb + $(DPKG_INSTALL) pkg-conff-move.deb + +test-clean: + $(DPKG_DIVERT_DEL) /test/conffile + $(DPKG_PURGE) pkg-conff + $(DPKG_PURGE) pkg-conff-move diff --git a/tests/t-conffile-replaces-diverted/pkg-conff-0/DEBIAN/conffiles b/tests/t-conffile-replaces-diverted/pkg-conff-0/DEBIAN/conffiles new file mode 100644 index 0000000..e2b8681 --- /dev/null +++ b/tests/t-conffile-replaces-diverted/pkg-conff-0/DEBIAN/conffiles @@ -0,0 +1 @@ +/test/conffile diff --git a/tests/t-conffile-replaces-diverted/pkg-conff-0/DEBIAN/control b/tests/t-conffile-replaces-diverted/pkg-conff-0/DEBIAN/control new file mode 100644 index 0000000..13bd5aa --- /dev/null +++ b/tests/t-conffile-replaces-diverted/pkg-conff-0/DEBIAN/control @@ -0,0 +1,7 @@ +Package: pkg-conff +Version: 0 +Section: test +Priority: extra +Maintainer: Dpkg Developers <debian-dpkg@lists.debian.org> +Architecture: all +Description: test package - provide a conffile diff --git a/tests/t-conffile-replaces-diverted/pkg-conff-0/test/conffile b/tests/t-conffile-replaces-diverted/pkg-conff-0/test/conffile new file mode 100644 index 0000000..08db759 --- /dev/null +++ b/tests/t-conffile-replaces-diverted/pkg-conff-0/test/conffile @@ -0,0 +1 @@ +This is a conffile. diff --git a/tests/t-conffile-replaces-diverted/pkg-conff-1/DEBIAN/control b/tests/t-conffile-replaces-diverted/pkg-conff-1/DEBIAN/control new file mode 100644 index 0000000..bd499f5 --- /dev/null +++ b/tests/t-conffile-replaces-diverted/pkg-conff-1/DEBIAN/control @@ -0,0 +1,7 @@ +Package: pkg-conff +Version: 1 +Section: test +Priority: extra +Maintainer: Dpkg Developers <debian-dpkg@lists.debian.org> +Architecture: all +Description: test package - provided a conffile, not anymore diff --git a/tests/t-conffile-replaces-diverted/pkg-conff-move/DEBIAN/conffiles b/tests/t-conffile-replaces-diverted/pkg-conff-move/DEBIAN/conffiles new file mode 100644 index 0000000..e2b8681 --- /dev/null +++ b/tests/t-conffile-replaces-diverted/pkg-conff-move/DEBIAN/conffiles @@ -0,0 +1 @@ +/test/conffile diff --git a/tests/t-conffile-replaces-diverted/pkg-conff-move/DEBIAN/control b/tests/t-conffile-replaces-diverted/pkg-conff-move/DEBIAN/control new file mode 100644 index 0000000..bcbdffa --- /dev/null +++ b/tests/t-conffile-replaces-diverted/pkg-conff-move/DEBIAN/control @@ -0,0 +1,8 @@ +Package: pkg-conff-move +Version: 1 +Section: test +Priority: extra +Maintainer: Dpkg Developers <debian-dpkg@lists.debian.org> +Architecture: all +Replaces: pkg-conff (<< 1) +Description: test package - takeover a conffile diff --git a/tests/t-conffile-replaces-diverted/pkg-conff-move/test/conffile b/tests/t-conffile-replaces-diverted/pkg-conff-move/test/conffile new file mode 100644 index 0000000..08db759 --- /dev/null +++ b/tests/t-conffile-replaces-diverted/pkg-conff-move/test/conffile @@ -0,0 +1 @@ +This is a conffile. diff --git a/tests/t-conffile-replaces-downgrade/Makefile b/tests/t-conffile-replaces-downgrade/Makefile new file mode 100644 index 0000000..df08bd6 --- /dev/null +++ b/tests/t-conffile-replaces-downgrade/Makefile @@ -0,0 +1,20 @@ +TESTS_DEB := pkg-conff-original-0 pkg-conff-original-1 pkg-conff-takeover + +include ../Test.mk + +define VERIFY +$(call pkg_is_installed,pkg-conff-original) +$(call pkg_is_installed,pkg-conff-takeover) +test "`$(DPKG_QUERY) -S /test-conffile`" = "pkg-conff-takeover: /test-conffile" +cmp ref-conffile "$(DPKG_INSTDIR)/test-conffile" +endef + +test-case: + # Install packages + $(DPKG_INSTALL) pkg-conff-original-1.deb + $(DPKG_INSTALL) pkg-conff-takeover.deb + # Downgrade to test versioned Replaces + $(DPKG_INSTALL) pkg-conff-original-0.deb + $(VERIFY) + $(DPKG_PURGE) pkg-conff-original pkg-conff-takeover + diff --git a/tests/t-conffile-replaces-downgrade/pkg-conff-original-0/DEBIAN/conffiles b/tests/t-conffile-replaces-downgrade/pkg-conff-original-0/DEBIAN/conffiles new file mode 100644 index 0000000..4fad7e9 --- /dev/null +++ b/tests/t-conffile-replaces-downgrade/pkg-conff-original-0/DEBIAN/conffiles @@ -0,0 +1 @@ +/test-conffile diff --git a/tests/t-conffile-replaces-downgrade/pkg-conff-original-0/DEBIAN/control b/tests/t-conffile-replaces-downgrade/pkg-conff-original-0/DEBIAN/control new file mode 100644 index 0000000..523e417 --- /dev/null +++ b/tests/t-conffile-replaces-downgrade/pkg-conff-original-0/DEBIAN/control @@ -0,0 +1,8 @@ +Package: pkg-conff-original +Version: 0 +Section: test +Priority: extra +Maintainer: Dpkg Developers <debian-dpkg@lists.debian.org> +Architecture: all +Description: test package - provide a conffile + diff --git a/tests/t-conffile-replaces-downgrade/pkg-conff-original-0/test-conffile b/tests/t-conffile-replaces-downgrade/pkg-conff-original-0/test-conffile new file mode 100644 index 0000000..995e78d --- /dev/null +++ b/tests/t-conffile-replaces-downgrade/pkg-conff-original-0/test-conffile @@ -0,0 +1 @@ +test original 0 diff --git a/tests/t-conffile-replaces-downgrade/pkg-conff-original-0/test-original b/tests/t-conffile-replaces-downgrade/pkg-conff-original-0/test-original new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/tests/t-conffile-replaces-downgrade/pkg-conff-original-0/test-original diff --git a/tests/t-conffile-replaces-downgrade/pkg-conff-original-1/DEBIAN/control b/tests/t-conffile-replaces-downgrade/pkg-conff-original-1/DEBIAN/control new file mode 100644 index 0000000..6cb5a69 --- /dev/null +++ b/tests/t-conffile-replaces-downgrade/pkg-conff-original-1/DEBIAN/control @@ -0,0 +1,8 @@ +Package: pkg-conff-original +Version: 1 +Section: test +Priority: extra +Maintainer: Dpkg Developers <debian-dpkg@lists.debian.org> +Architecture: all +Description: test package - stop provinding a conffile + diff --git a/tests/t-conffile-replaces-downgrade/pkg-conff-original-1/test-original b/tests/t-conffile-replaces-downgrade/pkg-conff-original-1/test-original new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/tests/t-conffile-replaces-downgrade/pkg-conff-original-1/test-original diff --git a/tests/t-conffile-replaces-downgrade/pkg-conff-takeover/DEBIAN/conffiles b/tests/t-conffile-replaces-downgrade/pkg-conff-takeover/DEBIAN/conffiles new file mode 100644 index 0000000..4fad7e9 --- /dev/null +++ b/tests/t-conffile-replaces-downgrade/pkg-conff-takeover/DEBIAN/conffiles @@ -0,0 +1 @@ +/test-conffile diff --git a/tests/t-conffile-replaces-downgrade/pkg-conff-takeover/DEBIAN/control b/tests/t-conffile-replaces-downgrade/pkg-conff-takeover/DEBIAN/control new file mode 100644 index 0000000..f323304 --- /dev/null +++ b/tests/t-conffile-replaces-downgrade/pkg-conff-takeover/DEBIAN/control @@ -0,0 +1,9 @@ +Package: pkg-conff-takeover +Version: 1 +Section: test +Priority: extra +Maintainer: Dpkg Developers <debian-dpkg@lists.debian.org> +Architecture: all +Replaces: pkg-conff-original +Description: test package - conffile replaces takeover + diff --git a/tests/t-conffile-replaces-downgrade/pkg-conff-takeover/test-conffile b/tests/t-conffile-replaces-downgrade/pkg-conff-takeover/test-conffile new file mode 100644 index 0000000..1bc4643 --- /dev/null +++ b/tests/t-conffile-replaces-downgrade/pkg-conff-takeover/test-conffile @@ -0,0 +1 @@ +test takeover 1 diff --git a/tests/t-conffile-replaces-downgrade/pkg-conff-takeover/test-takeover b/tests/t-conffile-replaces-downgrade/pkg-conff-takeover/test-takeover new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/tests/t-conffile-replaces-downgrade/pkg-conff-takeover/test-takeover diff --git a/tests/t-conffile-replaces-downgrade/ref-conffile b/tests/t-conffile-replaces-downgrade/ref-conffile new file mode 100644 index 0000000..1bc4643 --- /dev/null +++ b/tests/t-conffile-replaces-downgrade/ref-conffile @@ -0,0 +1 @@ +test takeover 1 diff --git a/tests/t-conffile-replaces-existing-and-upgrade/Makefile b/tests/t-conffile-replaces-existing-and-upgrade/Makefile new file mode 100644 index 0000000..18ff9dd --- /dev/null +++ b/tests/t-conffile-replaces-existing-and-upgrade/Makefile @@ -0,0 +1,61 @@ +TESTS_DEB := pkg-conff-original-0 pkg-conff-original-1 \ + pkg-conff-takeover-0 pkg-conff-takeover-1 + +include ../Test.mk + +TEST_CASES += test-two-run-ordered +TEST_CASES += test-one-run-ordered +TEST_CASES += test-two-run-reverse +TEST_CASES += test-one-run-reverse + +test-case: $(TEST_CASES) + +define CONFFILES +$(DPKG_QUERY) -f '$${Package} @ $${Conffiles}\n' +endef + +define VERIFY +$(call pkg_is_installed,pkg-conff-original) +$(call pkg_is_installed,pkg-conff-takeover) +test "`$(DPKG_QUERY) -S /test-conffile`" = "pkg-conff-takeover: /test-conffile" +test "`$(CONFFILES) -W pkg-conff-original | grep obsolete | wc -l`" = "1" +test "`$(CONFFILES) -W pkg-conff-takeover | grep -v obsolete | wc -l`" = "1" +cmp ref-conffile "$(DPKG_INSTDIR)/test-conffile" +endef + +test-two-run-ordered: + # test-two-run-ordered + $(DPKG_INSTALL) pkg-conff-original-0.deb + $(DPKG_INSTALL) pkg-conff-original-1.deb + $(DPKG_INSTALL) pkg-conff-takeover-0.deb + $(DPKG_INSTALL) pkg-conff-takeover-1.deb + $(VERIFY) + $(DPKG_PURGE) pkg-conff-original pkg-conff-takeover + +test-one-run-ordered: + # test-one-run-ordered + $(DPKG_INSTALL) pkg-conff-original-0.deb + $(DPKG_INSTALL) pkg-conff-original-1.deb pkg-conff-takeover-0.deb + $(DPKG_INSTALL) pkg-conff-takeover-1.deb + $(VERIFY) + $(DPKG_PURGE) pkg-conff-original pkg-conff-takeover + +test-two-run-reverse: + # test-two-run-reverse + $(DPKG_INSTALL) pkg-conff-original-0.deb + $(DPKG_INSTALL) pkg-conff-takeover-0.deb + $(DPKG_INSTALL) pkg-conff-original-1.deb + $(DPKG_INSTALL) pkg-conff-takeover-1.deb + $(VERIFY) + $(DPKG_PURGE) pkg-conff-original pkg-conff-takeover + +test-one-run-reverse: + # test-one-run-reverse + $(DPKG_INSTALL) pkg-conff-original-0.deb + $(DPKG_INSTALL) pkg-conff-takeover-0.deb pkg-conff-original-1.deb + $(DPKG_INSTALL) pkg-conff-takeover-1.deb + $(VERIFY) + $(DPKG_PURGE) pkg-conff-original pkg-conff-takeover + +test-clean: + $(DPKG_PURGE) pkg-conff-original pkg-conff-takeover diff --git a/tests/t-conffile-replaces-existing-and-upgrade/pkg-conff-original-0/DEBIAN/conffiles b/tests/t-conffile-replaces-existing-and-upgrade/pkg-conff-original-0/DEBIAN/conffiles new file mode 100644 index 0000000..4fad7e9 --- /dev/null +++ b/tests/t-conffile-replaces-existing-and-upgrade/pkg-conff-original-0/DEBIAN/conffiles @@ -0,0 +1 @@ +/test-conffile diff --git a/tests/t-conffile-replaces-existing-and-upgrade/pkg-conff-original-0/DEBIAN/control b/tests/t-conffile-replaces-existing-and-upgrade/pkg-conff-original-0/DEBIAN/control new file mode 100644 index 0000000..523e417 --- /dev/null +++ b/tests/t-conffile-replaces-existing-and-upgrade/pkg-conff-original-0/DEBIAN/control @@ -0,0 +1,8 @@ +Package: pkg-conff-original +Version: 0 +Section: test +Priority: extra +Maintainer: Dpkg Developers <debian-dpkg@lists.debian.org> +Architecture: all +Description: test package - provide a conffile + diff --git a/tests/t-conffile-replaces-existing-and-upgrade/pkg-conff-original-0/test-conffile b/tests/t-conffile-replaces-existing-and-upgrade/pkg-conff-original-0/test-conffile new file mode 100644 index 0000000..995e78d --- /dev/null +++ b/tests/t-conffile-replaces-existing-and-upgrade/pkg-conff-original-0/test-conffile @@ -0,0 +1 @@ +test original 0 diff --git a/tests/t-conffile-replaces-existing-and-upgrade/pkg-conff-original-0/test-original b/tests/t-conffile-replaces-existing-and-upgrade/pkg-conff-original-0/test-original new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/tests/t-conffile-replaces-existing-and-upgrade/pkg-conff-original-0/test-original diff --git a/tests/t-conffile-replaces-existing-and-upgrade/pkg-conff-original-1/DEBIAN/conffiles b/tests/t-conffile-replaces-existing-and-upgrade/pkg-conff-original-1/DEBIAN/conffiles new file mode 100644 index 0000000..4fad7e9 --- /dev/null +++ b/tests/t-conffile-replaces-existing-and-upgrade/pkg-conff-original-1/DEBIAN/conffiles @@ -0,0 +1 @@ +/test-conffile diff --git a/tests/t-conffile-replaces-existing-and-upgrade/pkg-conff-original-1/DEBIAN/control b/tests/t-conffile-replaces-existing-and-upgrade/pkg-conff-original-1/DEBIAN/control new file mode 100644 index 0000000..aebf74d --- /dev/null +++ b/tests/t-conffile-replaces-existing-and-upgrade/pkg-conff-original-1/DEBIAN/control @@ -0,0 +1,8 @@ +Package: pkg-conff-original +Version: 1 +Section: test +Priority: extra +Maintainer: Dpkg Developers <debian-dpkg@lists.debian.org> +Architecture: all +Description: test package - provide a conffile + diff --git a/tests/t-conffile-replaces-existing-and-upgrade/pkg-conff-original-1/test-conffile b/tests/t-conffile-replaces-existing-and-upgrade/pkg-conff-original-1/test-conffile new file mode 100644 index 0000000..326ec44 --- /dev/null +++ b/tests/t-conffile-replaces-existing-and-upgrade/pkg-conff-original-1/test-conffile @@ -0,0 +1 @@ +test original 1 diff --git a/tests/t-conffile-replaces-existing-and-upgrade/pkg-conff-original-1/test-original b/tests/t-conffile-replaces-existing-and-upgrade/pkg-conff-original-1/test-original new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/tests/t-conffile-replaces-existing-and-upgrade/pkg-conff-original-1/test-original diff --git a/tests/t-conffile-replaces-existing-and-upgrade/pkg-conff-takeover-0/DEBIAN/conffiles b/tests/t-conffile-replaces-existing-and-upgrade/pkg-conff-takeover-0/DEBIAN/conffiles new file mode 100644 index 0000000..4fad7e9 --- /dev/null +++ b/tests/t-conffile-replaces-existing-and-upgrade/pkg-conff-takeover-0/DEBIAN/conffiles @@ -0,0 +1 @@ +/test-conffile diff --git a/tests/t-conffile-replaces-existing-and-upgrade/pkg-conff-takeover-0/DEBIAN/control b/tests/t-conffile-replaces-existing-and-upgrade/pkg-conff-takeover-0/DEBIAN/control new file mode 100644 index 0000000..1f1e038 --- /dev/null +++ b/tests/t-conffile-replaces-existing-and-upgrade/pkg-conff-takeover-0/DEBIAN/control @@ -0,0 +1,9 @@ +Package: pkg-conff-takeover +Version: 0 +Section: test +Priority: extra +Maintainer: Dpkg Developers <debian-dpkg@lists.debian.org> +Architecture: all +Replaces: pkg-conff-original +Description: test package - conffile replaces takeover + diff --git a/tests/t-conffile-replaces-existing-and-upgrade/pkg-conff-takeover-0/test-conffile b/tests/t-conffile-replaces-existing-and-upgrade/pkg-conff-takeover-0/test-conffile new file mode 100644 index 0000000..01c117f --- /dev/null +++ b/tests/t-conffile-replaces-existing-and-upgrade/pkg-conff-takeover-0/test-conffile @@ -0,0 +1 @@ +test takeover 0 diff --git a/tests/t-conffile-replaces-existing-and-upgrade/pkg-conff-takeover-0/test-takeover b/tests/t-conffile-replaces-existing-and-upgrade/pkg-conff-takeover-0/test-takeover new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/tests/t-conffile-replaces-existing-and-upgrade/pkg-conff-takeover-0/test-takeover diff --git a/tests/t-conffile-replaces-existing-and-upgrade/pkg-conff-takeover-1/DEBIAN/conffiles b/tests/t-conffile-replaces-existing-and-upgrade/pkg-conff-takeover-1/DEBIAN/conffiles new file mode 100644 index 0000000..4fad7e9 --- /dev/null +++ b/tests/t-conffile-replaces-existing-and-upgrade/pkg-conff-takeover-1/DEBIAN/conffiles @@ -0,0 +1 @@ +/test-conffile diff --git a/tests/t-conffile-replaces-existing-and-upgrade/pkg-conff-takeover-1/DEBIAN/control b/tests/t-conffile-replaces-existing-and-upgrade/pkg-conff-takeover-1/DEBIAN/control new file mode 100644 index 0000000..f323304 --- /dev/null +++ b/tests/t-conffile-replaces-existing-and-upgrade/pkg-conff-takeover-1/DEBIAN/control @@ -0,0 +1,9 @@ +Package: pkg-conff-takeover +Version: 1 +Section: test +Priority: extra +Maintainer: Dpkg Developers <debian-dpkg@lists.debian.org> +Architecture: all +Replaces: pkg-conff-original +Description: test package - conffile replaces takeover + diff --git a/tests/t-conffile-replaces-existing-and-upgrade/pkg-conff-takeover-1/test-conffile b/tests/t-conffile-replaces-existing-and-upgrade/pkg-conff-takeover-1/test-conffile new file mode 100644 index 0000000..1bc4643 --- /dev/null +++ b/tests/t-conffile-replaces-existing-and-upgrade/pkg-conff-takeover-1/test-conffile @@ -0,0 +1 @@ +test takeover 1 diff --git a/tests/t-conffile-replaces-existing-and-upgrade/pkg-conff-takeover-1/test-takeover b/tests/t-conffile-replaces-existing-and-upgrade/pkg-conff-takeover-1/test-takeover new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/tests/t-conffile-replaces-existing-and-upgrade/pkg-conff-takeover-1/test-takeover diff --git a/tests/t-conffile-replaces-existing-and-upgrade/ref-conffile b/tests/t-conffile-replaces-existing-and-upgrade/ref-conffile new file mode 100644 index 0000000..1bc4643 --- /dev/null +++ b/tests/t-conffile-replaces-existing-and-upgrade/ref-conffile @@ -0,0 +1 @@ +test takeover 1 diff --git a/tests/t-conffile-replaces-existing/Makefile b/tests/t-conffile-replaces-existing/Makefile new file mode 100644 index 0000000..6c3d617 --- /dev/null +++ b/tests/t-conffile-replaces-existing/Makefile @@ -0,0 +1,48 @@ +TESTS_DEB := pkg-conff-original-0 pkg-conff-original-1 pkg-conff-takeover + +include ../Test.mk + +TEST_CASES += test-two-run-ordered +TEST_CASES += test-one-run-ordered +TEST_CASES += test-two-run-reverse +TEST_CASES += test-one-run-reverse + +test-case: $(TEST_CASES) + +define VERIFY +$(call pkg_is_installed,pkg-conff-original) +$(call pkg_is_installed,pkg-conff-takeover) +test "`$(DPKG_QUERY) -S /test-conffile`" = "pkg-conff-takeover: /test-conffile" +cmp ref-conffile "$(DPKG_INSTDIR)/test-conffile" +endef + +test-two-run-ordered: + # test-two-run-ordered + $(DPKG_INSTALL) pkg-conff-original-0.deb + $(DPKG_INSTALL) pkg-conff-original-1.deb + $(DPKG_INSTALL) pkg-conff-takeover.deb + $(VERIFY) + $(DPKG_PURGE) pkg-conff-original pkg-conff-takeover + +test-one-run-ordered: + # test-one-run-ordered + $(DPKG_INSTALL) pkg-conff-original-0.deb + $(DPKG_INSTALL) pkg-conff-original-1.deb pkg-conff-takeover.deb + $(VERIFY) + $(DPKG_PURGE) pkg-conff-original pkg-conff-takeover + +test-two-run-reverse: + # test-two-run-reverse + $(DPKG_INSTALL) pkg-conff-original-0.deb + $(DPKG_INSTALL) pkg-conff-takeover.deb + $(DPKG_INSTALL) pkg-conff-original-1.deb + $(VERIFY) + $(DPKG_PURGE) pkg-conff-original pkg-conff-takeover + +test-one-run-reverse: + # test-one-run-reverse + $(DPKG_INSTALL) pkg-conff-original-0.deb + $(DPKG_INSTALL) pkg-conff-takeover.deb pkg-conff-original-1.deb + $(VERIFY) + $(DPKG_PURGE) pkg-conff-original pkg-conff-takeover + diff --git a/tests/t-conffile-replaces-existing/pkg-conff-original-0/DEBIAN/conffiles b/tests/t-conffile-replaces-existing/pkg-conff-original-0/DEBIAN/conffiles new file mode 100644 index 0000000..4fad7e9 --- /dev/null +++ b/tests/t-conffile-replaces-existing/pkg-conff-original-0/DEBIAN/conffiles @@ -0,0 +1 @@ +/test-conffile diff --git a/tests/t-conffile-replaces-existing/pkg-conff-original-0/DEBIAN/control b/tests/t-conffile-replaces-existing/pkg-conff-original-0/DEBIAN/control new file mode 100644 index 0000000..523e417 --- /dev/null +++ b/tests/t-conffile-replaces-existing/pkg-conff-original-0/DEBIAN/control @@ -0,0 +1,8 @@ +Package: pkg-conff-original +Version: 0 +Section: test +Priority: extra +Maintainer: Dpkg Developers <debian-dpkg@lists.debian.org> +Architecture: all +Description: test package - provide a conffile + diff --git a/tests/t-conffile-replaces-existing/pkg-conff-original-0/test-conffile b/tests/t-conffile-replaces-existing/pkg-conff-original-0/test-conffile new file mode 100644 index 0000000..995e78d --- /dev/null +++ b/tests/t-conffile-replaces-existing/pkg-conff-original-0/test-conffile @@ -0,0 +1 @@ +test original 0 diff --git a/tests/t-conffile-replaces-existing/pkg-conff-original-0/test-original b/tests/t-conffile-replaces-existing/pkg-conff-original-0/test-original new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/tests/t-conffile-replaces-existing/pkg-conff-original-0/test-original diff --git a/tests/t-conffile-replaces-existing/pkg-conff-original-1/DEBIAN/conffiles b/tests/t-conffile-replaces-existing/pkg-conff-original-1/DEBIAN/conffiles new file mode 100644 index 0000000..4fad7e9 --- /dev/null +++ b/tests/t-conffile-replaces-existing/pkg-conff-original-1/DEBIAN/conffiles @@ -0,0 +1 @@ +/test-conffile diff --git a/tests/t-conffile-replaces-existing/pkg-conff-original-1/DEBIAN/control b/tests/t-conffile-replaces-existing/pkg-conff-original-1/DEBIAN/control new file mode 100644 index 0000000..aebf74d --- /dev/null +++ b/tests/t-conffile-replaces-existing/pkg-conff-original-1/DEBIAN/control @@ -0,0 +1,8 @@ +Package: pkg-conff-original +Version: 1 +Section: test +Priority: extra +Maintainer: Dpkg Developers <debian-dpkg@lists.debian.org> +Architecture: all +Description: test package - provide a conffile + diff --git a/tests/t-conffile-replaces-existing/pkg-conff-original-1/test-conffile b/tests/t-conffile-replaces-existing/pkg-conff-original-1/test-conffile new file mode 100644 index 0000000..326ec44 --- /dev/null +++ b/tests/t-conffile-replaces-existing/pkg-conff-original-1/test-conffile @@ -0,0 +1 @@ +test original 1 diff --git a/tests/t-conffile-replaces-existing/pkg-conff-original-1/test-original b/tests/t-conffile-replaces-existing/pkg-conff-original-1/test-original new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/tests/t-conffile-replaces-existing/pkg-conff-original-1/test-original diff --git a/tests/t-conffile-replaces-existing/pkg-conff-takeover/DEBIAN/conffiles b/tests/t-conffile-replaces-existing/pkg-conff-takeover/DEBIAN/conffiles new file mode 100644 index 0000000..4fad7e9 --- /dev/null +++ b/tests/t-conffile-replaces-existing/pkg-conff-takeover/DEBIAN/conffiles @@ -0,0 +1 @@ +/test-conffile diff --git a/tests/t-conffile-replaces-existing/pkg-conff-takeover/DEBIAN/control b/tests/t-conffile-replaces-existing/pkg-conff-takeover/DEBIAN/control new file mode 100644 index 0000000..1f1e038 --- /dev/null +++ b/tests/t-conffile-replaces-existing/pkg-conff-takeover/DEBIAN/control @@ -0,0 +1,9 @@ +Package: pkg-conff-takeover +Version: 0 +Section: test +Priority: extra +Maintainer: Dpkg Developers <debian-dpkg@lists.debian.org> +Architecture: all +Replaces: pkg-conff-original +Description: test package - conffile replaces takeover + diff --git a/tests/t-conffile-replaces-existing/pkg-conff-takeover/test-conffile b/tests/t-conffile-replaces-existing/pkg-conff-takeover/test-conffile new file mode 100644 index 0000000..82fe7fe --- /dev/null +++ b/tests/t-conffile-replaces-existing/pkg-conff-takeover/test-conffile @@ -0,0 +1 @@ +test takeover diff --git a/tests/t-conffile-replaces-existing/pkg-conff-takeover/test-takeover b/tests/t-conffile-replaces-existing/pkg-conff-takeover/test-takeover new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/tests/t-conffile-replaces-existing/pkg-conff-takeover/test-takeover diff --git a/tests/t-conffile-replaces-existing/ref-conffile b/tests/t-conffile-replaces-existing/ref-conffile new file mode 100644 index 0000000..82fe7fe --- /dev/null +++ b/tests/t-conffile-replaces-existing/ref-conffile @@ -0,0 +1 @@ +test takeover diff --git a/tests/t-conffile-replaces-upgrade/Makefile b/tests/t-conffile-replaces-upgrade/Makefile new file mode 100644 index 0000000..88298b3 --- /dev/null +++ b/tests/t-conffile-replaces-upgrade/Makefile @@ -0,0 +1,58 @@ +TESTS_DEB := pkg-conff-original pkg-conff-takeover-0 pkg-conff-takeover-1 + +include ../Test.mk + +TEST_CASES += test-two-run-ordered +TEST_CASES += test-one-run-ordered +TEST_CASES += test-two-run-reverse +TEST_CASES += test-one-run-reverse + +test-case: $(TEST_CASES) + +define CONFFILES +$(DPKG_QUERY) -f '$${Package} @ $${Conffiles}\n' +endef + +define VERIFY +$(call pkg_is_installed,pkg-conff-original) +$(call pkg_is_installed,pkg-conff-takeover) +test "`$(DPKG_QUERY) -S /test-conffile`" = "pkg-conff-takeover: /test-conffile" +test "`$(DPKG_QUERY) -S /test-confpath`" = "pkg-conff-takeover: /test-confpath" +test "`$(CONFFILES) -W pkg-conff-original | grep obsolete | wc -l`" = "2" +test "`$(CONFFILES) -W pkg-conff-takeover | grep -v obsolete | wc -l`" = "2" +cmp ref-conffile "$(DPKG_INSTDIR)/test-conffile" +cmp ref-conffile "$(DPKG_INSTDIR)/test-confpath" +endef + +test-two-run-ordered: + # test-two-run-ordered + $(DPKG_INSTALL) pkg-conff-original.deb + $(DPKG_INSTALL) pkg-conff-takeover-0.deb + $(DPKG_INSTALL) pkg-conff-takeover-1.deb + $(VERIFY) + $(DPKG_PURGE) pkg-conff-original pkg-conff-takeover + +test-one-run-ordered: + # test-one-run-ordered + $(DPKG_INSTALL) pkg-conff-original.deb pkg-conff-takeover-0.deb + $(DPKG_INSTALL) pkg-conff-takeover-1.deb + $(VERIFY) + $(DPKG_PURGE) pkg-conff-original pkg-conff-takeover + +test-two-run-reverse: + # test-two-run-reverse + $(DPKG_INSTALL) pkg-conff-takeover-0.deb + $(DPKG_INSTALL) pkg-conff-original.deb + $(DPKG_INSTALL) pkg-conff-takeover-1.deb + $(VERIFY) + $(DPKG_PURGE) pkg-conff-original pkg-conff-takeover + +test-one-run-reverse: + # test-one-run-reverse + $(DPKG_INSTALL) pkg-conff-takeover-0.deb pkg-conff-original.deb + $(DPKG_INSTALL) pkg-conff-takeover-1.deb + $(VERIFY) + $(DPKG_PURGE) pkg-conff-original pkg-conff-takeover + +test-clean: + $(DPKG_PURGE) pkg-conff-original pkg-conff-takeover diff --git a/tests/t-conffile-replaces-upgrade/pkg-conff-original/DEBIAN/conffiles b/tests/t-conffile-replaces-upgrade/pkg-conff-original/DEBIAN/conffiles new file mode 100644 index 0000000..da14206 --- /dev/null +++ b/tests/t-conffile-replaces-upgrade/pkg-conff-original/DEBIAN/conffiles @@ -0,0 +1,2 @@ +/test-conffile +/test-confpath diff --git a/tests/t-conffile-replaces-upgrade/pkg-conff-original/DEBIAN/control b/tests/t-conffile-replaces-upgrade/pkg-conff-original/DEBIAN/control new file mode 100644 index 0000000..523e417 --- /dev/null +++ b/tests/t-conffile-replaces-upgrade/pkg-conff-original/DEBIAN/control @@ -0,0 +1,8 @@ +Package: pkg-conff-original +Version: 0 +Section: test +Priority: extra +Maintainer: Dpkg Developers <debian-dpkg@lists.debian.org> +Architecture: all +Description: test package - provide a conffile + diff --git a/tests/t-conffile-replaces-upgrade/pkg-conff-original/test-conffile b/tests/t-conffile-replaces-upgrade/pkg-conff-original/test-conffile new file mode 100644 index 0000000..995e78d --- /dev/null +++ b/tests/t-conffile-replaces-upgrade/pkg-conff-original/test-conffile @@ -0,0 +1 @@ +test original 0 diff --git a/tests/t-conffile-replaces-upgrade/pkg-conff-original/test-confpath b/tests/t-conffile-replaces-upgrade/pkg-conff-original/test-confpath new file mode 100644 index 0000000..995e78d --- /dev/null +++ b/tests/t-conffile-replaces-upgrade/pkg-conff-original/test-confpath @@ -0,0 +1 @@ +test original 0 diff --git a/tests/t-conffile-replaces-upgrade/pkg-conff-original/test-original b/tests/t-conffile-replaces-upgrade/pkg-conff-original/test-original new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/tests/t-conffile-replaces-upgrade/pkg-conff-original/test-original diff --git a/tests/t-conffile-replaces-upgrade/pkg-conff-takeover-0/DEBIAN/conffiles b/tests/t-conffile-replaces-upgrade/pkg-conff-takeover-0/DEBIAN/conffiles new file mode 100644 index 0000000..da14206 --- /dev/null +++ b/tests/t-conffile-replaces-upgrade/pkg-conff-takeover-0/DEBIAN/conffiles @@ -0,0 +1,2 @@ +/test-conffile +/test-confpath diff --git a/tests/t-conffile-replaces-upgrade/pkg-conff-takeover-0/DEBIAN/control b/tests/t-conffile-replaces-upgrade/pkg-conff-takeover-0/DEBIAN/control new file mode 100644 index 0000000..1f1e038 --- /dev/null +++ b/tests/t-conffile-replaces-upgrade/pkg-conff-takeover-0/DEBIAN/control @@ -0,0 +1,9 @@ +Package: pkg-conff-takeover +Version: 0 +Section: test +Priority: extra +Maintainer: Dpkg Developers <debian-dpkg@lists.debian.org> +Architecture: all +Replaces: pkg-conff-original +Description: test package - conffile replaces takeover + diff --git a/tests/t-conffile-replaces-upgrade/pkg-conff-takeover-0/test-conffile b/tests/t-conffile-replaces-upgrade/pkg-conff-takeover-0/test-conffile new file mode 100644 index 0000000..01c117f --- /dev/null +++ b/tests/t-conffile-replaces-upgrade/pkg-conff-takeover-0/test-conffile @@ -0,0 +1 @@ +test takeover 0 diff --git a/tests/t-conffile-replaces-upgrade/pkg-conff-takeover-0/test-confpath b/tests/t-conffile-replaces-upgrade/pkg-conff-takeover-0/test-confpath new file mode 100644 index 0000000..01c117f --- /dev/null +++ b/tests/t-conffile-replaces-upgrade/pkg-conff-takeover-0/test-confpath @@ -0,0 +1 @@ +test takeover 0 diff --git a/tests/t-conffile-replaces-upgrade/pkg-conff-takeover-0/test-takeover b/tests/t-conffile-replaces-upgrade/pkg-conff-takeover-0/test-takeover new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/tests/t-conffile-replaces-upgrade/pkg-conff-takeover-0/test-takeover diff --git a/tests/t-conffile-replaces-upgrade/pkg-conff-takeover-1/DEBIAN/conffiles b/tests/t-conffile-replaces-upgrade/pkg-conff-takeover-1/DEBIAN/conffiles new file mode 100644 index 0000000..da14206 --- /dev/null +++ b/tests/t-conffile-replaces-upgrade/pkg-conff-takeover-1/DEBIAN/conffiles @@ -0,0 +1,2 @@ +/test-conffile +/test-confpath diff --git a/tests/t-conffile-replaces-upgrade/pkg-conff-takeover-1/DEBIAN/control b/tests/t-conffile-replaces-upgrade/pkg-conff-takeover-1/DEBIAN/control new file mode 100644 index 0000000..f323304 --- /dev/null +++ b/tests/t-conffile-replaces-upgrade/pkg-conff-takeover-1/DEBIAN/control @@ -0,0 +1,9 @@ +Package: pkg-conff-takeover +Version: 1 +Section: test +Priority: extra +Maintainer: Dpkg Developers <debian-dpkg@lists.debian.org> +Architecture: all +Replaces: pkg-conff-original +Description: test package - conffile replaces takeover + diff --git a/tests/t-conffile-replaces-upgrade/pkg-conff-takeover-1/test-conffile b/tests/t-conffile-replaces-upgrade/pkg-conff-takeover-1/test-conffile new file mode 100644 index 0000000..1bc4643 --- /dev/null +++ b/tests/t-conffile-replaces-upgrade/pkg-conff-takeover-1/test-conffile @@ -0,0 +1 @@ +test takeover 1 diff --git a/tests/t-conffile-replaces-upgrade/pkg-conff-takeover-1/test-confpath b/tests/t-conffile-replaces-upgrade/pkg-conff-takeover-1/test-confpath new file mode 100644 index 0000000..1bc4643 --- /dev/null +++ b/tests/t-conffile-replaces-upgrade/pkg-conff-takeover-1/test-confpath @@ -0,0 +1 @@ +test takeover 1 diff --git a/tests/t-conffile-replaces-upgrade/pkg-conff-takeover-1/test-takeover b/tests/t-conffile-replaces-upgrade/pkg-conff-takeover-1/test-takeover new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/tests/t-conffile-replaces-upgrade/pkg-conff-takeover-1/test-takeover diff --git a/tests/t-conffile-replaces-upgrade/ref-conffile b/tests/t-conffile-replaces-upgrade/ref-conffile new file mode 100644 index 0000000..1bc4643 --- /dev/null +++ b/tests/t-conffile-replaces-upgrade/ref-conffile @@ -0,0 +1 @@ +test takeover 1 diff --git a/tests/t-conffile-replaces/Makefile b/tests/t-conffile-replaces/Makefile new file mode 100644 index 0000000..27d934f --- /dev/null +++ b/tests/t-conffile-replaces/Makefile @@ -0,0 +1,44 @@ +TESTS_DEB := pkg-conff-original pkg-conff-takeover + +include ../Test.mk + +TEST_CASES += test-two-run-ordered +TEST_CASES += test-one-run-ordered +TEST_CASES += test-two-run-reverse +TEST_CASES += test-one-run-reverse + +test-case: $(TEST_CASES) + +define VERIFY +$(call pkg_is_installed,pkg-conff-original) +$(call pkg_is_installed,pkg-conff-takeover) +test "`$(DPKG_QUERY) -S /test-conffile`" = "pkg-conff-takeover: /test-conffile" +cmp ref-conffile "$(DPKG_INSTDIR)/test-conffile" +endef + +test-two-run-ordered: + # test-two-run-ordered + $(DPKG_INSTALL) pkg-conff-original.deb + $(DPKG_INSTALL) pkg-conff-takeover.deb + $(VERIFY) + $(DPKG_PURGE) pkg-conff-original pkg-conff-takeover + +test-one-run-ordered: + # test-one-run-ordered + $(DPKG_INSTALL) pkg-conff-original.deb pkg-conff-takeover.deb + $(VERIFY) + $(DPKG_PURGE) pkg-conff-original pkg-conff-takeover + +test-two-run-reverse: + # test-two-run-reverse + $(DPKG_INSTALL) pkg-conff-takeover.deb + $(DPKG_INSTALL) pkg-conff-original.deb + $(VERIFY) + $(DPKG_PURGE) pkg-conff-original pkg-conff-takeover + +test-one-run-reverse: + # test-one-run-reverse + $(DPKG_INSTALL) pkg-conff-takeover.deb pkg-conff-original.deb + $(VERIFY) + $(DPKG_PURGE) pkg-conff-original pkg-conff-takeover + diff --git a/tests/t-conffile-replaces/pkg-conff-original/DEBIAN/conffiles b/tests/t-conffile-replaces/pkg-conff-original/DEBIAN/conffiles new file mode 100644 index 0000000..4fad7e9 --- /dev/null +++ b/tests/t-conffile-replaces/pkg-conff-original/DEBIAN/conffiles @@ -0,0 +1 @@ +/test-conffile diff --git a/tests/t-conffile-replaces/pkg-conff-original/DEBIAN/control b/tests/t-conffile-replaces/pkg-conff-original/DEBIAN/control new file mode 100644 index 0000000..523e417 --- /dev/null +++ b/tests/t-conffile-replaces/pkg-conff-original/DEBIAN/control @@ -0,0 +1,8 @@ +Package: pkg-conff-original +Version: 0 +Section: test +Priority: extra +Maintainer: Dpkg Developers <debian-dpkg@lists.debian.org> +Architecture: all +Description: test package - provide a conffile + diff --git a/tests/t-conffile-replaces/pkg-conff-original/test-conffile b/tests/t-conffile-replaces/pkg-conff-original/test-conffile new file mode 100644 index 0000000..7e3c47b --- /dev/null +++ b/tests/t-conffile-replaces/pkg-conff-original/test-conffile @@ -0,0 +1 @@ +test original diff --git a/tests/t-conffile-replaces/pkg-conff-original/test-original b/tests/t-conffile-replaces/pkg-conff-original/test-original new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/tests/t-conffile-replaces/pkg-conff-original/test-original diff --git a/tests/t-conffile-replaces/pkg-conff-takeover/DEBIAN/conffiles b/tests/t-conffile-replaces/pkg-conff-takeover/DEBIAN/conffiles new file mode 100644 index 0000000..4fad7e9 --- /dev/null +++ b/tests/t-conffile-replaces/pkg-conff-takeover/DEBIAN/conffiles @@ -0,0 +1 @@ +/test-conffile diff --git a/tests/t-conffile-replaces/pkg-conff-takeover/DEBIAN/control b/tests/t-conffile-replaces/pkg-conff-takeover/DEBIAN/control new file mode 100644 index 0000000..1f1e038 --- /dev/null +++ b/tests/t-conffile-replaces/pkg-conff-takeover/DEBIAN/control @@ -0,0 +1,9 @@ +Package: pkg-conff-takeover +Version: 0 +Section: test +Priority: extra +Maintainer: Dpkg Developers <debian-dpkg@lists.debian.org> +Architecture: all +Replaces: pkg-conff-original +Description: test package - conffile replaces takeover + diff --git a/tests/t-conffile-replaces/pkg-conff-takeover/test-conffile b/tests/t-conffile-replaces/pkg-conff-takeover/test-conffile new file mode 100644 index 0000000..82fe7fe --- /dev/null +++ b/tests/t-conffile-replaces/pkg-conff-takeover/test-conffile @@ -0,0 +1 @@ +test takeover diff --git a/tests/t-conffile-replaces/pkg-conff-takeover/test-takeover b/tests/t-conffile-replaces/pkg-conff-takeover/test-takeover new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/tests/t-conffile-replaces/pkg-conff-takeover/test-takeover diff --git a/tests/t-conffile-replaces/ref-conffile b/tests/t-conffile-replaces/ref-conffile new file mode 100644 index 0000000..82fe7fe --- /dev/null +++ b/tests/t-conffile-replaces/ref-conffile @@ -0,0 +1 @@ +test takeover |