Improve flag set generation of RGBGFX tests

Less duplication = good
This commit is contained in:
ISSOtm
2022-05-21 15:39:23 +02:00
committed by Eldred Habert
parent 3f5983358c
commit 903862c451

View File

@@ -31,7 +31,7 @@ fail() {
while [[ "$ofs" -eq 0 ]]; do (( ofs = RANDOM % 256 )); done
while [[ "$size" -eq 0 ]]; do (( size = RANDOM % 256 )); done
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
test || fail $?
done