Test VRA0 size as well in randtilegen tests

This commit is contained in:
ISSOtm
2022-05-20 18:37:11 +02:00
committed by Eldred Habert
parent a5ed0292b1
commit caaf7a8444

View File

@@ -26,19 +26,15 @@ fail() {
} }
# Draw a random tile offset and VRA0 size
# Neither should change anything to how the image is displayed
while [[ "$ofs" -eq 0 ]]; do (( ofs = RANDOM % 256 )); done
while [[ "$size" -eq 0 ]]; do (( size = RANDOM % 256 )); done
for f in *.bin; do for f in *.bin; do
new_test ./rgbgfx_test "$f" for flags in "" "-b $ofs" "-N $size,256" "-b $ofs -N $size,256"; do
test || fail $? new_test ./rgbgfx_test "$f" $flags
done test || fail $?
done
# Re-run the tests, but this time, pass a random (non-zero) tile offset
# A tile offset should not change anything to how the image is displayed
while [[ "$ofs" -eq 0 ]]; do
ofs=$((RANDOM % 256))
done
for f in *.bin; do
new_test ./rgbgfx_test "$f" -b "$ofs"
test || fail $?
done done
# Remove temporaries (also ignored by Git) created by the above tests # Remove temporaries (also ignored by Git) created by the above tests