1#
2# This script gets sourced by every test to setup a common environment.
3#
4
5# Force all output to be standard english
6export LANG=C
7
8# Define the name of the authority file, which we use during test.
9export XAUTHORITY=${DATADIR:-/tmp}/.Xauthority
10
11# Start a new authority file
12rm -f $XAUTHORITY ; touch $XAUTHORITY
13
14xauth()
15{
16  echo "> xauth" "$@"
17  ../xauth "$@"
18  echo "  exits with $?"
19}
20
21xauth_silent()
22{
23  echo "> xauth" "some silent commands which should not be logged..."
24  ../xauth "$@"
25  echo "  exits with $?"
26}
27