diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 18:35:28 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 18:35:28 +0000 |
commit | ea314d2f45c40a006c0104157013ab4b857f665f (patch) | |
tree | 3ef2971cb3675c318b8d9effd987854ad3f6d3e8 /tests/t-conffile-forcenew | |
parent | Initial commit. (diff) | |
download | dpkg-ea314d2f45c40a006c0104157013ab4b857f665f.tar.xz dpkg-ea314d2f45c40a006c0104157013ab4b857f665f.zip |
Adding upstream version 1.22.4.upstream/1.22.4
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/t-conffile-forcenew')
9 files changed, 41 insertions, 0 deletions
diff --git a/tests/t-conffile-forcenew/Makefile b/tests/t-conffile-forcenew/Makefile new file mode 100644 index 0000000..c492c6c --- /dev/null +++ b/tests/t-conffile-forcenew/Makefile @@ -0,0 +1,17 @@ +TESTS_DEB := pkg-conff-forcenew-0 pkg-conff-forcenew-1 + +include ../Test.mk + +test-case: + $(DPKG_INSTALL) pkg-conff-forcenew-0.deb + # Modify the conffile. + $(BEROOT) cp mod-conffile "$(DPKG_INSTDIR)/test-conffile" + # Test that we do not get the new conffile. + $(DPKG_INSTALL) pkg-conff-forcenew-0.deb + cmp mod-conffile "$(DPKG_INSTDIR)/test-conffile" + # Test that we get the new conffile. + $(DPKG_INSTALL) --force-confnew pkg-conff-forcenew-1.deb + cmp ref-conffile "$(DPKG_INSTDIR)/test-conffile" + +test-clean: + $(DPKG_PURGE) pkg-conff-forcenew diff --git a/tests/t-conffile-forcenew/mod-conffile b/tests/t-conffile-forcenew/mod-conffile new file mode 100644 index 0000000..73f8903 --- /dev/null +++ b/tests/t-conffile-forcenew/mod-conffile @@ -0,0 +1 @@ +test modified diff --git a/tests/t-conffile-forcenew/pkg-conff-forcenew-0/DEBIAN/conffiles b/tests/t-conffile-forcenew/pkg-conff-forcenew-0/DEBIAN/conffiles new file mode 100644 index 0000000..4fad7e9 --- /dev/null +++ b/tests/t-conffile-forcenew/pkg-conff-forcenew-0/DEBIAN/conffiles @@ -0,0 +1 @@ +/test-conffile diff --git a/tests/t-conffile-forcenew/pkg-conff-forcenew-0/DEBIAN/control b/tests/t-conffile-forcenew/pkg-conff-forcenew-0/DEBIAN/control new file mode 100644 index 0000000..02d528e --- /dev/null +++ b/tests/t-conffile-forcenew/pkg-conff-forcenew-0/DEBIAN/control @@ -0,0 +1,9 @@ +Package: pkg-conff-forcenew +Version: 0 +Section: test +Priority: extra +Maintainer: Dpkg Developers <debian-dpkg@lists.debian.org> +Architecture: all +Description: test package - force-confnew behaviour + Debbug: 391818 + diff --git a/tests/t-conffile-forcenew/pkg-conff-forcenew-0/test-conffile b/tests/t-conffile-forcenew/pkg-conff-forcenew-0/test-conffile new file mode 100644 index 0000000..6fbc8b5 --- /dev/null +++ b/tests/t-conffile-forcenew/pkg-conff-forcenew-0/test-conffile @@ -0,0 +1 @@ +test init diff --git a/tests/t-conffile-forcenew/pkg-conff-forcenew-1/DEBIAN/conffiles b/tests/t-conffile-forcenew/pkg-conff-forcenew-1/DEBIAN/conffiles new file mode 100644 index 0000000..4fad7e9 --- /dev/null +++ b/tests/t-conffile-forcenew/pkg-conff-forcenew-1/DEBIAN/conffiles @@ -0,0 +1 @@ +/test-conffile diff --git a/tests/t-conffile-forcenew/pkg-conff-forcenew-1/DEBIAN/control b/tests/t-conffile-forcenew/pkg-conff-forcenew-1/DEBIAN/control new file mode 100644 index 0000000..fcc03d9 --- /dev/null +++ b/tests/t-conffile-forcenew/pkg-conff-forcenew-1/DEBIAN/control @@ -0,0 +1,9 @@ +Package: pkg-conff-forcenew +Version: 1 +Section: test +Priority: extra +Maintainer: Dpkg Developers <debian-dpkg@lists.debian.org> +Architecture: all +Description: test package - force-confnew behaviour + Debbug: 391818 + diff --git a/tests/t-conffile-forcenew/pkg-conff-forcenew-1/test-conffile b/tests/t-conffile-forcenew/pkg-conff-forcenew-1/test-conffile new file mode 100644 index 0000000..35f4da8 --- /dev/null +++ b/tests/t-conffile-forcenew/pkg-conff-forcenew-1/test-conffile @@ -0,0 +1 @@ +test end diff --git a/tests/t-conffile-forcenew/ref-conffile b/tests/t-conffile-forcenew/ref-conffile new file mode 100644 index 0000000..35f4da8 --- /dev/null +++ b/tests/t-conffile-forcenew/ref-conffile @@ -0,0 +1 @@ +test end |