libpng/test-pngvalid-simple.sh

23 lines
503 B
Bash
Raw Normal View History

#!/bin/sh
#
# Run a sequence of tests quietly, without the slow
# gamma tests
err=0
echo >> pngtest-log.txt
echo "============ pngvalid-simple.sh ==============" >> pngtest-log.txt
echo "Running test-pngvalid-simple.sh"
for opts in "" --progressive-read --interlace \
"--progressive-read --interlace"
do
if ./pngvalid --nogamma $opts >> pngtest-log.txt
then
echo " PASS:" pngvalid --nogamma $opts
else
echo " FAIL:" pngvalid --nogamma $opts
err=1
fi
done
exit $err