[master] Imported from libpng-1.6.19.tar

This commit is contained in:
Glenn Randers-Pehrson
2015-11-12 07:00:12 -06:00
parent 287fb89248
commit b9c62013ef
217 changed files with 2530 additions and 1725 deletions

View File

@@ -1,2 +1,2 @@
#!/bin/sh
exec ./pngimage --exhaustive --log "${srcdir}/contrib/pngsuite/"*.png
exec ./pngimage --exhaustive --list-combos --log "${srcdir}/contrib/pngsuite/"*.png

View File

@@ -1,2 +1,2 @@
#!/bin/sh
exec ./pngimage --log "${srcdir}/contrib/pngsuite/"*.png
exec ./pngimage --list-combos --log "${srcdir}/contrib/pngsuite/"*.png

View File

@@ -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
)

View File

@@ -1,2 +0,0 @@
#!/bin/sh
exec "${srcdir}/tests/pngstest" 0g01

View File

@@ -1,2 +0,0 @@
#!/bin/sh
exec "${srcdir}/tests/pngstest" 0g02

View File

@@ -1,2 +0,0 @@
#!/bin/sh
exec "${srcdir}/tests/pngstest" 0g04

View File

@@ -1,2 +0,0 @@
#!/bin/sh
exec "${srcdir}/tests/pngstest" 0g08

View File

@@ -1,2 +0,0 @@
#!/bin/sh
exec "${srcdir}/tests/pngstest" 0g16

2
tests/pngstest-1.8 Executable file
View File

@@ -0,0 +1,2 @@
#!/bin/sh
exec "${srcdir}/tests/pngstest" 1.8 none

2
tests/pngstest-1.8-alpha Executable file
View File

@@ -0,0 +1,2 @@
#!/bin/sh
exec "${srcdir}/tests/pngstest" 1.8 alpha

View File

@@ -1,2 +0,0 @@
#!/bin/sh
exec "${srcdir}/tests/pngstest" 2c08

View File

@@ -1,2 +0,0 @@
#!/bin/sh
exec "${srcdir}/tests/pngstest" 2c16

View File

@@ -1,2 +0,0 @@
#!/bin/sh
exec "${srcdir}/tests/pngstest" 3p01

View File

@@ -1,2 +0,0 @@
#!/bin/sh
exec "${srcdir}/tests/pngstest" 3p02

View File

@@ -1,2 +0,0 @@
#!/bin/sh
exec "${srcdir}/tests/pngstest" 3p04

View File

@@ -1,2 +0,0 @@
#!/bin/sh
exec "${srcdir}/tests/pngstest" 3p08

View File

@@ -1,2 +0,0 @@
#!/bin/sh
exec "${srcdir}/tests/pngstest" 4a08

View File

@@ -1,2 +0,0 @@
#!/bin/sh
exec "${srcdir}/tests/pngstest" 4a16

View File

@@ -1,2 +0,0 @@
#!/bin/sh
exec "${srcdir}/tests/pngstest" 6a08

View File

@@ -1,2 +0,0 @@
#!/bin/sh
exec "${srcdir}/tests/pngstest" 6a16

View File

@@ -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
View File

@@ -0,0 +1,2 @@
#!/bin/sh
exec "${srcdir}/tests/pngstest" linear none

2
tests/pngstest-linear-alpha Executable file
View File

@@ -0,0 +1,2 @@
#!/bin/sh
exec "${srcdir}/tests/pngstest" linear alpha

2
tests/pngstest-none Executable file
View File

@@ -0,0 +1,2 @@
#!/bin/sh
exec "${srcdir}/tests/pngstest" none none

2
tests/pngstest-none-alpha Executable file
View File

@@ -0,0 +1,2 @@
#!/bin/sh
exec "${srcdir}/tests/pngstest" none alpha

2
tests/pngstest-sRGB Executable file
View File

@@ -0,0 +1,2 @@
#!/bin/sh
exec "${srcdir}/tests/pngstest" sRGB none

