summaryrefslogtreecommitdiffstats
path: root/src/at/atlocal.in
diff options
context:
space:
mode:
Diffstat (limited to 'src/at/atlocal.in')
-rw-r--r--src/at/atlocal.in40
1 files changed, 40 insertions, 0 deletions
diff --git a/src/at/atlocal.in b/src/at/atlocal.in
new file mode 100644
index 0000000..8b413ef
--- /dev/null
+++ b/src/at/atlocal.in
@@ -0,0 +1,40 @@
+# Global shell definitions for the autotest test suite
+
+PATH="@abs_top_builddir@/src:$PATH"
+export PATH
+
+GREP="@GREP@"
+EGREP="@EGREP@"
+TAR="@TAR@"
+PERL="@PERL@"
+
+if ! command -v lzma >/dev/null && command -v xz >/dev/null; then
+ lzma() {
+ xz --format=lzma "$@"
+ }
+fi
+
+# Setup a sane environment
+
+umask 0022
+
+LC_ALL=C
+export LC_ALL
+
+TZ=UTC0
+export TZ
+
+SOURCE_DATE_EPOCH=0
+export SOURCE_DATE_EPOCH
+
+prefix="@prefix@"
+eval "export DEFAULT_ADMINDIR='@admindir@'"
+export DPKG_DATADIR="@abs_top_srcdir@/src"
+
+# Cleanup variables that might affect the tests.
+unset GZIP
+unset BZIP
+unset XZ_OPT
+unset XZ_DEFAULTS
+
+unset DPKG_ROOT