19a011757Smrg#
29a011757Smrg# This script gets sourced by every test to setup a common environment.
39a011757Smrg#
49a011757Smrg
59a011757Smrg# Force all output to be standard english
69a011757Smrgexport LANG=C
79a011757Smrg
89a011757Smrg# Define the name of the authority file, which we use during test.
99a011757Smrgexport XAUTHORITY=${DATADIR:-/tmp}/.Xauthority
109a011757Smrg
119a011757Smrg# Start a new authority file
129a011757Smrgrm -f $XAUTHORITY ; touch $XAUTHORITY
139a011757Smrg
14765b7306Smrgxauth()
159a011757Smrg{
169a011757Smrg  echo "> xauth" "$@"
179a011757Smrg  ../xauth "$@"
189a011757Smrg  echo "  exits with $?"
199a011757Smrg}
209a011757Smrg
21765b7306Smrgxauth_silent()
229a011757Smrg{
239a011757Smrg  echo "> xauth" "some silent commands which should not be logged..."
249a011757Smrg  ../xauth "$@"
259a011757Smrg  echo "  exits with $?"
269a011757Smrg}
27