mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +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
|
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 $?
|
test || fail $?
|
||||||
done
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user