summaryrefslogtreecommitdiff
path: root/t-func/atlocal.in
blob: 9b8a441291c5e72fabb612e590cc9beb356d88cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Global shell definitions for the autotest test suite

PATH="@abs_top_builddir@/dpkg-deb:@abs_top_builddir@/dpkg-split:@abs_top_builddir@/src:@abs_top_builddir@/utils:$PATH"
export PATH

# Setup a sane environment
LC_ALL=C
export LC_ALL

TZ=UTC
export TZ

SOURCE_DATE_EPOCH=0
export SOURCE_DATE_EPOCH

# Cleanup variables that might affect the tests.
unset GZIP
unset BZIP
unset XZ_OPT
unset XZ_DEFAULTS

if [ "$(id -u)" = 0 ]; then
  ASROOT=
elif which fakeroot >/dev/null; then
  ASROOT=fakeroot
else
  echo "error: cannot run as root(ish)" >&2
  exit 1
fi
export ASROOT

TESTDATA="@abs_top_srcdir@/t-func"