2010-12-08 04:33:17 +00:00
|
|
|
#!/bin/sh
|
2010-12-08 22:26:21 +00:00
|
|
|
#
|
|
|
|
# Run a sequence of gamma tests quietly
|
|
|
|
err=0
|
2010-12-08 23:26:50 +00:00
|
|
|
|
|
|
|
echo >> pngtest-log.txt
|
|
|
|
echo "============ pngvalid-full.sh ==============" >> pngtest-log.txt
|
|
|
|
|
2011-01-28 12:38:14 +00:00
|
|
|
echo "Running test-pngvalid-full.sh"
|
2011-05-18 23:57:12 +00:00
|
|
|
for gamma in threshold transform sbit 16-to-8 background alpha-mode "transform --expand16" "background --expand16" "alpha-mode --expand16"
|
2010-12-08 22:26:21 +00:00
|
|
|
do
|
2011-10-14 23:19:47 +00:00
|
|
|
if ./pngvalid "$@" --gamma-$gamma >> pngtest-log.txt 2>&1
|
2010-12-08 22:26:21 +00:00
|
|
|
then
|
2011-10-14 23:19:47 +00:00
|
|
|
echo " PASS: pngvalid" "$@" "--gamma-$gamma"
|
2010-12-08 22:26:21 +00:00
|
|
|
else
|
2011-10-14 23:19:47 +00:00
|
|
|
echo " FAIL: pngvalid" "$@" "--gamma-$gamma"
|
2010-12-08 22:26:21 +00:00
|
|
|
err=1
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
2010-12-08 23:26:50 +00:00
|
|
|
echo
|
|
|
|
|
2010-12-08 22:26:21 +00:00
|
|
|
exit $err
|