shithub: rgbds

Download patch

ref: 903862c4514cbd63d56c8565898304e1d3f2c0be
parent: 3f5983358cc8f791d80912d928a4d65cb4c62212
author: ISSOtm <eldredhabert0@gmail.com>
date: Sat May 21 11:39:23 EDT 2022

Improve flag set generation of RGBGFX tests

Less duplication = good

--- a/test/gfx/test.sh
+++ b/test/gfx/test.sh
@@ -31,7 +31,7 @@
 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