[libpng15]` Revised test-pngtest.sh to report FAIL when pngtest fails.

Added "--strict" option to pngtest, to report FAIL when the failure is
only because the resulting valid files are different.
This commit is contained in:
Glenn Randers-Pehrson
2011-09-26 20:57:33 -05:00
parent f573ff7792
commit 8e25a61277
4 changed files with 40 additions and 7 deletions

View File

@@ -5,4 +5,12 @@ echo "Running tests. For details see pngtest-log.txt"
echo "============ pngtest pngtest.png ==============" > pngtest-log.txt
echo "Running test-pngtest.sh"
./pngtest ${srcdir}/pngtest.png >> pngtest-log.txt 2>&1
if ./pngtest --strict ${srcdir}/pngtest.png >> pngtest-log.txt 2>&1
then
echo " PASS: pngtest --strict pngtest.png"
err=0
else
echo " FAIL: pngtest --strict pngtest.png"
err=1
fi
exit $err