mirror of
https://git.code.sf.net/p/libpng/code.git
synced 2025-07-10 18:04:09 +02:00
[libpng16] Enabled parallel tests - back ported from libpng-1.7.
This commit is contained in:
committed by
Glenn Randers-Pehrson
parent
0695fcd834
commit
b724c812ec
13
tests/pngstest
Executable file
13
tests/pngstest
Executable 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
2
tests/pngstest-0g01
Executable file
@@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
exec "${srcdir}/tests/pngstest" 0g01
|
||||
2
tests/pngstest-0g02
Executable file
2
tests/pngstest-0g02
Executable file
@@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
exec "${srcdir}/tests/pngstest" 0g02
|
||||
2
tests/pngstest-0g04
Executable file
2
tests/pngstest-0g04
Executable file
@@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
exec "${srcdir}/tests/pngstest" 0g04
|
||||
2
tests/pngstest-0g08
Executable file
2
tests/pngstest-0g08
Executable file
@@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
exec "${srcdir}/tests/pngstest" 0g08
|
||||
2
tests/pngstest-0g16
Executable file
2
tests/pngstest-0g16
Executable file
@@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
exec "${srcdir}/tests/pngstest" 0g16
|
||||
2
tests/pngstest-2c08
Executable file
2
tests/pngstest-2c08
Executable file
@@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
exec "${srcdir}/tests/pngstest" 2c08
|
||||
2
tests/pngstest-2c16
Executable file
2
tests/pngstest-2c16
Executable file
@@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
exec "${srcdir}/tests/pngstest" 2c16
|
||||
2
tests/pngstest-3p01
Executable file
2
tests/pngstest-3p01
Executable file
@@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
exec "${srcdir}/tests/pngstest" 3p01
|
||||
2
tests/pngstest-3p02
Executable file
2
tests/pngstest-3p02
Executable file
@@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
exec "${srcdir}/tests/pngstest" 3p02
|
||||
2
tests/pngstest-3p04
Executable file
2
tests/pngstest-3p04
Executable file
@@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
exec "${srcdir}/tests/pngstest" 3p04
|
||||
2
tests/pngstest-3p08
Executable file
2
tests/pngstest-3p08
Executable file
@@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
exec "${srcdir}/tests/pngstest" 3p08
|
||||
2
tests/pngstest-4a08
Executable file
2
tests/pngstest-4a08
Executable file
@@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
exec "${srcdir}/tests/pngstest" 4a08
|
||||
2
tests/pngstest-4a16
Executable file
2
tests/pngstest-4a16
Executable file
@@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
exec "${srcdir}/tests/pngstest" 4a16
|
||||
2
tests/pngstest-6a08
Executable file
2
tests/pngstest-6a08
Executable file
@@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
exec "${srcdir}/tests/pngstest" 6a08
|
||||
2
tests/pngstest-6a16
Executable file
2
tests/pngstest-6a16
Executable file
@@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
exec "${srcdir}/tests/pngstest" 6a16
|
||||
14
tests/pngstest-error
Executable file
14
tests/pngstest-error
Executable 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
2
tests/pngtest
Executable file
@@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
exec ./pngtest --strict ${srcdir}/pngtest.png
|
||||
2
tests/pngunknown-IDAT
Executable file
2
tests/pngunknown-IDAT
Executable file
@@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
exec ./pngunknown default=discard IDAT=save "${srcdir}/pngtest.png"
|
||||
2
tests/pngunknown-discard
Executable file
2
tests/pngunknown-discard
Executable file
@@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
exec ./pngunknown default=discard "${srcdir}/pngtest.png"
|
||||
2
tests/pngunknown-if-safe
Executable file
2
tests/pngunknown-if-safe
Executable file
@@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
exec ./pngunknown default=if-safe "${srcdir}/pngtest.png"
|
||||
2
tests/pngunknown-sAPI
Executable file
2
tests/pngunknown-sAPI
Executable 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
2
tests/pngunknown-sTER
Executable file
@@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
exec ./pngunknown sTER=if-safe "${srcdir}/pngtest.png"
|
||||
2
tests/pngunknown-save
Executable file
2
tests/pngunknown-save
Executable file
@@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
exec ./pngunknown default=save "${srcdir}/pngtest.png"
|
||||
2
tests/pngunknown-vpAg
Executable file
2
tests/pngunknown-vpAg
Executable file
@@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
exec ./pngunknown vpAg=if-safe "${srcdir}/pngtest.png"
|
||||
2
tests/pngvalid-gamma-16-to-8
Executable file
2
tests/pngvalid-gamma-16-to-8
Executable file
@@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
exec ./pngvalid --gamma-16-to-8
|
||||
2
tests/pngvalid-gamma-alpha-mode
Executable file
2
tests/pngvalid-gamma-alpha-mode
Executable file
@@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
exec ./pngvalid --gamma-alpha-mode
|
||||
2
tests/pngvalid-gamma-background
Executable file
2
tests/pngvalid-gamma-background
Executable file
@@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
exec ./pngvalid --gamma-background
|
||||
2
tests/pngvalid-gamma-expand16-alpha-mode
Executable file
2
tests/pngvalid-gamma-expand16-alpha-mode
Executable file
@@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
exec ./pngvalid --gamma-alpha-mode --expand16
|
||||
2
tests/pngvalid-gamma-expand16-background
Executable file
2
tests/pngvalid-gamma-expand16-background
Executable file
@@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
exec ./pngvalid --gamma-background --expand16
|
||||
2
tests/pngvalid-gamma-expand16-transform
Executable file
2
tests/pngvalid-gamma-expand16-transform
Executable file
@@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
exec ./pngvalid --gamma-transform --expand16
|
||||
2
tests/pngvalid-gamma-sbit
Executable file
2
tests/pngvalid-gamma-sbit
Executable file
@@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
exec ./pngvalid --gamma-sbit
|
||||
2
tests/pngvalid-gamma-threshold
Executable file
2
tests/pngvalid-gamma-threshold
Executable file
@@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
exec ./pngvalid --gamma-threshold
|
||||
2
tests/pngvalid-gamma-transform
Executable file
2
tests/pngvalid-gamma-transform
Executable file
@@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
exec ./pngvalid --gamma-transform
|
||||
2
tests/pngvalid-progressive-interlace-size
Executable file
2
tests/pngvalid-progressive-interlace-size
Executable file
@@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
exec ./pngvalid --size --progressive-read
|
||||
2
tests/pngvalid-progressive-interlace-standard
Executable file
2
tests/pngvalid-progressive-interlace-standard
Executable file
@@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
exec ./pngvalid --standard --progressive-read --interlace
|
||||
2
tests/pngvalid-progressive-interlace-transform
Executable file
2
tests/pngvalid-progressive-interlace-transform
Executable file
@@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
exec ./pngvalid --transform
|
||||
2
tests/pngvalid-progressive-standard
Executable file
2
tests/pngvalid-progressive-standard
Executable file
@@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
exec ./pngvalid --standard --interlace
|
||||
2
tests/pngvalid-standard
Executable file
2
tests/pngvalid-standard
Executable file
@@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
exec ./pngvalid --standard --progressive-read
|
||||
Reference in New Issue
Block a user