2011-11-16 15:22:15 -05:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# Run the simplified API tests
|
|
|
|
err=0
|
|
|
|
|
|
|
|
echo >> pngtest-log.txt
|
|
|
|
echo "============ pngstest.sh ==============" >> pngtest-log.txt
|
|
|
|
|
2012-02-04 08:35:34 -05:00
|
|
|
echo "Running test-pngstest.sh"
|
|
|
|
for image in ${srcdir}/contrib/pngsuite/*.png
|
2011-11-16 15:22:15 -05:00
|
|
|
do
|
2012-02-04 08:35:34 -05:00
|
|
|
for opts in ""
|
|
|
|
do
|
2012-03-18 23:46:28 -04:00
|
|
|
if ./pngstest --strict --log "$@" $opts $image >>pngtest-log.txt 2>&1
|
2012-02-04 08:35:34 -05:00
|
|
|
then
|
|
|
|
echo " PASS: pngstest $opts $image"
|
|
|
|
else
|
|
|
|
echo " FAIL: pngstest $opts $image"
|
|
|
|
err=1
|
|
|
|
fi
|
|
|
|
done
|
2011-11-16 15:22:15 -05:00
|
|
|
done
|
2012-03-02 14:13:15 -05:00
|
|
|
|
2011-11-16 15:22:15 -05:00
|
|
|
exit $err
|