forked from aerinon/ALttPDoorRandomizer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
testsuite.sh
executable file
·240 lines (227 loc) · 7.24 KB
/
testsuite.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
#!/bin/bash
count=${1:-2}
dr=${2:-basic}
tense=${3:-3} #intensity
printf "Testing %s DR with %s Tests (intensity=%d)\n" $dr $count $tense
rom="../../orig/z3.sfc"
vov=0
vsv=0
viv=0
vor=0
vsr=0
vir=0
vok=0
vsk=0
vik=0
vos=0
vss=0
vis=0
vof=0
vsf=0
vif=0
voc=0
vsc=0
vic=0
voi=0
vsi=0
vii=0
#flags - v - vanilla DR
# osi - mode
# vrk ER - sfci
for (( i=1; i<=$count; i++ ))
do
python3 DungeonRandomizer.py --door_shuffle $dr --intensity $tense --shuffle vanilla --suppress_rom --suppress_spoiler --rom $rom
if [[ $? -eq 1 ]]
then
((vov++))
fi
done
for (( i=1; i<=$count; i++ ))
do
python3 DungeonRandomizer.py --door_shuffle $dr --intensity $tense --mode standard --shuffle vanilla --suppress_rom --suppress_spoiler --rom $rom
if [[ $? -eq 1 ]]
then
((vsv++))
fi
done
for (( i=1; i<=$count; i++ ))
do
python3 DungeonRandomizer.py --door_shuffle $dr --intensity $tense --mode inverted --shuffle vanilla --suppress_rom --suppress_spoiler --rom $rom
if [[ $? -eq 1 ]]
then
((viv++))
fi
done
for (( i=1; i<=$count; i++ ))
do
python3 DungeonRandomizer.py --door_shuffle $dr --intensity $tense --shuffle vanilla --retro --suppress_rom --suppress_spoiler --rom $rom
if [[ $? -eq 1 ]]
then
((vor++))
fi
done
for (( i=1; i<=$count; i++ ))
do
python3 DungeonRandomizer.py --door_shuffle $dr --intensity $tense --mode standard --shuffle vanilla --retro --suppress_rom --suppress_spoiler --rom $rom
if [[ $? -eq 1 ]]
then
((vsr++))
fi
done
for (( i=1; i<=$count; i++ ))
do
python3 DungeonRandomizer.py --door_shuffle $dr --intensity $tense --mode inverted --shuffle vanilla --retro --suppress_rom --suppress_spoiler --rom $rom
if [[ $? -eq 1 ]]
then
((vir++))
fi
done
for (( i=1; i<=$count; i++ ))
do
python3 DungeonRandomizer.py --door_shuffle $dr --intensity $tense --shuffle vanilla --keysanity --suppress_rom --suppress_spoiler --rom $rom
if [[ $? -eq 1 ]]
then
((vok++))
fi
done
for (( i=1; i<=$count; i++ ))
do
python3 DungeonRandomizer.py --door_shuffle $dr --intensity $tense --mode standard --shuffle vanilla --keysanity --suppress_rom --suppress_spoiler --rom $rom
if [[ $? -eq 1 ]]
then
((vsk++))
fi
done
for (( i=1; i<=$count; i++ ))
do
python3 DungeonRandomizer.py --door_shuffle $dr --intensity $tense --mode inverted --shuffle vanilla --keysanity --suppress_rom --suppress_spoiler --rom $rom
if [[ $? -eq 1 ]]
then
((vik++))
fi
done
for (( i=1; i<=$count; i++ ))
do
python3 DungeonRandomizer.py --door_shuffle $dr --intensity $tense --shuffle simple --suppress_rom --suppress_spoiler --rom $rom
if [[ $? -eq 1 ]]
then
((vos++))
fi
done
for (( i=1; i<=$count; i++ ))
do
python3 DungeonRandomizer.py --door_shuffle $dr --intensity $tense --mode standard --shuffle simple --suppress_rom --suppress_spoiler --rom $rom
if [[ $? -eq 1 ]]
then
((vss++))
fi
done
for (( i=1; i<=$count; i++ ))
do
python3 DungeonRandomizer.py --door_shuffle $dr --intensity $tense --mode inverted --shuffle simple --suppress_rom --suppress_spoiler --rom $rom
if [[ $? -eq 1 ]]
then
((vis++))
fi
done
for (( i=1; i<=$count; i++ ))
do
python3 DungeonRandomizer.py --door_shuffle $dr --intensity $tense --shuffle full --suppress_rom --suppress_spoiler --rom $rom
if [[ $? -eq 1 ]]
then
((vof++))
fi
done
for (( i=1; i<=$count; i++ ))
do
python3 DungeonRandomizer.py --door_shuffle $dr --intensity $tense --mode standard --shuffle full --suppress_rom --suppress_spoiler --rom $rom
if [[ $? -eq 1 ]]
then
((vsf++))
fi
done
for (( i=1; i<=$count; i++ ))
do
python3 DungeonRandomizer.py --door_shuffle $dr --intensity $tense --mode inverted --shuffle full --suppress_rom --suppress_spoiler --rom $rom
if [[ $? -eq 1 ]]
then
((vif++))
fi
done
for (( i=1; i<=$count; i++ ))
do
python3 DungeonRandomizer.py --door_shuffle $dr --intensity $tense --shuffle crossed --suppress_rom --suppress_spoiler --rom $rom
if [[ $? -eq 1 ]]
then
((voc++))
fi
done
for (( i=1; i<=$count; i++ ))
do
python3 DungeonRandomizer.py --door_shuffle $dr --intensity $tense --mode standard --shuffle crossed --suppress_rom --suppress_spoiler --rom $rom
if [[ $? -eq 1 ]]
then
((vsc++))
fi
done
for (( i=1; i<=$count; i++ ))
do
python3 DungeonRandomizer.py --door_shuffle $dr --intensity $tense --mode inverted --shuffle crossed --suppress_rom --suppress_spoiler --rom $rom
if [[ $? -eq 1 ]]
then
((vic++))
fi
done
for (( i=1; i<=$count; i++ ))
do
python3 DungeonRandomizer.py --door_shuffle $dr --intensity $tense --shuffle insanity --suppress_rom --suppress_spoiler --rom $rom
if [[ $? -eq 1 ]]
then
((voi++))
fi
done
for (( i=1; i<=$count; i++ ))
do
python3 DungeonRandomizer.py --door_shuffle $dr --intensity $tense --mode standard --shuffle insanity --suppress_rom --suppress_spoiler --rom $rom
if [[ $? -eq 1 ]]
then
((vsi++))
fi
done
for (( i=1; i<=$count; i++ ))
do
python3 DungeonRandomizer.py --door_shuffle $dr --intensity $tense --mode inverted --shuffle insanity --suppress_rom --suppress_spoiler --rom $rom
if [[ $? -eq 1 ]]
then
((vii++))
fi
done
printf "DR Stats\n"
printf "Vanilla Open Rate: %.2f%%\n" "$((($count-$vov)*100/$count))"
printf "Vanilla Std Rate: %.2f%%\n" "$((($count-$vsv)*100/$count))"
printf "Vanilla Inv Rate: %.2f%%\n" "$((($count-$viv)*100/$count))"
printf "Retro Open Rate: %.2f%%\n" "$((($count-$vor)*100/$count))"
printf "Retro Std Rate: %.2f%%\n" "$((($count-$vsr)*100/$count))"
printf "Retro Inv Rate: %.2f%%\n" "$((($count-$vir)*100/$count))"
printf "Keysant Open Rate: %.2f%%\n" "$((($count-$vok)*100/$count))"
printf "Keysant Std Rate: %.2f%%\n" "$((($count-$vsk)*100/$count))"
printf "Keysant Inv Rate: %.2f%%\n" "$((($count-$vik)*100/$count))"
printf "Simple Open Rate: %.2f%%\n" "$((($count-$vos)*100/$count))"
printf "Simple Std Rate: %.2f%%\n" "$((($count-$vss)*100/$count))"
printf "Simple Inv Rate: %.2f%%\n" "$((($count-$vis)*100/$count))"
printf "Full Open Rate: %.2f%%\n" "$((($count-$vof)*100/$count))"
printf "Full Std Rate: %.2f%%\n" "$((($count-$vsf)*100/$count))"
printf "Full Inv Rate: %.2f%%\n" "$((($count-$vif)*100/$count))"
printf "Crossed Open Rate: %.2f%%\n" "$((($count-$voc)*100/$count))"
printf "Crossed Std Rate: %.2f%%\n" "$((($count-$vsc)*100/$count))"
printf "Crossed Inv Rate: %.2f%%\n" "$((($count-$vic)*100/$count))"
printf "Insanit Open Rate: %.2f%%\n" "$((($count-$voi)*100/$count))"
printf "Insanit Std Rate: %.2f%%\n" "$((($count-$vsi)*100/$count))"
printf "Insanit Inv Rate: %.2f%%\n" "$((($count-$vii)*100/$count))"
printf "%.2f%%\t%.2f%%\t%.2f%%\n" "$((($count-$vov)*100/$count))" "$((($count-$vsv)*100/$count))" "$((($count-$viv)*100/$count))"
printf "%.2f%%\t%.2f%%\t%.2f%%\n" "$((($count-$vor)*100/$count))" "$((($count-$vsr)*100/$count))" "$((($count-$vir)*100/$count))"
printf "%.2f%%\t%.2f%%\t%.2f%%\n" "$((($count-$vok)*100/$count))" "$((($count-$vsk)*100/$count))" "$((($count-$vik)*100/$count))"
printf "%.2f%%\t%.2f%%\t%.2f%%\n" "$((($count-$vos)*100/$count))" "$((($count-$vss)*100/$count))" "$((($count-$vis)*100/$count))"
printf "%.2f%%\t%.2f%%\t%.2f%%\n" "$((($count-$vof)*100/$count))" "$((($count-$vsf)*100/$count))" "$((($count-$vif)*100/$count))"
printf "%.2f%%\t%.2f%%\t%.2f%%\n" "$((($count-$voc)*100/$count))" "$((($count-$vsc)*100/$count))" "$((($count-$vic)*100/$count))"
printf "%.2f%%\t%.2f%%\t%.2f%%\n" "$((($count-$voi)*100/$count))" "$((($count-$vsi)*100/$count))" "$((($count-$vii)*100/$count))"