Exercise load, unload, lload, lunload, tend, and ltend. Notable coverage gaps: * Effect on land unit fortification * Effect on mission and retreat orders * Ships, land units and planes on sale (option MARKET 1) * Transmission of plague (option NO_PLAGUE 0) * Land units loading and unloading civilians (need a custom land unit type capable of carrying civilians) * load refusing to load x-light planes (need a custom ship type that can carry helo but not x-light) * load and lload refusing to load land units carrying land units, and lload refusing to load land units onto land units that are being carried (need a custom non-heavy land unit type that can carry land units) * tend refusing to tend non-light land units to non-supply ships, or to supply ships without room (need custom a non-light assault land unit type) This test exposes bugs. They're marked "BUG:" in the test input. There are also oddities marked "odd:", and usability issues marked "usability:". Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
28 lines
484 B
Bash
Executable file
28 lines
484 B
Bash
Executable file
#!/bin/sh -e
|
|
# Load/unload 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 24
|
|
WORLD_Y 12
|
|
NO_PLAGUE 0
|
|
MARKET 1
|
|
EOF
|
|
customize big-city
|
|
# TODO actually cover plague and market
|
|
# TODO observe land unit fortification
|
|
# TODO observe mission and retreat orders
|
|
|
|
begin_test "$srcdir"/tests/load-tend/setup-POGO
|
|
feed_dir "$srcdir"/tests/load-tend
|
|
end_test
|
|
|
|
cmp_logs_xdump
|