1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
# -*- shell-script -*-
# Defines for Heroes testing environment.
# Ensure $srcdir set correctly.
if test ! -f $srcdir/defs; then
echo "defs: installation error" 1>&2
exit 1
fi
# User can set VERBOSE to see all output.
test -z "$VERBOSE" && exec > /dev/null 2>&1
echo "== Running test $0"
test -z "$HEROES" && HEROES="../src/heroes"
test -z "$HEROESLVL" && HEROESLVL="../src/heroeslvl"
if test -z "$HEROES_SYSTEM_CONF"; then
HEROES_SYSTEM_CONF="$srcdir/../src/etc/heroesrc"
export HEROES_SYSTEM_CONF
fi
# Turn on shell traces when VERBOSE=x.
if test "x$VERBOSE" = xx; then
set -x
else
:
fi
|