atlocal.in 610 B

123456789101112131415161718192021222324252627282930313233
  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. LC_ALL=C
  6. export LC_ALL
  7. TZ=UTC
  8. export TZ
  9. SOURCE_DATE_EPOCH=0
  10. export SOURCE_DATE_EPOCH
  11. # Cleanup variables that might affect the tests.
  12. unset GZIP
  13. unset BZIP
  14. unset XZ_OPT
  15. unset XZ_DEFAULTS
  16. if [ "$(id -u)" = 0 ]; then
  17. ASROOT=
  18. elif which fakeroot >/dev/null; then
  19. ASROOT=fakeroot
  20. else
  21. echo "error: cannot run as root(ish)" >&2
  22. exit 1
  23. fi
  24. export ASROOT
  25. TESTDATA="@abs_top_srcdir@/t-func"