2010-12-07 23:33:17 -05:00
|
|
|
#!/bin/sh
|
2010-12-08 17:26:21 -05:00
|
|
|
#
|
|
|
|
# Run a sequence of gamma tests quietly
|
|
|
|
err=0
|
2010-12-08 18:26:50 -05:00
|
|
|
|
|
|
|
echo >> pngtest-log.txt
|
|
|
|
echo "============ pngvalid-full.sh ==============" >> pngtest-log.txt
|
|
|
|
|
|
|
|
echo "Running test-pngvalid-full.sh -- it's lengthy, please wait..."
|
2010-12-08 17:26:21 -05:00
|
|
|
for gamma in threshold transform sbit 16-to-8
|
|
|
|
do
|
|
|
|
opts=
|
|
|
|
test "$gamma" = threshold || opts="$opts --nogamma-threshold"
|
|
|
|
test "$gamma" = transform || opts="$opts --nogamma-transform"
|
|
|
|
test "$gamma" = sbit || opts="$opts --nogamma-sbit"
|
|
|
|
test "$gamma" = 16-to-8 || opts="$opts --nogamma-16-to-8"
|
2010-12-07 23:33:17 -05:00
|
|
|
|
2010-12-08 21:33:39 -05:00
|
|
|
if ./pngvalid --nostandard $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 "(gamma-$gamma)"
|
2010-12-08 17:26:21 -05:00
|
|
|
else
|
2010-12-08 18:26:50 -05:00
|
|
|
echo " FAIL:" pngvalid "(gamma-$gamma)"
|
2010-12-08 17:26:21 -05:00
|
|
|
err=1
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
2010-12-08 18:26:50 -05:00
|
|
|
echo
|
|
|
|
|
2010-12-08 17:26:21 -05:00
|
|
|
exit $err
|