[devel] Add-transform-tests-to-pngvalid-simplify-arguments
This commit is contained in:
parent
fca50dfab3
commit
afea7d19e0
1002
pngvalid.c
1002
pngvalid.c
File diff suppressed because it is too large
Load Diff
@ -6,20 +6,14 @@ err=0
|
||||
echo >> pngtest-log.txt
|
||||
echo "============ pngvalid-full.sh ==============" >> pngtest-log.txt
|
||||
|
||||
echo "Running test-pngvalid-full.sh -- it's lengthy, please wait..."
|
||||
echo "Running test-pngvalid-full.sh"
|
||||
for gamma in threshold transform sbit 16-to-8
|
||||
do
|
||||
opts=
|
||||
test "$gamma" = threshold || opts="$opts --nogamma-threshold"
|
||||
test "$gamma" = transform || opts="$opts --nogamma-transform"
|
||||
test "$gamma" = sbit || opts="$opts --nogamma-sbit"
|
||||
test "$gamma" = 16-to-8 || opts="$opts --nogamma-16-to-8"
|
||||
|
||||
if ./pngvalid --nostandard $opts >> pngtest-log.txt 2>&1
|
||||
if ./pngvalid "--gamma-$gamma" >> pngtest-log.txt 2>&1
|
||||
then
|
||||
echo " PASS:" pngvalid "(gamma-$gamma)"
|
||||
echo " PASS:" pngvalid "--gamma-$gamma"
|
||||
else
|
||||
echo " FAIL:" pngvalid "(gamma-$gamma)"
|
||||
echo " FAIL:" pngvalid "--gamma-$gamma"
|
||||
err=1
|
||||
fi
|
||||
done
|
||||
|
@ -9,18 +9,20 @@ echo "============ pngvalid-simple.sh ==============" >> pngtest-log.txt
|
||||
echo "Running test-pngvalid-simple.sh"
|
||||
# The options to test are:
|
||||
#
|
||||
# --progressive-read, --interlace on the 'transform' images
|
||||
# --progressive-read on the 'size' images
|
||||
# standard tests with and without progressive reading and interlace
|
||||
# size images with and without progressive reading
|
||||
# transform tests (standard, non-interlaced only)
|
||||
#
|
||||
for opts in "" --progressive-read --interlace \
|
||||
"--progressive-read --interlace" "--nostandard --size" \
|
||||
"--nostandard --size --progressive-read"
|
||||
for opts in "--standard" "--standard --progressive-read" \
|
||||
"--standard --interlace" "--standard --progressive-read --interlace" \
|
||||
"--size" "--size --progressive-read" \
|
||||
"--transform"
|
||||
do
|
||||
if ./pngvalid --nogamma $opts >> pngtest-log.txt 2>&1
|
||||
if ./pngvalid $opts >> pngtest-log.txt 2>&1
|
||||
then
|
||||
echo " PASS:" pngvalid --nogamma $opts
|
||||
echo " PASS:" pngvalid $opts
|
||||
else
|
||||
echo " FAIL:" pngvalid --nogamma $opts
|
||||
echo " FAIL:" pngvalid $opts
|
||||
err=1
|
||||
fi
|
||||
done
|
||||
|
Loading…
Reference in New Issue
Block a user