Add more RGBGFX test coverage (#1553)

This commit is contained in:
Sylvie
2024-10-27 11:32:21 -04:00
committed by GitHub
parent 5efd303b7f
commit a7fdb2c3d3
51 changed files with 65 additions and 6 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
5721d9
a9d4fe
A9D4FE
ffffff
ffFFfF
Binary file not shown.
+1
View File
@@ -0,0 +1 @@
-c aco:full_aco.aco
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

After

Width:  |  Height:  |  Size: 927 B

Binary file not shown.
+1
View File
@@ -0,0 +1 @@
-c act:full_act.act
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

After

Width:  |  Height:  |  Size: 927 B

+1
View File
@@ -0,0 +1 @@
-c gbc:full_gbc.pal
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

After

Width:  |  Height:  |  Size: 927 B

+1
View File
@@ -0,0 +1 @@
-c psp:full_psp.pal
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+35
View File
@@ -0,0 +1,35 @@
JASC-PAL
0100
32
0 0 0
252 252 252
196 199 238
154 143 224
99 93 150
41 47 101
27 29 52
255 227 174
205 187 171
166 133 143
207 93 139
150 73 104
255 180 130
221 134 125
178 105 111
246 198 94
228 144 87
196 104 51
176 208 126
102 170 93
82 181 171
42 131 121
28 86 89
123 225 246
88 159 252
80 105 228
46 68 174
128 86 212
90 59 150
255 186 225
230 135 197
167 89 185
Binary file not shown.

After

Width:  |  Height:  |  Size: 927 B

+1
View File
@@ -0,0 +1 @@
-X
+1
View File
@@ -0,0 +1 @@
耨耨耨耨耨耨亖亖亖亖亖亖耨耨耨亖亖亖亖亖亖弿弿弿耨耨耨弿弿弿亖亖亖亖亖亖
Binary file not shown.
Binary file not shown.
Binary file not shown.

After

Width:  |  Height:  |  Size: 103 B

+1
View File
@@ -0,0 +1 @@
-XY
+1
View File
@@ -0,0 +1 @@
耨耨耨耨耨耨亖亖亖耨耨耨亖亖亖耨耨耨弿弿弿亖亖亖亖亖亖
Binary file not shown.
Binary file not shown.
Binary file not shown.

After

Width:  |  Height:  |  Size: 103 B

+1
View File
@@ -0,0 +1 @@
-Y
+1
View File
@@ -0,0 +1 @@
耨耨耨耨耨耨弿弿弿弿弿弿亖亖亖耨耨耨亖亖亖弿弿弿亖亖亖耨耨耨弿弿弿亖亖亖亖亖亖
Binary file not shown.
Binary file not shown.
Binary file not shown.

After

Width:  |  Height:  |  Size: 103 B

+1
View File
@@ -0,0 +1 @@
? @L€€€円G|C<#
Binary file not shown.
+4
View File
@@ -0,0 +1,4 @@
-m
-t reverse_curve.tilemap
-a reverse_curve.attrmap
-p reverse_curve.pal
Binary file not shown.
Binary file not shown.
+11 -3
View File
@@ -37,11 +37,19 @@ failTest () {
echo "${bold}${red}Test ${cmdline} failed!${1:+ (RC=$1)}${rescolors}${resbold}"
}
tryCmp () {
if ! cmp "$1" "$2"; then
../../contrib/gbdiff.bash "$1" "$2"
echo "${bold}${red}$1 mismatch!${rescolors}${resbold}"
false
fi
}
checkOutput () {
out_rc=0
for ext in 1bpp 2bpp pal tilemap attrmap palmap; do
if [[ -e "$1.out.$ext" ]]; then
cmp "$1.out.$ext" "result.$ext"
tryCmp "$1.out.$ext" "result.$ext"
(( out_rc = out_rc || $? ))
fi
done
@@ -95,10 +103,10 @@ for f in *.[12]bpp; do
continue
fi
flags="$([[ -e "${f%.[12]bpp}.flags" ]] && echo "@${f%.[12]bpp}.flags")"
flags="$([[ -e "${f%.[12]bpp}.flags" ]] && echo "@${f%.[12]bpp}.flags") $([[ -e "${f%.1bpp}.flags" ]] && echo "-d 1")"
newTest "$RGBGFX $flags -o $f -r 1 result.png && $RGBGFX $flags -o result.2bpp result.png"
runTest && cmp "$f" result.2bpp || failTest $?
runTest && tryCmp "$f" result.2bpp || failTest $?
done
if [[ "$failed" -eq 0 ]]; then