File: test-root

package info (click to toggle)
dpkg 1.23.3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 59,056 kB
  • sloc: ansic: 40,197; perl: 30,221; sh: 18,907; cpp: 6,054; makefile: 5,222; sed: 127
file content (22 lines) | stat: -rw-r--r-- 430 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
  # Fail, we declared needing root as a restriction.
  exit 1
fi

srcdir="$(pwd)"

cd "$AUTOPKGTEST_TMP"
# shellcheck disable=SC2016 # configure needs to expand exec_prefix.
"$srcdir/configure" \
  --disable-nls \
  --disable-dselect \
  --prefix=/usr \
  --libexecdir='${exec_prefix}/lib' \
  --sysconfdir=/etc \
  --localstatedir=/var \
  # EOL
make installcheck TEST_VERBOSE=1