2
tests/pngstest-sRGB-alpha Executable file
View File

@@ -0,0 +1,2 @@
#!/bin/sh
exec "${srcdir}/tests/pngstest" sRGB alpha

View File

@@ -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"

View File

@@ -1,2 +1,2 @@
#!/bin/sh
exec ./pngunknown default=discard "${srcdir}/pngtest.png"
exec ./pngunknown --strict default=discard "${srcdir}/pngtest.png"

View File

@@ -1,2 +1,2 @@
#!/bin/sh
exec ./pngunknown default=if-safe "${srcdir}/pngtest.png"
exec ./pngunknown --strict default=if-safe "${srcdir}/pngtest.png"

View File

@@ -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"

View File

@@ -1,2 +1,2 @@
#!/bin/sh
exec ./pngunknown sTER=if-safe "${srcdir}/pngtest.png"
exec ./pngunknown --strict sTER=if-safe "${srcdir}/pngtest.png"

View File

@@ -1,2 +1,2 @@
#!/bin/sh
exec ./pngunknown default=save "${srcdir}/pngtest.png"
exec ./pngunknown --strict default=save "${srcdir}/pngtest.png"

View File

@@ -1,2 +1,2 @@
#!/bin/sh
exec ./pngunknown vpAg=if-safe "${srcdir}/pngtest.png"
exec ./pngunknown --strict vpAg=if-safe "${srcdir}/pngtest.png"

View File

@@ -1,2 +1,2 @@
#!/bin/sh
exec ./pngvalid --gamma-16-to-8
exec ./pngvalid --strict --gamma-16-to-8

View File

@@ -1,2 +1,2 @@
#!/bin/sh
exec ./pngvalid --gamma-alpha-mode
exec ./pngvalid --strict --gamma-alpha-mode

View File

@@ -1,2 +1,2 @@
#!/bin/sh
exec ./pngvalid --gamma-background
exec ./pngvalid --strict --gamma-background

View File

@@ -1,2 +1,2 @@
#!/bin/sh
exec ./pngvalid --gamma-alpha-mode --expand16
exec ./pngvalid --strict --gamma-alpha-mode --expand16

View File

@@ -1,2 +1,2 @@
#!/bin/sh
exec ./pngvalid --gamma-background --expand16
exec ./pngvalid --strict --gamma-background --expand16

View File

@@ -1,2 +1,2 @@
#!/bin/sh
exec ./pngvalid --gamma-transform --expand16
exec ./pngvalid --strict --gamma-transform --expand16

View File

@@ -1,2 +1,2 @@
#!/bin/sh
exec ./pngvalid --gamma-sbit
exec ./pngvalid --strict --gamma-sbit

View File

@@ -1,2 +1,2 @@
#!/bin/sh
exec ./pngvalid --gamma-threshold
exec ./pngvalid --strict --gamma-threshold

View File

@@ -1,2 +1,2 @@
#!/bin/sh
exec ./pngvalid --gamma-transform
exec ./pngvalid --strict --gamma-transform

View File

@@ -1,2 +0,0 @@
#!/bin/sh
exec ./pngvalid --size --progressive-read

View File

@@ -1,2 +1,2 @@
#!/bin/sh
exec ./pngvalid --standard --progressive-read --interlace
exec ./pngvalid --strict --standard --progressive-read --interlace

View File

@@ -1,2 +0,0 @@
#!/bin/sh
exec ./pngvalid --transform

View File

@@ -0,0 +1,2 @@
#!/bin/sh
exec ./pngvalid --strict --size --progressive-read

View File

@@ -1,2 +1,2 @@
#!/bin/sh
exec ./pngvalid --standard --progressive-read
exec ./pngvalid --strict --standard --progressive-read

View File

@@ -1,2 +1,2 @@
#!/bin/sh
exec ./pngvalid --standard --progressive-read
exec ./pngvalid --strict --standard

2
tests/pngvalid-transform Executable file
View File

@@ -0,0 +1,2 @@
#!/bin/sh
exec ./pngvalid --strict --transform