summaryrefslogtreecommitdiffstats
path: root/debian/tests/test-func-root
blob: 4b26aa9f941acbb09076a564d69fffca21a45b1c (plain)
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 test DPKG_ADMINDIR="$DPKG_ADMINDIR"