123456789101112131415161718192021222324252627282930313233343536 |
- # 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"
|