From 36f588435974cb0f0f8e371de7152ff4e04d2641 Mon Sep 17 00:00:00 2001 From: Glenn Randers-Pehrson Date: Wed, 16 Nov 2011 14:22:15 -0600 Subject: [PATCH] [libpng15] Added test-pngstest.sh --- test-pngstest.sh | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100755 test-pngstest.sh diff --git a/test-pngstest.sh b/test-pngstest.sh new file mode 100755 index 000000000..e1d667497 --- /dev/null +++ b/test-pngstest.sh @@ -0,0 +1,22 @@ +#!/bin/sh +# +# Run the simplified API tests +err=0 + +echo >> pngtest-log.txt +echo "============ pngstest.sh ==============" >> pngtest-log.txt + +echo "Running test-pngstest.sh on contrib/pngsuite/*.png" +for opts in "" "--background" +do + if ./pngstest --log "$@" $opts ${srcdir}/contrib/pngsuite/*.png \ + >>pngtest-log.txt 2>&1 + then + echo " PASS: pngstest $opts" + else + echo " FAIL: pngstest $opts" + err=1 + fi +done + +exit $err