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