Glenn Randers-Pehrson | 6f1af78 | 2010-12-07 22:33:17 -0600 | [diff] [blame] | 1 | #!/bin/sh |
John Bowler | b54498e | 2010-12-08 16:26:21 -0600 | [diff] [blame] | 2 | # |
| 3 | # Run a sequence of tests quietly, without the slow |
| 4 | # gamma tests |
| 5 | err=0 |
Glenn Randers-Pehrson | 6f1af78 | 2010-12-07 22:33:17 -0600 | [diff] [blame] | 6 | |
Glenn Randers-Pehrson | d5e3590 | 2010-12-08 17:26:50 -0600 | [diff] [blame] | 7 | echo >> pngtest-log.txt |
| 8 | echo "============ pngvalid-simple.sh ==============" >> pngtest-log.txt |
| 9 | echo "Running test-pngvalid-simple.sh" |
John Bowler | 660c6e4 | 2010-12-19 06:22:23 -0600 | [diff] [blame] | 10 | # The options to test are: |
| 11 | # |
John Bowler | afea7d1 | 2011-01-28 06:38:14 -0600 | [diff] [blame] | 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) |
John Bowler | 660c6e4 | 2010-12-19 06:22:23 -0600 | [diff] [blame] | 15 | # |
John Bowler | afea7d1 | 2011-01-28 06:38:14 -0600 | [diff] [blame] | 16 | for opts in "--standard" "--standard --progressive-read" \ |
| 17 | "--standard --interlace" "--standard --progressive-read --interlace" \ |
| 18 | "--size" "--size --progressive-read" \ |
| 19 | "--transform" |
John Bowler | b54498e | 2010-12-08 16:26:21 -0600 | [diff] [blame] | 20 | do |
John Bowler | 07772cb | 2011-10-14 18:19:47 -0500 | [diff] [blame] | 21 | if ./pngvalid "$@" $opts >> pngtest-log.txt 2>&1 |
John Bowler | b54498e | 2010-12-08 16:26:21 -0600 | [diff] [blame] | 22 | then |
John Bowler | 07772cb | 2011-10-14 18:19:47 -0500 | [diff] [blame] | 23 | echo " PASS: pngvalid" "$@" $opts |
John Bowler | b54498e | 2010-12-08 16:26:21 -0600 | [diff] [blame] | 24 | else |
John Bowler | 07772cb | 2011-10-14 18:19:47 -0500 | [diff] [blame] | 25 | echo " FAIL: pngvalid" "$@" $opts |
John Bowler | b54498e | 2010-12-08 16:26:21 -0600 | [diff] [blame] | 26 | err=1 |
| 27 | fi |
| 28 | done |
| 29 | |
| 30 | exit $err |