dpkg (1.18.25) stretch; urgency=medium
[dpkg] / t-func / atlocal.in
CommitLineData
1479465f
GJ
1# Global shell definitions for the autotest test suite
2
3PATH="@abs_top_builddir@/dpkg-deb:@abs_top_builddir@/dpkg-split:@abs_top_builddir@/src:@abs_top_builddir@/utils:$PATH"
4export PATH
5
6# Setup a sane environment
7
8umask 0022
9
10LC_ALL=C
11export LC_ALL
12
13TZ=UTC
14export TZ
15
16SOURCE_DATE_EPOCH=0
17export SOURCE_DATE_EPOCH
18
19# Cleanup variables that might affect the tests.
20unset GZIP
21unset BZIP
22unset XZ_OPT
23unset XZ_DEFAULTS
24
25if [ "$(id -u)" = 0 ]; then
26 ASROOT=
27elif which fakeroot >/dev/null; then
28 ASROOT=fakeroot
29else
30 echo "skip: needs to run as root(ish)" >&2
31 exit 0
32fi
33export ASROOT
34
35TESTDATA="@abs_top_srcdir@/t-func"