Bringing libpng-1.5.10 into the main branch
[AROS.git] / workbench / libs / png / test-pngvalid-simple.sh
blob7d4d9d83c281250e8c24b720e76aa4db29214fac
1 #!/bin/sh
3 # Run a sequence of tests quietly, without the slow
4 # gamma tests
5 err=0
7 echo >> pngtest-log.txt
8 echo "============ pngvalid-simple.sh ==============" >> pngtest-log.txt
9 echo "Running test-pngvalid-simple.sh"
10 # The options to test are:
12 # standard tests with and without progressive reading and interlace
13 # size images with and without progressive reading
14 # transform tests (standard, non-interlaced only)
16 for opts in "--standard" "--standard --progressive-read" \
17 "--standard --interlace" "--standard --progressive-read --interlace" \
18 "--size" "--size --progressive-read" \
19 "--transform"
21 if ./pngvalid "$@" $opts >> pngtest-log.txt 2>&1
22 then
23 echo " PASS: pngvalid" "$@" $opts
24 else
25 echo " FAIL: pngvalid" "$@" $opts
26 err=1
28 done
30 exit $err