tests/fairland: Improve coverage
Rename the existing fairland run to "plain". New run "stunted" to cover larger minimal distances, islands that can't fully grow, and islands that can't be placed. New run "no-spike" to cover 0% spike. New run "spike" to cover high spike percentage, mountains and -i. Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
This commit is contained in:
parent
c4441014e3
commit
f18159fb23
13 changed files with 3470 additions and 4 deletions
|
@ -12,7 +12,21 @@ srcdir="$1"
|
|||
create_sandbox
|
||||
|
||||
$files -f >/dev/null
|
||||
run_and_cmp fairland $fairland -s sandbox/newcap_script -R 1 10 30
|
||||
run_and_cmp plain $fairland -s sandbox/plain-newcap_script -R 1 10 30
|
||||
$empdump -x >sandbox/plain.xdump
|
||||
cmp_out plain.xdump plain-newcap_script
|
||||
|
||||
$empdump -x >sandbox/final.xdump
|
||||
cmp_out final.xdump newcap_script
|
||||
$files -f >/dev/null
|
||||
run_and_cmp stunted $fairland -s sandbox/stunted-newcap_script -R 1 8 37 24 15 0 0 5 2
|
||||
$empdump -x >sandbox/stunted.xdump
|
||||
cmp_out stunted.xdump stunted-newcap_script
|
||||
|
||||
$files -f >/dev/null
|
||||
run_and_cmp no-spike $fairland -s sandbox/no-spike-newcap_script -R 1 3 30 15 10 0
|
||||
$empdump -x >sandbox/no-spike.xdump
|
||||
cmp_out no-spike.xdump no-spike-newcap_script
|
||||
|
||||
$files -f >/dev/null
|
||||
run_and_cmp spike $fairland -s sandbox/spike-newcap_script -R 1 -i 8 30 8 20 50 10
|
||||
$empdump -x >sandbox/spike.xdump
|
||||
cmp_out spike.xdump spike-newcap_script
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue