[libpng17] Enable parallel tests and rearrange TESTS order to take advantage of

the massive speed improvements use a make capable of parallel builds
on a multi-CPU machine and pass the right arguments to make (-j10000
for GNU make) to get the build to run in parallel.
This commit is contained in:
Glenn Randers-Pehrson
2013-02-07 08:10:38 -06:00
parent bf7084b80d
commit b10867cdc2
48 changed files with 492 additions and 151 deletions

23
tests/pngstest-0g01 Executable file
View File

@@ -0,0 +1,23 @@
#!/bin/sh
#
# The name of the script should be:
#
# pngstest-....
#
# Where the last four characters are the suffix of a PNGSuite test file, or
# -error, in which case the x files are used.
case "$0" in
*/pngstest-????)
suffix="${0##*/pngstest\-}"
exec ./pngstest --tmpfile "error" "${srcdir}/contrib/pngsuite/"[^x]*"${suffix}.png";;
*/pngstest-error)
# Test files may not exist, fake a failure if not
set "${srcdir}/contrib/pngsuite/"x*"${suffix}.png"
if test $# -ne 1 -o $1 != "${srcdir}/contrib/pngsuite/x*${suffix}.png"
then
exec ./pngstest --tmpfile "${suffix}" "${srcdir}/contrib/pngsuite/"x*"${suffix}.png"
else
exit 1
fi;;
esac

23
tests/pngstest-0g02 Executable file
View File

@@ -0,0 +1,23 @@
#!/bin/sh
#
# The name of the script should be:
#
# pngstest-....
#
# Where the last four characters are the suffix of a PNGSuite test file, or
# -error, in which case the x files are used.
case "$0" in
*/pngstest-????)
suffix="${0##*}"
exec ./pngstest --tmpfile "error" "${srcdir}/contrib/pngsuite/"[^x]*"${suffix}.png";;
*/pngstest-error)
# Test files may not exist, fake a failure if not
set "${srcdir}/contrib/pngsuite/"x*"${suffix}.png"
if test $# -ne 1 -o $1 != "${srcdir}/contrib/pngsuite/x*${suffix}.png"
then
exec ./pngstest --tmpfile "${suffix}" "${srcdir}/contrib/pngsuite/"x*"${suffix}.png"
else
exit 1
fi;;
esac

23
tests/pngstest-0g04 Executable file
View File

@@ -0,0 +1,23 @@
#!/bin/sh
#
# The name of the script should be:
#
# pngstest-....
#
# Where the last four characters are the suffix of a PNGSuite test file, or
# -error, in which case the x files are used.
case "$0" in
*/pngstest-????)
suffix="${0##*/pngstest\-}"
exec ./pngstest --tmpfile "error" "${srcdir}/contrib/pngsuite/"[^x]*"${suffix}.png";;
*/pngstest-error)
# Test files may not exist, fake a failure if not
set "${srcdir}/contrib/pngsuite/"x*"${suffix}.png"
if test $# -ne 1 -o $1 != "${srcdir}/contrib/pngsuite/x*${suffix}.png"
then
exec ./pngstest --tmpfile "${suffix}" "${srcdir}/contrib/pngsuite/"x*"${suffix}.png"
else
exit 1
fi;;
esac

23
tests/pngstest-0g08 Executable file
View File

@@ -0,0 +1,23 @@
#!/bin/sh
#
# The name of the script should be:
#
# pngstest-....
#
# Where the last four characters are the suffix of a PNGSuite test file, or
# -error, in which case the x files are used.
case "$0" in
*/pngstest-????)
suffix="${0##*/pngstest\-}"
exec ./pngstest --tmpfile "error" "${srcdir}/contrib/pngsuite/"[^x]*"${suffix}.png";;
*/pngstest-error)
# Test files may not exist, fake a failure if not
set "${srcdir}/contrib/pngsuite/"x*"${suffix}.png"
if test $# -ne 1 -o $1 != "${srcdir}/contrib/pngsuite/x*${suffix}.png"
then
exec ./pngstest --tmpfile "${suffix}" "${srcdir}/contrib/pngsuite/"x*"${suffix}.png"
else
exit 1
fi;;
esac

23
tests/pngstest-0g16 Executable file
View File

@@ -0,0 +1,23 @@
#!/bin/sh
#
# The name of the script should be:
#
# pngstest-....
#
# Where the last four characters are the suffix of a PNGSuite test file, or
# -error, in which case the x files are used.
case "$0" in
*/pngstest-????)
suffix="${0##*/pngstest\-}"
exec ./pngstest --tmpfile "error" "${srcdir}/contrib/pngsuite/"[^x]*"${suffix}.png";;
*/pngstest-error)
# Test files may not exist, fake a failure if not
set "${srcdir}/contrib/pngsuite/"x*"${suffix}.png"
if test $# -ne 1 -o $1 != "${srcdir}/contrib/pngsuite/x*${suffix}.png"
then
exec ./pngstest --tmpfile "${suffix}" "${srcdir}/contrib/pngsuite/"x*"${suffix}.png"
else
exit 1
fi;;
esac

