empserver/tests/actofgod-test
Markus Armbruster cf942fbf1b tests: Use feed_files for setup scripts
To make setup scripting more similar to test scripting.  Also permits
use of countries other than POGO there, but that isn't necessary right
now.

Setup scripts renamed from init_script to setup-POGO.

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

25 lines
433 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
GODNEWS 1
EOF
begin_test "$srcdir"/tests/actofgod/setup-POGO
perl "$srcdir"/tests/actofgod/geninput.pl | feed_input POGO peter
end_test
cmp_out var/empire/server.log var/empire/journal.log final.xdump