blob: 7d4d9d83c281250e8c24b720e76aa4db29214fac [file] [log] [blame]
Glenn Randers-Pehrson6f1af782010-12-07 22:33:17 -06001#!/bin/sh
John Bowlerb54498e2010-12-08 16:26:21 -06002#
3# Run a sequence of tests quietly, without the slow
4# gamma tests
5err=0
Glenn Randers-Pehrson6f1af782010-12-07 22:33:17 -06006
Glenn Randers-Pehrsond5e35902010-12-08 17:26:50 -06007echo >> pngtest-log.txt
8echo "============ pngvalid-simple.sh ==============" >> pngtest-log.txt
9echo "Running test-pngvalid-simple.sh"
John Bowler660c6e42010-12-19 06:22:23 -060010# The options to test are:
11#
John Bowlerafea7d12011-01-28 06:38:14 -060012# 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 Bowler660c6e42010-12-19 06:22:23 -060015#
John Bowlerafea7d12011-01-28 06:38:14 -060016for opts in "--standard" "--standard --progressive-read" \
17 "--standard --interlace" "--standard --progressive-read --interlace" \
18 "--size" "--size --progressive-read" \
19 "--transform"
John Bowlerb54498e2010-12-08 16:26:21 -060020do
John Bowler07772cb2011-10-14 18:19:47 -050021 if ./pngvalid "$@" $opts >> pngtest-log.txt 2>&1
John Bowlerb54498e2010-12-08 16:26:21 -060022 then
John Bowler07772cb2011-10-14 18:19:47 -050023 echo " PASS: pngvalid" "$@" $opts
John Bowlerb54498e2010-12-08 16:26:21 -060024 else
John Bowler07772cb2011-10-14 18:19:47 -050025 echo " FAIL: pngvalid" "$@" $opts
John Bowlerb54498e2010-12-08 16:26:21 -060026 err=1
27 fi
28done
29
30exit $err