atlocal.in 624 B

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