diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 18:35:34 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 18:35:34 +0000 |
commit | 3fa257bb4ed88187fb3e5f4ab13c18b4fac22cc6 (patch) | |
tree | 9eaf6d3ef113c0f4dd9c8c91557bf84941fe7d93 /debian/tests/test-func | |
parent | Adding upstream version 1.22.4. (diff) | |
download | dpkg-3fa257bb4ed88187fb3e5f4ab13c18b4fac22cc6.tar.xz dpkg-3fa257bb4ed88187fb3e5f4ab13c18b4fac22cc6.zip |
Adding debian version 1.22.4.debian/1.22.4
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | debian/tests/test-func | 10 | ||||
-rw-r--r-- | debian/tests/test-func-root | 13 |
2 files changed, 23 insertions, 0 deletions
diff --git a/debian/tests/test-func b/debian/tests/test-func new file mode 100644 index 0000000..aab45d2 --- /dev/null +++ b/debian/tests/test-func @@ -0,0 +1,10 @@ +#!/bin/sh + +set -e + +export DPKG_TESTSUITE_OPTIONS="debug" +export DPKG_ADMINDIR="$AUTOPKGTEST_TMP/db" +export DPKG_INSTDIR="$AUTOPKGTEST_TMP/root" + +mkdir -p "$DPKG_INSTDIR" +eatmydata make -C tests installtest DPKG_INSTDIR="$DPKG_INSTDIR" DPKG_ADMINDIR="$DPKG_ADMINDIR" diff --git a/debian/tests/test-func-root b/debian/tests/test-func-root new file mode 100644 index 0000000..2c337e2 --- /dev/null +++ b/debian/tests/test-func-root @@ -0,0 +1,13 @@ +#!/bin/sh + +set -e + +if [ "$(id -u)" != '0' ]; then + # Fail, we declared needing root as a restriction. + exit 1 +fi + +export DPKG_TESTSUITE_OPTIONS="debug as-root" +export DPKG_ADMINDIR="$AUTOPKGTEST_TMP/db" + +eatmydata make -C tests installtest DPKG_ADMINDIR="$DPKG_ADMINDIR" |