tests/navi-march: New; exercises navigate and march command
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>
This commit is contained in:
parent
7c3186f02a
commit
56ac486cc8
12 changed files with 2472 additions and 34 deletions
27
tests/navi-march-test
Executable file
27
tests/navi-march-test
Executable file
|
@ -0,0 +1,27 @@
|
|||
#!/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
|
Loading…
Add table
Add a link
Reference in a new issue