23
tests/pngstest-2c08 Executable file
View File

@@ -0,0 +1,23 @@
#!/bin/sh
#
# The name of the script should be:
#
# pngstest-....
#
# Where the last four characters are the suffix of a PNGSuite test file, or
# -error, in which case the x files are used.
case "$0" in
*/pngstest-????)
suffix="${0##*/pngstest\-}"
exec ./pngstest --tmpfile "error" "${srcdir}/contrib/pngsuite/"[^x]*"${suffix}.png";;
*/pngstest-error)
# Test files may not exist, fake a failure if not
set "${srcdir}/contrib/pngsuite/"x*"${suffix}.png"
if test $# -ne 1 -o $1 != "${srcdir}/contrib/pngsuite/x*${suffix}.png"
then
exec ./pngstest --tmpfile "${suffix}" "${srcdir}/contrib/pngsuite/"x*"${suffix}.png"
else
exit 1
fi;;
esac

23
tests/pngstest-2c16 Executable file
View File

@@ -0,0 +1,23 @@
#!/bin/sh
#
# The name of the script should be:
#
# pngstest-....
#
# Where the last four characters are the suffix of a PNGSuite test file, or
# -error, in which case the x files are used.
case "$0" in
*/pngstest-????)
suffix="${0##*/pngstest\-}"
exec ./pngstest --tmpfile "error" "${srcdir}/contrib/pngsuite/"[^x]*"${suffix}.png";;
*/pngstest-error)
# Test files may not exist, fake a failure if not
set "${srcdir}/contrib/pngsuite/"x*"${suffix}.png"
if test $# -ne 1 -o $1 != "${srcdir}/contrib/pngsuite/x*${suffix}.png"
then
exec ./pngstest --tmpfile "${suffix}" "${srcdir}/contrib/pngsuite/"x*"${suffix}.png"
else
exit 1
fi;;
esac

23
tests/pngstest-3p01 Executable file
View File

@@ -0,0 +1,23 @@
#!/bin/sh
#
# The name of the script should be:
#
# pngstest-....
#
# Where the last four characters are the suffix of a PNGSuite test file, or
# -error, in which case the x files are used.
case "$0" in
*/pngstest-????)
suffix="${0##*/pngstest\-}"
exec ./pngstest --tmpfile "error" "${srcdir}/contrib/pngsuite/"[^x]*"${suffix}.png";;
*/pngstest-error)
# Test files may not exist, fake a failure if not
set "${srcdir}/contrib/pngsuite/"x*"${suffix}.png"
if test $# -ne 1 -o $1 != "${srcdir}/contrib/pngsuite/x*${suffix}.png"
then
exec ./pngstest --tmpfile "${suffix}" "${srcdir}/contrib/pngsuite/"x*"${suffix}.png"
else
exit 1
fi;;
esac

23
tests/pngstest-3p02 Executable file
View File

@@ -0,0 +1,23 @@
#!/bin/sh
#
# The name of the script should be:
#
# pngstest-....
#
# Where the last four characters are the suffix of a PNGSuite test file, or
# -error, in which case the x files are used.
case "$0" in
*/pngstest-????)
suffix="${0##*/pngstest\-}"
exec ./pngstest --tmpfile "error" "${srcdir}/contrib/pngsuite/"[^x]*"${suffix}.png";;
*/pngstest-error)
# Test files may not exist, fake a failure if not
set "${srcdir}/contrib/pngsuite/"x*"${suffix}.png"
if test $# -ne 1 -o $1 != "${srcdir}/contrib/pngsuite/x*${suffix}.png"
then
exec ./pngstest --tmpfile "${suffix}" "${srcdir}/contrib/pngsuite/"x*"${suffix}.png"
else
exit 1
fi;;
esac

23
tests/pngstest-3p04 Executable file
View File

@@ -0,0 +1,23 @@
#!/bin/sh
#
# The name of the script should be:
#
# pngstest-....
#
# Where the last four characters are the suffix of a PNGSuite test file, or
# -error, in which case the x files are used.
case "$0" in
*/pngstest-????)
suffix="${0##*/pngstest\-}"
exec ./pngstest --tmpfile "error" "${srcdir}/contrib/pngsuite/"[^x]*"${suffix}.png";;
*/pngstest-error)
# Test files may not exist, fake a failure if not
set "${srcdir}/contrib/pngsuite/"x*"${suffix}.png"
if test $# -ne 1 -o $1 != "${srcdir}/contrib/pngsuite/x*${suffix}.png"
then
exec ./pngstest --tmpfile "${suffix}" "${srcdir}/contrib/pngsuite/"x*"${suffix}.png"
else
exit 1
fi;;
esac

23
tests/pngstest-3p08 Executable file
View File

