mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
Test VRA0 size as well in randtilegen tests
This commit is contained in:
@@ -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
|
||||
new_test ./rgbgfx_test "$f"
|
||||
for flags in "" "-b $ofs" "-N $size,256" "-b $ofs -N $size,256"; do
|
||||
new_test ./rgbgfx_test "$f" $flags
|
||||
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
|
||||
|
||||
# Remove temporaries (also ignored by Git) created by the above tests
|
||||
|
||||
Reference in New Issue
Block a user