2010-12-07 23:33:17 -05:00
|
|
|
#!/bin/sh
|
2010-12-08 17:26:21 -05:00
|
|
|
#
|
|
|
|
# Run a sequence of tests quietly, without the slow
|
|
|
|
# gamma tests
|
|
|
|
err=0
|
2010-12-07 23:33:17 -05:00
|
|
|
|
2010-12-08 18:26:50 -05:00
|
|
|
echo >> pngtest-log.txt
|
|
|
|
echo "============ pngvalid-simple.sh ==============" >> pngtest-log.txt
|
|
|
|
echo "Running test-pngvalid-simple.sh"
|
2010-12-19 07:22:23 -05:00
|
|
|
# The options to test are:
|
|
|
|
#
|
|
|
|
# --progressive-read, --interlace on the 'transform' images
|
|
|
|
# --progressive-read on the 'size' images
|
|
|
|
#
|
2010-12-08 17:26:21 -05:00
|
|
|
for opts in "" --progressive-read --interlace \
|
2010-12-19 07:22:23 -05:00
|
|
|
"--progressive-read --interlace" "--nostandard --size" \
|
|
|
|
"--nostandard --size --progressive-read"
|
2010-12-08 17:26:21 -05:00
|
|
|
do
|
2010-12-08 21:33:39 -05:00
|
|
|
if ./pngvalid --nogamma $opts >> pngtest-log.txt 2>&1
|
2010-12-08 17:26:21 -05:00
|
|
|
then
|
2010-12-08 18:26:50 -05:00
|
|
|
echo " PASS:" pngvalid --nogamma $opts
|
2010-12-08 17:26:21 -05:00
|
|
|
else
|
2010-12-08 18:26:50 -05:00
|
|
|
echo " FAIL:" pngvalid --nogamma $opts
|
2010-12-08 17:26:21 -05:00
|
|
|
err=1
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
|
|
|
exit $err
|