@@ -0,0 +1,23 @@
#!/bin/sh
#
# The name of the script should be:
#
# pngstest-....
#
# Where the last four characters are the suffix of a PNGSuite test file, or
# -error, in which case the x files are used.
case "$0" in
*/pngstest-????)
suffix="${0##*/pngstest\-}"
exec ./pngstest --tmpfile "error" "${srcdir}/contrib/pngsuite/"[^x]*"${suffix}.png";;
*/pngstest-error)
# Test files may not exist, fake a failure if not
set "${srcdir}/contrib/pngsuite/"x*"${suffix}.png"
if test $# -ne 1 -o $1 != "${srcdir}/contrib/pngsuite/x*${suffix}.png"
then
exec ./pngstest --tmpfile "${suffix}" "${srcdir}/contrib/pngsuite/"x*"${suffix}.png"
else
exit 1
fi;;
esac

23
tests/pngstest-4a08 Executable file
View File

@@ -0,0 +1,23 @@
#!/bin/sh
#
# The name of the script should be:
#
# pngstest-....
#
# Where the last four characters are the suffix of a PNGSuite test file, or
# -error, in which case the x files are used.
case "$0" in
*/pngstest-????)
suffix="${0##*/pngstest\-}"
exec ./pngstest --tmpfile "error" "${srcdir}/contrib/pngsuite/"[^x]*"${suffix}.png";;
*/pngstest-error)
# Test files may not exist, fake a failure if not
set "${srcdir}/contrib/pngsuite/"x*"${suffix}.png"
if test $# -ne 1 -o $1 != "${srcdir}/contrib/pngsuite/x*${suffix}.png"
then
exec ./pngstest --tmpfile "${suffix}" "${srcdir}/contrib/pngsuite/"x*"${suffix}.png"
else
exit 1
fi;;
esac

23
tests/pngstest-4a16 Executable file
View File

@@ -0,0 +1,23 @@
#!/bin/sh
#
# The name of the script should be:
#
# pngstest-....
#
# Where the last four characters are the suffix of a PNGSuite test file, or
# -error, in which case the x files are used.
case "$0" in
*/pngstest-????)
suffix="${0##*/pngstest\-}"
exec ./pngstest --tmpfile "error" "${srcdir}/contrib/pngsuite/"[^x]*"${suffix}.png";;
*/pngstest-error)
# Test files may not exist, fake a failure if not
set "${srcdir}/contrib/pngsuite/"x*"${suffix}.png"
if test $# -ne 1 -o $1 != "${srcdir}/contrib/pngsuite/x*${suffix}.png"
then
exec ./pngstest --tmpfile "${suffix}" "${srcdir}/contrib/pngsuite/"x*"${suffix}.png"
else
exit 1
fi;;
esac

23
tests/pngstest-6a08 Executable file
View File

@@ -0,0 +1,23 @@
#!/bin/sh
#
# The name of the script should be:
#
# pngstest-....
#
# Where the last four characters are the suffix of a PNGSuite test file, or
# -error, in which case the x files are used.
case "$0" in
*/pngstest-????)
suffix="${0##*/pngstest\-}"
exec ./pngstest --tmpfile "error" "${srcdir}/contrib/pngsuite/"[^x]*"${suffix}.png";;
*/pngstest-error)
# Test files may not exist, fake a failure if not
set "${srcdir}/contrib/pngsuite/"x*"${suffix}.png"
if test $# -ne 1 -o $1 != "${srcdir}/contrib/pngsuite/x*${suffix}.png"
then
exec ./pngstest --tmpfile "${suffix}" "${srcdir}/contrib/pngsuite/"x*"${suffix}.png"
else
exit 1
fi;;
esac

23
tests/pngstest-6a16 Executable file
View File

@@ -0,0 +1,23 @@
#!/bin/sh
#
# The name of the script should be:
#
# pngstest-....
#
# Where the last four characters are the suffix of a PNGSuite test file, or
# -error, in which case the x files are used.
case "$0" in
*/pngstest-????)
suffix="${0##*/pngstest\-}"
exec ./pngstest --tmpfile "error" "${srcdir}/contrib/pngsuite/"[^x]*"${suffix}.png";;
*/pngstest-error)
# Test files may not exist, fake a failure if not
set "${srcdir}/contrib/pngsuite/"x*"${suffix}.png"
if test $# -ne 1 -o $1 != "${srcdir}/contrib/pngsuite/x*${suffix}.png"
then
exec ./pngstest --tmpfile "${suffix}" "${srcdir}/contrib/pngsuite/"x*"${suffix}.png"
else
exit 1
fi;;
esac

23
tests/pngstest-error Executable file
View File

@@ -0,0 +1,23 @@
#!/bin/sh
#
# The name of the script should be:
#
# pngstest-....
#
# Where the last four characters are the suffix of a PNGSuite test file, or
# -error, in which case the x files are used.
case "$0" in
*/pngstest-????)
suffix="${0##*/pngstest\-}"
exec ./pngstest --tmpfile "error" "${srcdir}/contrib/pngsuite/"[^x]*"${suffix}.png";;
*/pngstest-error)
# Test files may not exist, fake a failure if not
set "${srcdir}/contrib/pngsuite/"x*"${suffix}.png"
if test $# -ne 1 -o $1 != "${srcdir}/contrib/pngsuite/x*${suffix}.png"
then
exec ./pngstest --tmpfile "${suffix}" "${srcdir}/contrib/pngsuite/"x*"${suffix}.png"
else
exit 1
fi;;
esac

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