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
|
|
|
|
if ./pngstest --log "$@" $opts $image >>pngtest-log.txt 2>&1
|
|
|
|
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
|
|
|
|
|
|
|
|
exit $err
|