libpng/test-pngstest.sh

25 lines
478 B
Bash
Raw Normal View History

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"
for image in ${srcdir}/contrib/pngsuite/*.png
2011-11-16 15:22:15 -05:00
do
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