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