[libpng16] Revised test-pngstest.sh to report PASS/FAIL for each image.

This commit is contained in:
Glenn Randers-Pehrson 2012-02-04 07:35:34 -06:00
parent c8348f80d5
commit ce3c7330ba
3 changed files with 15 additions and 18 deletions

View File

@ -177,6 +177,7 @@ Version 1.6.0beta10 [February 3, 2012]
Version 1.6.0beta11 [February 4, 2012] Version 1.6.0beta11 [February 4, 2012]
Fix character count in pngstest command in projects/owatcom/pngstest.tgt Fix character count in pngstest command in projects/owatcom/pngstest.tgt
Revised test-pngstest.sh to report PASS/FAIL for each image.
Send comments/corrections/commendations to png-mng-implement at lists.sf.net Send comments/corrections/commendations to png-mng-implement at lists.sf.net
(subscription required; visit (subscription required; visit

View File

@ -3925,9 +3925,11 @@ Version 1.6.0beta10 [February 3, 2012]
Added Z_SOLO for zlib-1.2.6+ and correct pngstest tests Added Z_SOLO for zlib-1.2.6+ and correct pngstest tests
Updated list of test images in CMakeLists.txt Updated list of test images in CMakeLists.txt
Updated the prebuilt configure files to current condition. Updated the prebuilt configure files to current condition.
Revised INSTALL information about autogen.sh; it works in tar distributions.
Version 1.6.0beta11 [February 4, 2012] Version 1.6.0beta11 [February 4, 2012]
Fix character count in pngstest command in projects/owatcom/pngstest.tgt Fix character count in pngstest command in projects/owatcom/pngstest.tgt
Revised test-pngstest.sh to report PASS/FAIL for each image.
Send comments/corrections/commendations to png-mng-implement at lists.sf.net Send comments/corrections/commendations to png-mng-implement at lists.sf.net
(subscription required; visit (subscription required; visit

View File

@ -6,25 +6,19 @@ err=0
echo >> pngtest-log.txt echo >> pngtest-log.txt
echo "============ pngstest.sh ==============" >> pngtest-log.txt echo "============ pngstest.sh ==============" >> pngtest-log.txt
echo "Running test-pngstest.sh on contrib/pngsuite/*.png" echo "Running test-pngstest.sh"
for image in ${srcdir}/contrib/pngsuite/*.png
do
for opts in "" for opts in ""
do do
if ./pngstest --log "$@" $opts ${srcdir}/contrib/pngsuite/bas*.png \ if ./pngstest --log "$@" $opts $image >>pngtest-log.txt 2>&1
>>pngtest-log.txt 2>&1
then then
echo " PASS: pngstest $opts (basic images)" echo " PASS: pngstest $opts $image"
else else
echo " FAIL: pngstest $opts (basic images)" echo " FAIL: pngstest $opts $image"
err=1
fi
if ./pngstest --log "$@" $opts ${srcdir}/contrib/pngsuite/ft*.png \
>>pngtest-log.txt 2>&1
then
echo " PASS: pngstest $opts (transparent images)"
else
echo " FAIL: pngstest $opts (transparent images)"
err=1 err=1
fi fi
done done
done
exit $err exit $err