pngstest: make error limits version specific

Splitting the machine generated error structs out to a file allows the values to
be updated without changing pngstest.c itself, sine libpng 1.6 and 1.7 have
slightly different error limits this simplifies maintenance.

makepngs.sh has also been updated to more accurately reflect current problems in
libpng 1.7

Signed-off-by: John Bowler <jbowler@acm.org>
This commit is contained in:
John Bowler
2015-09-19 16:21:36 -07:00
parent 3e46c31961
commit 8a9a3fb4dd
3 changed files with 187 additions and 166 deletions

View File

@@ -48,22 +48,17 @@ case "$1" in
# Comments below indicate cases known to be required and not duplicated
# in other (required) cases; the aim is to get a minimal set that gives
# the maxium code coverage.
mpg none gray 16
mpg none gray-alpha 16
mpg none gray-alpha 8 # required
mpg none palette 8
mpg none rgb-alpha 8
mpg 1.8 gray 2
mpg 1.8 palette 2 # required
mpg 1.8 palette 4 # required
mpg 1.8 palette 8
mpg linear palette 8
mpg linear rgb-alpha 16
mpg sRGB gray-alpha 8
mpg sRGB palette 1 # required
mpg sRGB palette 8
mpg sRGB rgb-alpha 16 # required pngread.c:2422 untested
mpg sRGB rgb-alpha 8;;
mpg none gray-alpha 8 # required: code coverage, sRGB opaque component
mpg none palette 8 # required: basic palette read
mpg 1.8 gray 2 # required: tests gamma threshold code
mpg 1.8 palette 2 # required: code coverage
mpg 1.8 palette 4 # required: code coverage
mpg 1.8 palette 8 # error limits only
mpg linear palette 8 # error limits only
mpg linear rgb-alpha 16 # error limits only
mpg sRGB palette 1 # required: code coverage
mpg sRGB rgb-alpha 16 # required: code coverage: pngread.c:2422 untested
:;;
*)
echo "$0 $1: unknown argument, usage:" >&2