2010-12-08 04:33:17 +00:00
|
|
|
#!/bin/sh
|
2010-12-08 22:26:21 +00:00
|
|
|
#
|
|
|
|
# Run a sequence of tests quietly, without the slow
|
|
|
|
# gamma tests
|
|
|
|
err=0
|
2010-12-08 04:33:17 +00:00
|
|
|
|
2010-12-08 23:26:50 +00:00
|
|
|
echo >> pngtest-log.txt
|
|
|
|
echo "============ pngvalid-simple.sh ==============" >> pngtest-log.txt
|
|
|
|
echo "Running test-pngvalid-simple.sh"
|
2010-12-19 12:22:23 +00:00
|
|
|
# The options to test are:
|
|
|
|
#
|
2011-01-28 12:38:14 +00:00
|
|
|
# standard tests with and without progressive reading and interlace
|
|
|
|
# size images with and without progressive reading
|
|
|
|
# transform tests (standard, non-interlaced only)
|
2010-12-19 12:22:23 +00:00
|
|
|
#
|
2011-01-28 12:38:14 +00:00
|
|
|
for opts in "--standard" "--standard --progressive-read" \
|
|
|
|
"--standard --interlace" "--standard --progressive-read --interlace" \
|
|
|
|
"--size" "--size --progressive-read" \
|
|
|
|
"--transform"
|
2010-12-08 22:26:21 +00:00
|
|
|
do
|
2011-01-28 12:38:14 +00:00
|
|
|
if ./pngvalid $opts >> pngtest-log.txt 2>&1
|
2010-12-08 22:26:21 +00:00
|
|
|
then
|
2011-01-28 12:38:14 +00:00
|
|
|
echo " PASS:" pngvalid $opts
|
2010-12-08 22:26:21 +00:00
|
|
|
else
|
2011-01-28 12:38:14 +00:00
|
|
|
echo " FAIL:" pngvalid $opts
|
2010-12-08 22:26:21 +00:00
|
|
|
err=1
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
|
|
|
exit $err
|