empserver/tests/fire-test
Markus Armbruster 4f2b8eea10 tests: Move "not expected to work" warning into test-common.sh
Warn the first time a server is started.  Incorrect for info-test with
POSIX threads, so suppress the warning there.

Improve the warning message a bit while we're at it.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
2014-01-19 10:08:20 +01:00

31 lines
543 B
Bash
Executable file

#!/bin/sh -e
# Gun fire test for Empire
if [ $# -ne 1 ]
then echo "Usage: $0 SRCDIR" >&2; exit 1
fi
srcdir="$1"
. "$srcdir"/tests/test-common.sh
create_sandbox
cat >>sandbox/etc/empire/econfig <<EOF
WORLD_X 32
WORLD_Y 16
EASY_BRIDGES 1
GODNEWS 0
EOF
begin_test "$srcdir"/tests/fire/init_script
for i in `git ls-files "$srcdir"/tests/fire | grep '/[0-9][0-9]-.*$'`
do
c="${i##*/??-}"
r=`echo $c | sed 's/^POGO$/peter/'`
feed_input "$c" "$r" "$i"
done
end_test
cmp_out var/empire/server.log var/empire/journal.log fire.xdump