| # Run a sequence of gamma tests quietly |
| echo "============ pngvalid-full.sh ==============" >> pngtest-log.txt |
| echo "Running test-pngvalid-full.sh" |
| for gamma in threshold transform sbit 16-to-8 background alpha-mode |
| # For the moment the composition calculation is performed with minimal |
| # accuracy, do this to work round the problem: |
| if test $gamma = background -o $gamma = alpha-mode |
| opts=--use-linear-precision |
| if ./pngvalid $opts "--gamma-$gamma" >> pngtest-log.txt 2>&1 |
| echo " PASS:" pngvalid "--gamma-$gamma" |
| echo " FAIL:" pngvalid "--gamma-$gamma" |