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
|
|
|
|
|
|
|
|
echo "Running test-pngstest.sh on contrib/pngsuite/*.png"
|
2012-01-29 00:19:42 -05:00
|
|
|
for opts in ""
|
2011-11-16 15:22:15 -05:00
|
|
|
do
|
2012-01-28 02:07:34 -05:00
|
|
|
if ./pngstest --log "$@" $opts ${srcdir}/contrib/pngsuite/bas*.png \
|
2011-11-16 15:22:15 -05:00
|
|
|
>>pngtest-log.txt 2>&1
|
|
|
|
then
|
2012-01-28 02:07:34 -05:00
|
|
|
echo " PASS: pngstest $opts (basic images)"
|
2011-11-16 15:22:15 -05:00
|
|
|
else
|
2012-01-28 02:07:34 -05:00
|
|
|
echo " FAIL: pngstest $opts (basic images)"
|
|
|
|
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)"
|
2011-11-16 15:22:15 -05:00
|
|
|
err=1
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
|
|
|
exit $err
|