-exec ./pngstest --strict --tmpfile "${pattern}" --log ${1+"$@"}\
- "${srcdir}/contrib/pngsuite/"[a-wyz]*${pattern}".png"
+exec ./pngstest --tmpfile "${gamma}-${alpha}-" --log ${1+"$@"} `
+ for f in "${srcdir}/contrib/testpngs/"*.png
+ do
+ g=
+ case "$f" in
+ *-linear[.-]*)
+ test "$gamma" = "linear" && g="$f";;
+
+ *-sRGB[.-]*)
+ test "$gamma" = "sRGB" && g="$f";;
+
+ *-1.8[.-]*)
+ test "$gamma" = "1.8" && g="$f";;
+
+ *)
+ test "$gamma" = "none" && g="$f";;
+ esac
+
+ case "$g" in
+ "")
+ :;;
+
+ *-alpha[-.]*)
+ test "$alpha" = "alpha" && echo "$g";;
+
+ *-tRNS[-.]*)
+ test "$alpha" = "tRNS" -o "$alpha" = "none" && echo "$g";;
+
+ *)
+ test "$alpha" = "opaque" -o "$alpha" = "none" && echo "$g";;
+ esac
+ done
+`