empserver/tests/actofgod-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

24 lines
427 B
Bash
Executable file

#!/bin/sh -e
# Acts of god 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 24
WORLD_Y 16
EOF
begin_test "$srcdir"/tests/actofgod/init_script
perl "$srcdir"/tests/actofgod/geninput.pl | feed_input POGO peter
end_test
cmp_out var/empire/server.log var/empire/journal.log actofgod.xdump