mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
Improve flag set generation of RGBGFX tests
Less duplication = good
This commit is contained in:
@@ -31,7 +31,7 @@ fail() {
|
|||||||
while [[ "$ofs" -eq 0 ]]; do (( ofs = RANDOM % 256 )); done
|
while [[ "$ofs" -eq 0 ]]; do (( ofs = RANDOM % 256 )); done
|
||||||
while [[ "$size" -eq 0 ]]; do (( size = RANDOM % 256 )); done
|
while [[ "$size" -eq 0 ]]; do (( size = RANDOM % 256 )); done
|
||||||
for f in *.bin; do
|
for f in *.bin; do
|
||||||
for flags in "" "-b $ofs" "-N $size,256" "-b $ofs -N $size,256"; do
|
for flags in ""{," -b $ofs"}{," -N $size,256"}; do
|
||||||
new_test ./rgbgfx_test "$f" $flags
|
new_test ./rgbgfx_test "$f" $flags
|
||||||
test || fail $?
|
test || fail $?
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user