summaryrefslogtreecommitdiff
path: root/contrib/libtests/test-pngstest.sh
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/libtests/test-pngstest.sh')
-rwxr-xr-xcontrib/libtests/test-pngstest.sh24
1 files changed, 24 insertions, 0 deletions
diff --git a/contrib/libtests/test-pngstest.sh b/contrib/libtests/test-pngstest.sh
new file mode 100755
index 000000000..e977a5b50
--- /dev/null
+++ b/contrib/libtests/test-pngstest.sh
@@ -0,0 +1,24 @@
+#!/bin/sh
+#
+# Run the simplified API tests
+err=0
+
+echo >> pngtest-log.txt
+echo "============ pngstest.sh ==============" >> pngtest-log.txt
+
+echo "Running test-pngstest.sh"
+for image in ${srcdir}/contrib/pngsuite/*.png
+do
+ for opts in ""
+ do
+ if ./pngstest --strict --log "$@" $opts $image >>pngtest-log.txt 2>&1
+ then
+ echo " PASS: pngstest $opts $image"
+ else
+ echo " FAIL: pngstest $opts $image"
+ err=1
+ fi
+ done
+done
+
+exit $err