diff options
Diffstat (limited to 'debian/tests/test-func-root')
-rw-r--r-- | debian/tests/test-func-root | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/debian/tests/test-func-root b/debian/tests/test-func-root new file mode 100644 index 0000000..e12297c --- /dev/null +++ b/debian/tests/test-func-root @@ -0,0 +1,14 @@ +#!/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" + +tests/db-regen "$DPKG_ADMINDIR" "/" +eatmydata make -C tests test DPKG_ADMINDIR="$DPKG_ADMINDIR" |