From cbffab246997fb5a06211dfb706b54e5ae5bb59f Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 16:58:51 +0200 Subject: Adding upstream version 1.21.22. Signed-off-by: Daniel Baumann --- tests/t-conffile-prompt/Makefile | 20 ++++++++++++++++++++ .../pkg-conff-prompt-0/DEBIAN/conffiles | 2 ++ .../pkg-conff-prompt-0/DEBIAN/control | 8 ++++++++ .../pkg-conff-prompt-0/DEBIAN/postinst | 3 +++ .../pkg-conff-prompt-0/test-conffile | 1 + .../pkg-conff-prompt-1/DEBIAN/conffiles | 2 ++ .../pkg-conff-prompt-1/DEBIAN/control | 8 ++++++++ .../pkg-conff-prompt-1/test-conffile | 1 + 8 files changed, 45 insertions(+) create mode 100644 tests/t-conffile-prompt/Makefile create mode 100644 tests/t-conffile-prompt/pkg-conff-prompt-0/DEBIAN/conffiles create mode 100644 tests/t-conffile-prompt/pkg-conff-prompt-0/DEBIAN/control create mode 100755 tests/t-conffile-prompt/pkg-conff-prompt-0/DEBIAN/postinst create mode 100644 tests/t-conffile-prompt/pkg-conff-prompt-0/test-conffile create mode 100644 tests/t-conffile-prompt/pkg-conff-prompt-1/DEBIAN/conffiles create mode 100644 tests/t-conffile-prompt/pkg-conff-prompt-1/DEBIAN/control create mode 100644 tests/t-conffile-prompt/pkg-conff-prompt-1/test-conffile (limited to 'tests/t-conffile-prompt') diff --git a/tests/t-conffile-prompt/Makefile b/tests/t-conffile-prompt/Makefile new file mode 100644 index 0000000..1f413bb --- /dev/null +++ b/tests/t-conffile-prompt/Makefile @@ -0,0 +1,20 @@ +TESTS_DEB := pkg-conff-prompt-0 pkg-conff-prompt-1 + +include ../Test.mk + +build-hook: + touch "pkg-conff-prompt-0/test-conffile with spaces" + touch "pkg-conff-prompt-1/test-conffile with spaces" + +clean-hook: + $(RM) "pkg-conff-prompt-0/test-conffile with spaces" + $(RM) "pkg-conff-prompt-1/test-conffile with spaces" + +test-case: + $(DPKG_INSTALL) pkg-conff-prompt-0.deb + # test if package prompts on install + $(DPKG_INSTALL) pkg-conff-prompt-1.deb + +test-clean: + $(DPKG_PURGE) pkg-conff-prompt + diff --git a/tests/t-conffile-prompt/pkg-conff-prompt-0/DEBIAN/conffiles b/tests/t-conffile-prompt/pkg-conff-prompt-0/DEBIAN/conffiles new file mode 100644 index 0000000..ef41b42 --- /dev/null +++ b/tests/t-conffile-prompt/pkg-conff-prompt-0/DEBIAN/conffiles @@ -0,0 +1,2 @@ +/test-conffile +/test-conffile with spaces diff --git a/tests/t-conffile-prompt/pkg-conff-prompt-0/DEBIAN/control b/tests/t-conffile-prompt/pkg-conff-prompt-0/DEBIAN/control new file mode 100644 index 0000000..3aeb1b2 --- /dev/null +++ b/tests/t-conffile-prompt/pkg-conff-prompt-0/DEBIAN/control @@ -0,0 +1,8 @@ +Package: pkg-conff-prompt +Version: 0 +Section: test +Priority: extra +Maintainer: Dpkg Developers +Architecture: all +Description: test package - conffile prompt + diff --git a/tests/t-conffile-prompt/pkg-conff-prompt-0/DEBIAN/postinst b/tests/t-conffile-prompt/pkg-conff-prompt-0/DEBIAN/postinst new file mode 100755 index 0000000..27be638 --- /dev/null +++ b/tests/t-conffile-prompt/pkg-conff-prompt-0/DEBIAN/postinst @@ -0,0 +1,3 @@ +#!/bin/sh +echo "test modified" >"$DPKG_ROOT/test-conffile" +echo "test modified spaces" >"$DPKG_ROOT/test-conffile with spaces" diff --git a/tests/t-conffile-prompt/pkg-conff-prompt-0/test-conffile b/tests/t-conffile-prompt/pkg-conff-prompt-0/test-conffile new file mode 100644 index 0000000..6fbc8b5 --- /dev/null +++ b/tests/t-conffile-prompt/pkg-conff-prompt-0/test-conffile @@ -0,0 +1 @@ +test init diff --git a/tests/t-conffile-prompt/pkg-conff-prompt-1/DEBIAN/conffiles b/tests/t-conffile-prompt/pkg-conff-prompt-1/DEBIAN/conffiles new file mode 100644 index 0000000..ef41b42 --- /dev/null +++ b/tests/t-conffile-prompt/pkg-conff-prompt-1/DEBIAN/conffiles @@ -0,0 +1,2 @@ +/test-conffile +/test-conffile with spaces diff --git a/tests/t-conffile-prompt/pkg-conff-prompt-1/DEBIAN/control b/tests/t-conffile-prompt/pkg-conff-prompt-1/DEBIAN/control new file mode 100644 index 0000000..8bd3f1e --- /dev/null +++ b/tests/t-conffile-prompt/pkg-conff-prompt-1/DEBIAN/control @@ -0,0 +1,8 @@ +Package: pkg-conff-prompt +Version: 1 +Section: test +Priority: extra +Maintainer: Dpkg Developers +Architecture: all +Description: test package - conffile prompt + diff --git a/tests/t-conffile-prompt/pkg-conff-prompt-1/test-conffile b/tests/t-conffile-prompt/pkg-conff-prompt-1/test-conffile new file mode 100644 index 0000000..35f4da8 --- /dev/null +++ b/tests/t-conffile-prompt/pkg-conff-prompt-1/test-conffile @@ -0,0 +1 @@ +test end -- cgit v1.2.3