Does not cover scattered navigate and march, RAILWAYS 0, enemy action while sitting at the prompt, and interdiction. The test exposes bugs. They're marked "BUG:" in the test input. Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
27 lines
445 B
Bash
Executable file
27 lines
445 B
Bash
Executable file
#!/bin/sh -e
|
|
# navigate and march 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 >>$econfig <<EOF
|
|
WORLD_X 32
|
|
WORLD_Y 16
|
|
MARKET 1
|
|
EOF
|
|
customize big-city
|
|
# TODO cover scattered navigate
|
|
# TODO cover scattered march
|
|
# TODO cover RAILWAYS 0
|
|
|
|
begin_test "$srcdir"/tests/navi-march/setup-POGO
|
|
feed_dir "$srcdir"/tests/navi-march
|
|
end_test
|
|
|
|
cmp_logs_xdump
|