xenocara/app/xauth/tests/setup-sourced

26 lines
523 B
Text

#
# 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 $?"
}