mirror of
https://git.code.sf.net/p/libpng/code.git
synced 2025-07-10 18:04:09 +02:00
[master] Imported from libpng-1.6.19.tar
This commit is contained in:
@@ -1,2 +1,2 @@
|
||||
#!/bin/sh
|
||||
exec ./pngimage --exhaustive --log "${srcdir}/contrib/pngsuite/"*.png
|
||||
exec ./pngimage --exhaustive --list-combos --log "${srcdir}/contrib/pngsuite/"*.png
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
#!/bin/sh
|
||||
exec ./pngimage --log "${srcdir}/contrib/pngsuite/"*.png
|
||||
exec ./pngimage --list-combos --log "${srcdir}/contrib/pngsuite/"*.png
|
||||
|
||||
@@ -2,12 +2,51 @@
|
||||
#
|
||||
# Usage:
|
||||
#
|
||||
# tests/pngstest pattern
|
||||
# tests/pngstest gamma alpha
|
||||
#
|
||||
# Runs pngstest on all the contrib/pngsuite/[^x]*${pattern}.png files
|
||||
# NOTE: pattern is used to name the temporary files pngstest generates
|
||||
# Run ./pngstest on the PNG files in $srcdir/contrib/testpngs which have the
|
||||
# given gamma and opacity:
|
||||
#
|
||||
pattern="$1"
|
||||
# gamma: one of; linear, 1.8, sRGB, none.
|
||||
# alpha: one of; opaque, tRNS, alpha, none. 'none' is equivalent to !alpha
|
||||
#
|
||||
# NOTE: the temporary files pngstest generates have the base name gamma-alpha to
|
||||
# avoid issues with make -j
|
||||
#
|
||||
gamma="$1"
|
||||
shift
|
||||
exec ./pngstest --strict --tmpfile "${pattern}" --log ${1+"$@"}\
|
||||
"${srcdir}/contrib/pngsuite/"[a-wyz]*${pattern}".png"
|
||||
alpha="$1"
|
||||
shift
|
||||
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
|
||||
)
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
#!/bin/sh
|
||||
exec "${srcdir}/tests/pngstest" 0g01
|
||||
@@ -1,2 +0,0 @@
|
||||
#!/bin/sh
|
||||
exec "${srcdir}/tests/pngstest" 0g02
|
||||
@@ -1,2 +0,0 @@
|
||||
#!/bin/sh
|
||||
exec "${srcdir}/tests/pngstest" 0g04
|
||||
@@ -1,2 +0,0 @@
|
||||
#!/bin/sh
|
||||
exec "${srcdir}/tests/pngstest" 0g08
|
||||
@@ -1,2 +0,0 @@
|
||||
#!/bin/sh
|
||||
exec "${srcdir}/tests/pngstest" 0g16
|
||||
2
tests/pngstest-1.8
Executable file
2
tests/pngstest-1.8
Executable file
@@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
exec "${srcdir}/tests/pngstest" 1.8 none
|
||||
2
tests/pngstest-1.8-alpha
Executable file
2
tests/pngstest-1.8-alpha
Executable file
@@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
exec "${srcdir}/tests/pngstest" 1.8 alpha
|
||||
@@ -1,2 +0,0 @@
|
||||
#!/bin/sh
|
||||
exec "${srcdir}/tests/pngstest" 2c08
|
||||
@@ -1,2 +0,0 @@
|
||||
#!/bin/sh
|
||||
exec "${srcdir}/tests/pngstest" 2c16
|
||||
@@ -1,2 +0,0 @@
|
||||
#!/bin/sh
|
||||
exec "${srcdir}/tests/pngstest" 3p01
|
||||
@@ -1,2 +0,0 @@
|
||||
#!/bin/sh
|
||||
exec "${srcdir}/tests/pngstest" 3p02
|
||||
@@ -1,2 +0,0 @@
|
||||
#!/bin/sh
|
||||
exec "${srcdir}/tests/pngstest" 3p04
|
||||
@@ -1,2 +0,0 @@
|
||||
#!/bin/sh
|
||||
exec "${srcdir}/tests/pngstest" 3p08
|
||||
@@ -1,2 +0,0 @@
|
||||
#!/bin/sh
|
||||
exec "${srcdir}/tests/pngstest" 4a08
|
||||
@@ -1,2 +0,0 @@
|
||||
#!/bin/sh
|
||||
exec "${srcdir}/tests/pngstest" 4a16
|
||||
@@ -1,2 +0,0 @@
|
||||
#!/bin/sh
|
||||
exec "${srcdir}/tests/pngstest" 6a08
|
||||
@@ -1,2 +0,0 @@
|
||||
#!/bin/sh
|
||||
exec "${srcdir}/tests/pngstest" 6a16
|
||||
@@ -1,14 +0,0 @@
|
||||
#!/bin/sh
|
||||
code=77 # skipped
|
||||
for t in "${srcdir}/contrib/pngsuite/"x*".png"
|
||||
do
|
||||
if test "$t" != "${srcdir}/contrib/pngsuite/x*.png"
|
||||
then
|
||||
# not skipped, test it
|
||||
if ./pngstest --strict --tmpfile "error" --log "$@" "$t"
|
||||
then
|
||||
code=0 # oops, success: should not happen!
|
||||
fi
|
||||
fi
|
||||
done
|
||||
exit $code
|
||||
2
tests/pngstest-linear
Executable file
2
tests/pngstest-linear
Executable file
@@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
exec "${srcdir}/tests/pngstest" linear none
|
||||
2
tests/pngstest-linear-alpha
Executable file
2
tests/pngstest-linear-alpha
Executable file
@@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
exec "${srcdir}/tests/pngstest" linear alpha
|
||||
2
tests/pngstest-none
Executable file
2
tests/pngstest-none
Executable file
@@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
exec "${srcdir}/tests/pngstest" none none
|
||||
2
tests/pngstest-none-alpha
Executable file
2
tests/pngstest-none-alpha
Executable file
@@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
exec "${srcdir}/tests/pngstest" none alpha
|
||||
2
tests/pngstest-sRGB
Executable file
2
tests/pngstest-sRGB
Executable file
@@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
exec "${srcdir}/tests/pngstest" sRGB none
|
||||
2
tests/pngstest-sRGB-alpha
Executable file
2
tests/pngstest-sRGB-alpha
Executable file
@@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
exec "${srcdir}/tests/pngstest" sRGB alpha
|
||||
@@ -1,2 +1,2 @@
|
||||
#!/bin/sh
|
||||
exec ./pngunknown default=discard IDAT=save "${srcdir}/pngtest.png"
|
||||
exec ./pngunknown --strict default=discard IDAT=save "${srcdir}/pngtest.png"
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
#!/bin/sh
|
||||
exec ./pngunknown default=discard "${srcdir}/pngtest.png"
|
||||
exec ./pngunknown --strict default=discard "${srcdir}/pngtest.png"
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
#!/bin/sh
|
||||
exec ./pngunknown default=if-safe "${srcdir}/pngtest.png"
|
||||
exec ./pngunknown --strict default=if-safe "${srcdir}/pngtest.png"
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
#!/bin/sh
|
||||
exec ./pngunknown bKGD=save cHRM=save gAMA=save all=discard iCCP=save sBIT=save sRGB=save "${srcdir}/pngtest.png"
|
||||
exec ./pngunknown --strict bKGD=save cHRM=save gAMA=save all=discard iCCP=save sBIT=save sRGB=save "${srcdir}/pngtest.png"
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
#!/bin/sh
|
||||
exec ./pngunknown sTER=if-safe "${srcdir}/pngtest.png"
|
||||
exec ./pngunknown --strict sTER=if-safe "${srcdir}/pngtest.png"
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
#!/bin/sh
|
||||
exec ./pngunknown default=save "${srcdir}/pngtest.png"
|
||||
exec ./pngunknown --strict default=save "${srcdir}/pngtest.png"
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
#!/bin/sh
|
||||
exec ./pngunknown vpAg=if-safe "${srcdir}/pngtest.png"
|
||||
exec ./pngunknown --strict vpAg=if-safe "${srcdir}/pngtest.png"
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
#!/bin/sh
|
||||
exec ./pngvalid --gamma-16-to-8
|
||||
exec ./pngvalid --strict --gamma-16-to-8
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
#!/bin/sh
|
||||
exec ./pngvalid --gamma-alpha-mode
|
||||
exec ./pngvalid --strict --gamma-alpha-mode
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
#!/bin/sh
|
||||
exec ./pngvalid --gamma-background
|
||||
exec ./pngvalid --strict --gamma-background
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
#!/bin/sh
|
||||
exec ./pngvalid --gamma-alpha-mode --expand16
|
||||
exec ./pngvalid --strict --gamma-alpha-mode --expand16
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
#!/bin/sh
|
||||
exec ./pngvalid --gamma-background --expand16
|
||||
exec ./pngvalid --strict --gamma-background --expand16
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
#!/bin/sh
|
||||
exec ./pngvalid --gamma-transform --expand16
|
||||
exec ./pngvalid --strict --gamma-transform --expand16
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
#!/bin/sh
|
||||
exec ./pngvalid --gamma-sbit
|
||||
exec ./pngvalid --strict --gamma-sbit
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
#!/bin/sh
|
||||
exec ./pngvalid --gamma-threshold
|
||||
exec ./pngvalid --strict --gamma-threshold
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
#!/bin/sh
|
||||
exec ./pngvalid --gamma-transform
|
||||
exec ./pngvalid --strict --gamma-transform
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
#!/bin/sh
|
||||
exec ./pngvalid --size --progressive-read
|
||||
@@ -1,2 +1,2 @@
|
||||
#!/bin/sh
|
||||
exec ./pngvalid --standard --progressive-read --interlace
|
||||
exec ./pngvalid --strict --standard --progressive-read --interlace
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
#!/bin/sh
|
||||
exec ./pngvalid --transform
|
||||
2
tests/pngvalid-progressive-size
Executable file
2
tests/pngvalid-progressive-size
Executable file
@@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
exec ./pngvalid --strict --size --progressive-read
|
||||
@@ -1,2 +1,2 @@
|
||||
#!/bin/sh
|
||||
exec ./pngvalid --standard --progressive-read
|
||||
exec ./pngvalid --strict --standard --progressive-read
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
#!/bin/sh
|
||||
exec ./pngvalid --standard --progressive-read
|
||||
exec ./pngvalid --strict --standard
|
||||
|
||||
2
tests/pngvalid-transform
Executable file
2
tests/pngvalid-transform
Executable file
@@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
exec ./pngvalid --strict --transform
|
||||
Reference in New Issue
Block a user