summaryrefslogtreecommitdiff
path: root/tests/setup-sourced
blob: e28773becc02dbf085e291c1ce84c00fef178372 (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
#
# This script gets sourced by every test to setup a common environment.
#

# Force all output to be standard english
export LANG=C

# Define the name of the authority file, which we use during test.
export XAUTHORITY=${DATADIR:-/tmp}/.Xauthority

# Start a new authority file
rm -f $XAUTHORITY ; touch $XAUTHORITY

xauth()
{
  echo "> xauth" "$@"
  ../xauth "$@"
  echo "  exits with $?"
}

xauth_silent()
{
  echo "> xauth" "some silent commands which should not be logged..."
  ../xauth "$@"
  echo "  exits with $?"
}