File: test-not-root

package info (click to toggle)
dpkg 1.21.22
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 55,700 kB
  • sloc: ansic: 36,629; perl: 27,006; sh: 18,033; makefile: 4,928; cpp: 4,829; sed: 104
file content (22 lines) | stat: -rw-r--r-- 385 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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