summaryrefslogtreecommitdiff
path: root/t-func/atlocal.in
blob: 50263fc219254d94f6453b0ed8eab42deae04f80 (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
33
34
35
# 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

umask 0022

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 "skip: needs to run as root(ish)" >&2
  exit 0
fi
export ASROOT

TESTDATA="@abs_top_srcdir@/t-func"