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
|
create_sandbox
|
||||||
|
|
||||||
$files -f >/dev/null
|
$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
|
$files -f >/dev/null
|
||||||
cmp_out final.xdump newcap_script
|
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
|
||||||
|
|
7
tests/fairland/no-spike-newcap_script
Normal file
7
tests/fairland/no-spike-newcap_script
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
add 1 1 1 p
|
||||||
|
newcap 1 7,1
|
||||||
|
add 2 2 2 p
|
||||||
|
newcap 2 40,4
|
||||||
|
add 3 3 3 p
|
||||||
|
newcap 3 48,20
|
||||||
|
add 4 visitor visitor v
|
58
tests/fairland/no-spike.out
Normal file
58
tests/fairland/no-spike.out
Normal file
|
@ -0,0 +1,58 @@
|
||||||
|
Creating a planet with:
|
||||||
|
|
||||||
|
3 continents
|
||||||
|
continent size: 30
|
||||||
|
number of islands: 15
|
||||||
|
average size of islands: 10
|
||||||
|
spike: 0%
|
||||||
|
0% of land is mountain (each continent will have 0 mountains)
|
||||||
|
minimum distance between continents: 2
|
||||||
|
minimum distance from islands to continents: 1
|
||||||
|
World dimensions: 64x32
|
||||||
|
|
||||||
|
#*# ...fairland rips open a rift in the datumplane... #*#
|
||||||
|
|
||||||
|
seed is 1
|
||||||
|
placing capitals...
|
||||||
|
growing continents...
|
||||||
|
growing islands: 1(3) 2(8) 3(13) 4(7) 5(10) 6(10) 7(2) 8(8) 9(14) 10(17) 11(13) 12(15) 13(9) 14(8) 15(3)
|
||||||
|
elevating land...
|
||||||
|
designating sectors...
|
||||||
|
adding resources...
|
||||||
|
setting coastal flags...
|
||||||
|
writing to sectors file...
|
||||||
|
|
||||||
|
. . . % . . . % . . . . . . . . % % . % . . . . . . . . . . . .
|
||||||
|
. . . . . . . . . . . . . . . . . . % % . . . . . . . . . . . .
|
||||||
|
. . . . . . . # # . . . . . . . . . % % % . . . . % . . . . . .
|
||||||
|
. . . . . . # # . # . . . . . . . % % % . . . . % % . . . . . .
|
||||||
|
. . . . . . # # c c # . . . % % % . . . . . . . % % % . . . . .
|
||||||
|
. . . . . # # # # # # . . . % % % . . . . . . . % % . . . . . .
|
||||||
|
. . . . . . . # # # # . . . % . % . . . . . . . . . . . . . . .
|
||||||
|
. . . . . # # # # # . . . . . . . . . . . . . . . . . . . . . .
|
||||||
|
. . . . . # # # . . . . . . . . . . . . . . . . . . . . . . . .
|
||||||
|
. . . . . # # . . . . . . . . . . . . . . . . . . . . . . . . .
|
||||||
|
. . . . . . . . % . . . . . . . . . . . . . . . . . . . . . . .
|
||||||
|
. . . . . . . % % % % . . . . . . . . . . . . . . . . . . . . .
|
||||||
|
. . . . . . . . % % % . . . . . . . . . . . . . . . . . . . . .
|
||||||
|
. . . . . . . . % % . . . % . . . . . . . . . . . . . . . . . .
|
||||||
|
. . . % . . . . . . . . . . % % . . # # # # . . . . . . . . . .
|
||||||
|
. . % % . . . . . . . . . % % % . . # # # # . . . . . . % . . .
|
||||||
|
. . . . . . . . . . . . . % % % % . . # # # # . . . . . % % . .
|
||||||
|
. . . . . # # # . . . . . % % % % . # a a # # . . . . % % % % .
|
||||||
|
. . . . # # # # # . . . % . % % % . # # # # # # . . . % % % . .
|
||||||
|
% . . # # # # # . . . % . . . . . # # # # # # . . . . . . . . .
|
||||||
|
% . . # b b # # # . . % . . % % . . . # . . . . . . . . . . % %
|
||||||
|
% . . # # # # # . . . . % % % % % . . . . . . . . . . . . . % %
|
||||||
|
. . . . # # # # . . . . . % % % % . . . . . . . . . . . . . % %
|
||||||
|
. . . . # # . . . . . . % % % . . . . . . . . . . . . . . . % %
|
||||||
|
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . % .
|
||||||
|
. . . . . . . . . . . . . . . . . . . . . . . . . . . % % . % .
|
||||||
|
. . . . . . . . . . . . . . . . . . . . . . . . . . . % % % . .
|
||||||
|
. . % % . % . . . . . . . . . . . . . . . . . . . . . % % % . .
|
||||||
|
. . % % % . % . . . . . . . . . . . . . . . . . . . . . . . . .
|
||||||
|
. % % % % . % % % % . . . . . . . . . . . . . . . . . . . . . .
|
||||||
|
. . % % . . % % % % . . . . . % % % . . % % . . . . . . . . . .
|
||||||
|
. . % . . % % % % . . . . . . % % . . . . . . . . . . . . . . .
|
||||||
|
|
||||||
|
A script for adding all the countries can be found in "sandbox/no-spike-newcap_script".
|
1075
tests/fairland/no-spike.xdump
Normal file
1075
tests/fairland/no-spike.xdump
Normal file
File diff suppressed because it is too large
Load diff
|
@ -55,4 +55,4 @@ writing to sectors file...
|
||||||
% % % % . # . # # # . . . . . . . . . . . . . . . . % % % % . .
|
% % % % . # . # # # . . . . . . . . . . . . . . . . % % % % . .
|
||||||
% % % . # # # # # . . . . . . . . . # . . . . . % % % % % . . %
|
% % % . # # # # # . . . . . . . . . # . . . . . % % % % % . . %
|
||||||
|
|
||||||
A script for adding all the countries can be found in "sandbox/newcap_script".
|
A script for adding all the countries can be found in "sandbox/plain-newcap_script".
|
17
tests/fairland/spike-newcap_script
Normal file
17
tests/fairland/spike-newcap_script
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
add 1 1 1 p
|
||||||
|
newcap 1 0,12
|
||||||
|
add 2 2 2 p
|
||||||
|
newcap 2 34,16
|
||||||
|
add 3 3 3 p
|
||||||
|
newcap 3 44,4
|
||||||
|
add 4 4 4 p
|
||||||
|
newcap 4 9,1
|
||||||
|
add 5 5 5 p
|
||||||
|
newcap 5 46,24
|
||||||
|
add 6 6 6 p
|
||||||
|
newcap 6 3,23
|
||||||
|
add 7 7 7 p
|
||||||
|
newcap 7 24,6
|
||||||
|
add 8 8 8 p
|
||||||
|
newcap 8 25,27
|
||||||
|
add 9 visitor visitor v
|
58
tests/fairland/spike.out
Normal file
58
tests/fairland/spike.out
Normal file
|
@ -0,0 +1,58 @@
|
||||||
|
Creating a planet with:
|
||||||
|
|
||||||
|
8 continents
|
||||||
|
continent size: 30
|
||||||
|
number of islands: 8
|
||||||
|
average size of islands: 20
|
||||||
|
spike: 50%
|
||||||
|
10% of land is mountain (each continent will have 3 mountains)
|
||||||
|
minimum distance between continents: 2
|
||||||
|
minimum distance from islands to continents: 1
|
||||||
|
World dimensions: 64x32
|
||||||
|
|
||||||
|
#*# ...fairland rips open a rift in the datumplane... #*#
|
||||||
|
|
||||||
|
seed is 1
|
||||||
|
placing capitals...
|
||||||
|
growing continents...
|
||||||
|
growing islands: 1(30) 2(10) 3(26) 4(22) 5(20) 6(16) 7(29) 8(6)
|
||||||
|
elevating land...
|
||||||
|
designating sectors...
|
||||||
|
adding resources...
|
||||||
|
setting coastal flags...
|
||||||
|
writing to sectors file...
|
||||||
|
|
||||||
|
. b b # # # . . . . % % . . . # . % % ^ % . . . . . . . . . . .
|
||||||
|
. # # # # . . . . . % % . . # . % % % % . . . . . . . . . . . .
|
||||||
|
# # ^ # . # . . . . . % ^ . . . . . . . . . . . . . . . . . . .
|
||||||
|
# # # # # . . . . . . % % % . . . . . . . . . . . . . . . . . .
|
||||||
|
# . ^ # . . . # # . . . . % . . . . . . . . . . . . . . . . . .
|
||||||
|
# # ^ . . . # # . . . . . . . . . # . . . . . . . . . . . . . .
|
||||||
|
. . # # . . # . # # # . . . . . . # # # . . # . . . . . . . . .
|
||||||
|
% . . # . . # # ^ ^ # . # . . . . f f # # # . . . . . # # # . %
|
||||||
|
% % % . . . . e e ^ # # # . % . . . # # # # # . . . . # ^ # ^ .
|
||||||
|
% % % % . # # # # # # . . % % . # # ^ # # ^ # . . . # # ^ # # .
|
||||||
|
% % % % % . . # # # # . % % % . . # . # # # # . . # # # # # # .
|
||||||
|
^ % % % % . . . . . . % % % . . . . . # ^ . . . . # # # h h # .
|
||||||
|
% % % % % . . . . . . % ^ % % % . . . # . . . . . . # # # . . .
|
||||||
|
. % ^ % % . . . . % % ^ % % % . . . . . . . # . . # # . . % % %
|
||||||
|
. . % % % % . . . . % % % % . % . . . . . # # # . . . # . % % .
|
||||||
|
. . % . ^ . # . . . % ^ % . . . . . . . # # # . . . . . % % % %
|
||||||
|
. . . % % . . # . . . % . % . . . . . . ^ # # # . . . . % % % %
|
||||||
|
. . . % . . # . . . . . . . . . . . . ^ d d . . . . . . % % % %
|
||||||
|
^ . . . % . # . . # . . . . . . . . . # # # . . . . . . . % % %
|
||||||
|
. . . . . # # # # . . . . . . . . . # ^ # # # . . . . . % . % .
|
||||||
|
. . . . # # c c # # . . . . . . . . # # # # # . . . . . . . . .
|
||||||
|
# . . . . # # # ^ # . . . . . . . . # . # # . . . . . # ^ . . #
|
||||||
|
# . . # # # # # # ^ . . . # . # . . . . . . . . . . . . g g # #
|
||||||
|
# . . ^ . . . # # . . . . # # . . . . . . . . . . . . . # # # #
|
||||||
|
# . . . . % ^ . . . . . . . # # # . . . . . . . . . . . # # ^ #
|
||||||
|
# . . . % . % % % % . . ^ # ^ . # . . . . . . . . . . . # ^ # #
|
||||||
|
# . . . . . . . % % . . . . . # # . . . . . . . . . . . . # # #
|
||||||
|
. . . . . . % % % % . . . . . # . # . % . . . . . . . . . . # .
|
||||||
|
. . . . . . % % % % % . . # # # a a . % % . . . . . . . . . . #
|
||||||
|
. . . . . % % % % % % % . # ^ # # . % ^ % % . . . . . . . . . .
|
||||||
|
. . . . . . . % % % % ^ % . # # . . % % % . . . . . . . . . . .
|
||||||
|
. # . . . # . % ^ % % % . # # . % % % % . . . . . . . . . . . .
|
||||||
|
|
||||||
|
A script for adding all the countries can be found in "sandbox/spike-newcap_script".
|
1075
tests/fairland/spike.xdump
Normal file
1075
tests/fairland/spike.xdump
Normal file
File diff suppressed because it is too large
Load diff
17
tests/fairland/stunted-newcap_script
Normal file
17
tests/fairland/stunted-newcap_script
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
add 1 1 1 p
|
||||||
|
newcap 1 53,11
|
||||||
|
add 2 2 2 p
|
||||||
|
newcap 2 45,31
|
||||||
|
add 3 3 3 p
|
||||||
|
newcap 3 8,4
|
||||||
|
add 4 4 4 p
|
||||||
|
newcap 4 29,7
|
||||||
|
add 5 5 5 p
|
||||||
|
newcap 5 17,17
|
||||||
|
add 6 6 6 p
|
||||||
|
newcap 6 38,18
|
||||||
|
add 7 7 7 p
|
||||||
|
newcap 7 62,24
|
||||||
|
add 8 8 8 p
|
||||||
|
newcap 8 24,28
|
||||||
|
add 9 visitor visitor v
|
70
tests/fairland/stunted.out
Normal file
70
tests/fairland/stunted.out
Normal file
|
@ -0,0 +1,70 @@
|
||||||
|
Creating a planet with:
|
||||||
|
|
||||||
|
8 continents
|
||||||
|
continent size: 37
|
||||||
|
number of islands: 24
|
||||||
|
average size of islands: 15
|
||||||
|
spike: 0%
|
||||||
|
0% of land is mountain (each continent will have 0 mountains)
|
||||||
|
minimum distance between continents: 5
|
||||||
|
minimum distance from islands to continents: 2
|
||||||
|
World dimensions: 64x32
|
||||||
|
|
||||||
|
#*# ...fairland rips open a rift in the datumplane... #*#
|
||||||
|
|
||||||
|
seed is 1
|
||||||
|
placing capitals...
|
||||||
|
growing continents...
|
||||||
|
fairland: error -- continent h had no room to grow!
|
||||||
|
Only managed to grow 33 out of 37 sectors.
|
||||||
|
|
||||||
|
try #2 (out of 10)...
|
||||||
|
placing capitals...
|
||||||
|
growing continents...
|
||||||
|
fairland: error -- continent h had no room to grow!
|
||||||
|
Only managed to grow 31 out of 37 sectors.
|
||||||
|
|
||||||
|
try #3 (out of 10)...
|
||||||
|
placing capitals...
|
||||||
|
growing continents...
|
||||||
|
growing islands: 1(14) 2(20) 3(11) 4(16) 5(14) 6(8) 7(2) 8(3) 9(4) 10(5) 11(14) 12(3)
|
||||||
|
elevating land...
|
||||||
|
designating sectors...
|
||||||
|
adding resources...
|
||||||
|
setting coastal flags...
|
||||||
|
writing to sectors file...
|
||||||
|
|
||||||
|
. . # # # # . . % . . . . % % % % . . . . . . # # # # # # . . %
|
||||||
|
. . # # # # . . % . . . % % % . . . % % . . # # e e # # . . % %
|
||||||
|
. . . f f # # . . . . . % % . . . . % % . . # # # # # # . . % %
|
||||||
|
. # # # # # # . . . . . % . . . . . % . . # # # # # # . . % % .
|
||||||
|
. . . # # # # # . . . . . . . . # . . % . . . # # # # . . % % .
|
||||||
|
. . . # # # # # # . . . . . . # # . . % . . . . . . . . % % . .
|
||||||
|
% % . . # # # # . . . % . . # # # # . . % . . . . . . . % % . .
|
||||||
|
. % . . # # . . . . % . . # # # # # . . . . % . . % % % . . . .
|
||||||
|
. . % . . . . . . . % . . # # g g # # . . . % % . . . . . . . .
|
||||||
|
. . . . . . . . . . . . . # # # # # # # . . % . . . . . . # # #
|
||||||
|
# . . . . . . . . . . . . . # # # # . # . . % . . # # . . # # #
|
||||||
|
# . . . . . . . . . . . . . # # # # . . . . . . # # . # # # # #
|
||||||
|
# . . . . . . . . # . . . . . # # # . . . . . . . # # # h h # #
|
||||||
|
. . . . . # # # # # . . . . . . . . . . . . . . . # # # # # # #
|
||||||
|
. . . . . # # # # # # . . . . . . . . . . . . . . . # # # # . .
|
||||||
|
. . . . # # b b # # # . . . . . . . . . . . . % . . # . . . . .
|
||||||
|
. . . . . # # # # # # # . . % % . . . . . . . . % . . . . . . %
|
||||||
|
. . . . . . # # # # # # . . % . . . . . # # . . % . . . % % % .
|
||||||
|
. . . . . . . # # # # # . . % . . # # # # # # . . % % % % . . .
|
||||||
|
# . . % % . . . . . . . . % % . . # # # # # # . . % % % . . . .
|
||||||
|
# # . . . % . . . . . . . % % % . . # # c c # # . . % % . . # #
|
||||||
|
# # . . . % % % . . . % % % % % . . # # # # # # . . % . . # # #
|
||||||
|
# # # # . . % % . . . . . . . . . . . # # # # # . . % . . # # #
|
||||||
|
# # # # . . % . . . . . . . . . . . . # # # # # . . % . . # d d
|
||||||
|
# # # # . . % . . # # . . # # . . . . . . . # . . . . % . . # #
|
||||||
|
# # # . . % . . # # # # # # # . . . . . . . . . . . . . . # # #
|
||||||
|
. . . . . % . . # # # # # # # # . . % % % . . . % % . . . . . #
|
||||||
|
. . . . % % . . # # a a # # . . . . % % % . . % . . . . . . . .
|
||||||
|
. . . . . . . . . # # # # # # . . % % % % . . . . . . . . . . .
|
||||||
|
. . . . . . . . . # # # . # . . . . % % % . . . . # . . . . . .
|
||||||
|
. . . . . . . . . . . # . . . . . . . % . . . . # # # . . . . .
|
||||||
|
. . . # # . . . . . # . . . . % . . . . . . . # # # # # . . . .
|
||||||
|
|
||||||
|
A script for adding all the countries can be found in "sandbox/stunted-newcap_script".
|
1075
tests/fairland/stunted.xdump
Normal file
1075
tests/fairland/stunted.xdump
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue