From e52abbeea0a0fd87f2df577263fdfcb89da6c1b0 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 16:58:51 +0200 Subject: Adding debian version 1.21.22. Signed-off-by: Daniel Baumann --- debian/tests/test-func-root | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 debian/tests/test-func-root (limited to 'debian/tests/test-func-root') 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" -- cgit v1.2.3