[libpng16] Enabled parallel tests - back ported from libpng-1.7.

This commit is contained in:
John Bowler
2013-02-16 00:01:02 -06:00
committed by Glenn Randers-Pehrson
parent 0695fcd834
commit b724c812ec
60 changed files with 206 additions and 177 deletions

13
tests/pngstest Executable file
View File

@@ -0,0 +1,13 @@
#!/bin/sh
#
# Usage:
#
# tests/pngstest pattern
#
# Runs pngstest on all the contrib/pngsuite/[^x]*${pattern}.png files
# NOTE: pattern is used to name the temporary files pngstest generates
#
pattern="$1"
shift
exec ./pngstest --strict --tmpfile "${pattern}" --log ${1+"$@"}\
"${srcdir}/contrib/pngsuite/"[a-wyz]*${pattern}".png"

2
tests/pngstest-0g01 Executable file
View File

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

2
tests/pngstest-0g02 Executable file
View File

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

2
tests/pngstest-0g04 Executable file
View File

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

2
tests/pngstest-0g08 Executable file
View File

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

2
tests/pngstest-0g16 Executable file
View File

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

2
tests/pngstest-2c08 Executable file
View File

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

2
tests/pngstest-2c16 Executable file
View File

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

2
tests/pngstest-3p01 Executable file
View File

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

2
tests/pngstest-3p02 Executable file
View File

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

2
tests/pngstest-3p04 Executable file
View File

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

2
tests/pngstest-3p08 Executable file
View File

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

2
tests/pngstest-4a08 Executable file
View File

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

2
tests/pngstest-4a16 Executable file
View File

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

2
tests/pngstest-6a08 Executable file
View File

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

2
tests/pngstest-6a16 Executable file
View File

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

14
tests/pngstest-error Executable file
View File

@@ -0,0 +1,14 @@
#!/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/pngtest Executable file
View File

@@ -0,0 +1,2 @@
#!/bin/sh
exec ./pngtest --strict ${srcdir}/pngtest.png

2
tests/pngunknown-IDAT Executable file
View File

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

2
tests/pngunknown-discard Executable file
View File

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

2
tests/pngunknown-if-safe Executable file
View File

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

2
tests/pngunknown-sAPI Executable file
View File

@@ -0,0 +1,2 @@
#!/bin/sh
exec ./pngunknown bKGD=save cHRM=save gAMA=save all=discard iCCP=save sBIT=save sRGB=save "${srcdir}/pngtest.png"

2
tests/pngunknown-sTER Executable file
View File

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

2
tests/pngunknown-save Executable file
View File

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

2
tests/pngunknown-vpAg Executable file
View File

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

2
tests/pngvalid-gamma-16-to-8 Executable file
View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

2
tests/pngvalid-gamma-sbit Executable file
View File

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

2
tests/pngvalid-gamma-threshold Executable file
View File

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

2
tests/pngvalid-gamma-transform Executable file
View File

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

View File

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

View File

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

View File

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

View File

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

2
tests/pngvalid-standard Executable file
View File

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