summaryrefslogtreecommitdiffstats
path: root/src/at/atlocal.in
blob: 8b413ef967aa8acfac0af5f77a5d9a4418b81668 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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