summaryrefslogtreecommitdiff
path: root/tests/setup-sourced
blob: 2ed1a6b765c2b8dccde7c75274e24e43a9a4b5f9 (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

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

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