summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGlenn Randers-Pehrson <glennrp at users.sourceforge.net>2013-03-02 14:58:22 -0600
committerGlenn Randers-Pehrson <glennrp at users.sourceforge.net>2013-03-02 15:03:15 -0600
commit871b1d0fabee7995383cd6941362b68a03f86e25 (patch)
tree5b685f9d4c874b4e435db96b66cd20654b8b6ddf /tests
parentf3af706c2a489333f816843bc986a6bafe47719b (diff)
downloadlibpng-871b1d0fabee7995383cd6941362b68a03f86e25.tar.gz
[libpng16] Bump version to 1.6.1beta05
Diffstat (limited to 'tests')
-rwxr-xr-xtests/pngstest13
-rwxr-xr-xtests/pngstest-0g012
-rwxr-xr-xtests/pngstest-0g022
-rwxr-xr-xtests/pngstest-0g042
-rwxr-xr-xtests/pngstest-0g082
-rwxr-xr-xtests/pngstest-0g162
-rwxr-xr-xtests/pngstest-2c082
-rwxr-xr-xtests/pngstest-2c162
-rwxr-xr-xtests/pngstest-3p012
-rwxr-xr-xtests/pngstest-3p022
-rwxr-xr-xtests/pngstest-3p042
-rwxr-xr-xtests/pngstest-3p082
-rwxr-xr-xtests/pngstest-4a082
-rwxr-xr-xtests/pngstest-4a162
-rwxr-xr-xtests/pngstest-6a082
-rwxr-xr-xtests/pngstest-6a162
-rwxr-xr-xtests/pngstest-error14
-rwxr-xr-xtests/pngtest2
-rwxr-xr-xtests/pngunknown-IDAT2
-rwxr-xr-xtests/pngunknown-discard2
-rwxr-xr-xtests/pngunknown-if-safe2
-rwxr-xr-xtests/pngunknown-sAPI2
-rwxr-xr-xtests/pngunknown-sTER2
-rwxr-xr-xtests/pngunknown-save2
-rwxr-xr-xtests/pngunknown-vpAg2
-rwxr-xr-xtests/pngvalid-gamma-16-to-82
-rwxr-xr-xtests/pngvalid-gamma-alpha-mode2
-rwxr-xr-xtests/pngvalid-gamma-background2
-rwxr-xr-xtests/pngvalid-gamma-expand16-alpha-mode2
-rwxr-xr-xtests/pngvalid-gamma-expand16-background2
-rwxr-xr-xtests/pngvalid-gamma-expand16-transform2
-rwxr-xr-xtests/pngvalid-gamma-sbit2
-rwxr-xr-xtests/pngvalid-gamma-threshold2
-rwxr-xr-xtests/pngvalid-gamma-transform2
-rwxr-xr-xtests/pngvalid-progressive-interlace-size2
-rwxr-xr-xtests/pngvalid-progressive-interlace-standard2
-rwxr-xr-xtests/pngvalid-progressive-interlace-transform2
-rwxr-xr-xtests/pngvalid-progressive-standard2
-rwxr-xr-xtests/pngvalid-standard2
39 files changed, 101 insertions, 0 deletions
diff --git a/tests/pngstest b/tests/pngstest
new file mode 100755
index 000000000..f5cbdbcae
--- /dev/null
+++ b/tests/pngstest
@@ -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"
diff --git a/tests/pngstest-0g01 b/tests/pngstest-0g01
new file mode 100755
index 000000000..4a495ccb8
--- /dev/null
+++ b/tests/pngstest-0g01
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec "${srcdir}/tests/pngstest" 0g01
diff --git a/tests/pngstest-0g02 b/tests/pngstest-0g02
new file mode 100755
index 000000000..1a607c8e1
--- /dev/null
+++ b/tests/pngstest-0g02
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec "${srcdir}/tests/pngstest" 0g02
diff --git a/tests/pngstest-0g04 b/tests/pngstest-0g04
new file mode 100755
index 000000000..595ba01e3
--- /dev/null
+++ b/tests/pngstest-0g04
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec "${srcdir}/tests/pngstest" 0g04
diff --git a/tests/pngstest-0g08 b/tests/pngstest-0g08
new file mode 100755
index 000000000..21a8b4bb4
--- /dev/null
+++ b/tests/pngstest-0g08
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec "${srcdir}/tests/pngstest" 0g08
diff --git a/tests/pngstest-0g16 b/tests/pngstest-0g16
new file mode 100755
index 000000000..0104c37bd
--- /dev/null
+++ b/tests/pngstest-0g16
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec "${srcdir}/tests/pngstest" 0g16
diff --git a/tests/pngstest-2c08 b/tests/pngstest-2c08
new file mode 100755
index 000000000..9e0de6f1e
--- /dev/null
+++ b/tests/pngstest-2c08
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec "${srcdir}/tests/pngstest" 2c08
diff --git a/tests/pngstest-2c16 b/tests/pngstest-2c16
new file mode 100755
index 000000000..c1b88b04e
--- /dev/null
+++ b/tests/pngstest-2c16
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec "${srcdir}/tests/pngstest" 2c16
diff --git a/tests/pngstest-3p01 b/tests/pngstest-3p01
new file mode 100755
index 000000000..6aeb8d06c
--- /dev/null
+++ b/tests/pngstest-3p01
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec "${srcdir}/tests/pngstest" 3p01
diff --git a/tests/pngstest-3p02 b/tests/pngstest-3p02
new file mode 100755
index 000000000..770a75c0b
--- /dev/null
+++ b/tests/pngstest-3p02
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec "${srcdir}/tests/pngstest" 3p02
diff --git a/tests/pngstest-3p04 b/tests/pngstest-3p04
new file mode 100755
index 000000000..957d6ae34
--- /dev/null
+++ b/tests/pngstest-3p04
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec "${srcdir}/tests/pngstest" 3p04
diff --git a/tests/pngstest-3p08 b/tests/pngstest-3p08
new file mode 100755
index 000000000..d0947afde
--- /dev/null
+++ b/tests/pngstest-3p08
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec "${srcdir}/tests/pngstest" 3p08
diff --git a/tests/pngstest-4a08 b/tests/pngstest-4a08
new file mode 100755
index 000000000..2fab57f01
--- /dev/null
+++ b/tests/pngstest-4a08
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec "${srcdir}/tests/pngstest" 4a08
diff --git a/tests/pngstest-4a16 b/tests/pngstest-4a16
new file mode 100755
index 000000000..e4ad5aa9a
--- /dev/null
+++ b/tests/pngstest-4a16
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec "${srcdir}/tests/pngstest" 4a16
diff --git a/tests/pngstest-6a08 b/tests/pngstest-6a08
new file mode 100755
index 000000000..aa6c03c3d
--- /dev/null
+++ b/tests/pngstest-6a08
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec "${srcdir}/tests/pngstest" 6a08
diff --git a/tests/pngstest-6a16 b/tests/pngstest-6a16
new file mode 100755
index 000000000..545b1b394
--- /dev/null
+++ b/tests/pngstest-6a16
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec "${srcdir}/tests/pngstest" 6a16
diff --git a/tests/pngstest-error b/tests/pngstest-error
new file mode 100755
index 000000000..ebf3a7b59
--- /dev/null
+++ b/tests/pngstest-error
@@ -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
diff --git a/tests/pngtest b/tests/pngtest
new file mode 100755
index 000000000..813973b23
--- /dev/null
+++ b/tests/pngtest
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec ./pngtest --strict ${srcdir}/pngtest.png
diff --git a/tests/pngunknown-IDAT b/tests/pngunknown-IDAT
new file mode 100755
index 000000000..71d915a9c
--- /dev/null
+++ b/tests/pngunknown-IDAT
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec ./pngunknown default=discard IDAT=save "${srcdir}/pngtest.png"
diff --git a/tests/pngunknown-discard b/tests/pngunknown-discard
new file mode 100755
index 000000000..f1f02d4c7
--- /dev/null
+++ b/tests/pngunknown-discard
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec ./pngunknown default=discard "${srcdir}/pngtest.png"
diff --git a/tests/pngunknown-if-safe b/tests/pngunknown-if-safe
new file mode 100755
index 000000000..7c52824f8
--- /dev/null
+++ b/tests/pngunknown-if-safe
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec ./pngunknown default=if-safe "${srcdir}/pngtest.png"
diff --git a/tests/pngunknown-sAPI b/tests/pngunknown-sAPI
new file mode 100755
index 000000000..e087ef25a
--- /dev/null
+++ b/tests/pngunknown-sAPI
@@ -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"
diff --git a/tests/pngunknown-sTER b/tests/pngunknown-sTER
new file mode 100755
index 000000000..1b945dc34
--- /dev/null
+++ b/tests/pngunknown-sTER
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec ./pngunknown sTER=if-safe "${srcdir}/pngtest.png"
diff --git a/tests/pngunknown-save b/tests/pngunknown-save
new file mode 100755
index 000000000..ae849308c
--- /dev/null
+++ b/tests/pngunknown-save
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec ./pngunknown default=save "${srcdir}/pngtest.png"
diff --git a/tests/pngunknown-vpAg b/tests/pngunknown-vpAg
new file mode 100755
index 000000000..396c6e40d
--- /dev/null
+++ b/tests/pngunknown-vpAg
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec ./pngunknown vpAg=if-safe "${srcdir}/pngtest.png"
diff --git a/tests/pngvalid-gamma-16-to-8 b/tests/pngvalid-gamma-16-to-8
new file mode 100755
index 000000000..b32233829
--- /dev/null
+++ b/tests/pngvalid-gamma-16-to-8
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec ./pngvalid --gamma-16-to-8
diff --git a/tests/pngvalid-gamma-alpha-mode b/tests/pngvalid-gamma-alpha-mode
new file mode 100755
index 000000000..ed04fa511
--- /dev/null
+++ b/tests/pngvalid-gamma-alpha-mode
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec ./pngvalid --gamma-alpha-mode
diff --git a/tests/pngvalid-gamma-background b/tests/pngvalid-gamma-background
new file mode 100755
index 000000000..658e5fe4d
--- /dev/null
+++ b/tests/pngvalid-gamma-background
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec ./pngvalid --gamma-background
diff --git a/tests/pngvalid-gamma-expand16-alpha-mode b/tests/pngvalid-gamma-expand16-alpha-mode
new file mode 100755
index 000000000..bdda566a0
--- /dev/null
+++ b/tests/pngvalid-gamma-expand16-alpha-mode
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec ./pngvalid --gamma-alpha-mode --expand16
diff --git a/tests/pngvalid-gamma-expand16-background b/tests/pngvalid-gamma-expand16-background
new file mode 100755
index 000000000..f993c21ae
--- /dev/null
+++ b/tests/pngvalid-gamma-expand16-background
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec ./pngvalid --gamma-background --expand16
diff --git a/tests/pngvalid-gamma-expand16-transform b/tests/pngvalid-gamma-expand16-transform
new file mode 100755
index 000000000..f462534e8
--- /dev/null
+++ b/tests/pngvalid-gamma-expand16-transform
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec ./pngvalid --gamma-transform --expand16
diff --git a/tests/pngvalid-gamma-sbit b/tests/pngvalid-gamma-sbit
new file mode 100755
index 000000000..aa82fe04f
--- /dev/null
+++ b/tests/pngvalid-gamma-sbit
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec ./pngvalid --gamma-sbit
diff --git a/tests/pngvalid-gamma-threshold b/tests/pngvalid-gamma-threshold
new file mode 100755
index 000000000..2cfca9146
--- /dev/null
+++ b/tests/pngvalid-gamma-threshold
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec ./pngvalid --gamma-threshold
diff --git a/tests/pngvalid-gamma-transform b/tests/pngvalid-gamma-transform
new file mode 100755
index 000000000..a71ab4d5e
--- /dev/null
+++ b/tests/pngvalid-gamma-transform
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec ./pngvalid --gamma-transform
diff --git a/tests/pngvalid-progressive-interlace-size b/tests/pngvalid-progressive-interlace-size
new file mode 100755
index 000000000..a31b28355
--- /dev/null
+++ b/tests/pngvalid-progressive-interlace-size
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec ./pngvalid --size --progressive-read
diff --git a/tests/pngvalid-progressive-interlace-standard b/tests/pngvalid-progressive-interlace-standard
new file mode 100755
index 000000000..59042eb17
--- /dev/null
+++ b/tests/pngvalid-progressive-interlace-standard
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec ./pngvalid --standard --progressive-read --interlace
diff --git a/tests/pngvalid-progressive-interlace-transform b/tests/pngvalid-progressive-interlace-transform
new file mode 100755
index 000000000..edf9a8a79
--- /dev/null
+++ b/tests/pngvalid-progressive-interlace-transform
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec ./pngvalid --transform
diff --git a/tests/pngvalid-progressive-standard b/tests/pngvalid-progressive-standard
new file mode 100755
index 000000000..20ecd1583
--- /dev/null
+++ b/tests/pngvalid-progressive-standard
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec ./pngvalid --standard --interlace
diff --git a/tests/pngvalid-standard b/tests/pngvalid-standard
new file mode 100755
index 000000000..aa1b4b4db
--- /dev/null
+++ b/tests/pngvalid-standard
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec ./pngvalid --standard --progressive-read