diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 14:58:51 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 14:58:51 +0000 |
commit | e52abbeea0a0fd87f2df577263fdfcb89da6c1b0 (patch) | |
tree | 27a6f3ded04c521f55558166ee9322076339ca2b /debian/tests/test-func-root | |
parent | Adding upstream version 1.21.22. (diff) | |
download | dpkg-debian.tar.xz dpkg-debian.zip |
Adding debian version 1.21.22.debian/1.21.22debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/tests/test-func-root')
-rw-r--r-- | debian/tests/test-func-root | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/debian/tests/test-func-root b/debian/tests/test-func-root new file mode 100644 index 0000000..4b26aa9 --- /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 test DPKG_ADMINDIR="$DPKG_ADMINDIR" |