File: defs

package info (click to toggle)
heroes 0.21-8.1
  • links: PTS
  • area: main
  • in suites: lenny, squeeze
  • size: 4,988 kB
  • ctags: 3,158
  • sloc: ansic: 27,964; sh: 4,198; makefile: 734; yacc: 318; sed: 51; lisp: 10; perl: 9
file content (28 lines) | stat: -rw-r--r-- 609 bytes parent folder | download | duplicates (11)
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