diff options
Diffstat (limited to '')
-rw-r--r-- | debian/tests/test-not-root | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/debian/tests/test-not-root b/debian/tests/test-not-root new file mode 100644 index 0000000..cf6db12 --- /dev/null +++ b/debian/tests/test-not-root @@ -0,0 +1,22 @@ +#!/bin/sh + +set -e + +if [ "$(id -u)" = '0' ]; then + # Skip, we cannot declare we do not want root. + exit 77 +fi + +srcdir="$(pwd)" + +cd $AUTOPKGTEST_TMP +"$srcdir/configure" \ + --disable-nls \ + --disable-dselect \ + --prefix=/usr \ + --sbindir=/sbin \ + --libexecdir='${exec_prefix}/lib' \ + --sysconfdir=/etc \ + --localstatedir=/var \ + # EOL +make installcheck TESTSUITEFLAGS=--verbose |