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