summaryrefslogtreecommitdiffstats
path: root/debian/tests/test-root
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 18:35:34 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 18:35:34 +0000
commit3fa257bb4ed88187fb3e5f4ab13c18b4fac22cc6 (patch)
tree9eaf6d3ef113c0f4dd9c8c91557bf84941fe7d93 /debian/tests/test-root
parentAdding upstream version 1.22.4. (diff)
downloaddpkg-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-root21
1 files changed, 21 insertions, 0 deletions
diff --git a/debian/tests/test-root b/debian/tests/test-root
new file mode 100644
index 0000000..f09da15
--- /dev/null
+++ b/debian/tests/test-root
@@ -0,0 +1,21 @@
+#!/bin/sh
+
+set -e
+
+if [ "$(id -u)" != '0' ]; then
+ # Fail, we declared needing root as a restriction.
+ exit 1
+fi
+
+srcdir="$(pwd)"
+
+cd $AUTOPKGTEST_TMP
+"$srcdir/configure" \
+ --disable-nls \
+ --disable-dselect \
+ --prefix=/usr \
+ --libexecdir='${exec_prefix}/lib' \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ # EOL
+make installcheck TESTSUITEFLAGS=--verbose