File: test-func-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 (13 lines) | stat: -rw-r--r-- 273 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
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 installtest DPKG_ADMINDIR="$DPKG_ADMINDIR"