mirror of
https://git.code.sf.net/p/libpng/code.git
synced 2025-07-10 18:04:09 +02:00
[devel] Add-transform-tests-to-pngvalid-simplify-arguments
This commit is contained in:
committed by
Glenn Randers-Pehrson
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 >> pngtest-log.txt
|
||||||
echo "============ pngvalid-full.sh ==============" >> 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
|
for gamma in threshold transform sbit 16-to-8
|
||||||
do
|
do
|
||||||
opts=
|
if ./pngvalid "--gamma-$gamma" >> pngtest-log.txt 2>&1
|
||||||
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
|
|
||||||
then
|
then
|
||||||
echo " PASS:" pngvalid "(gamma-$gamma)"
|
echo " PASS:" pngvalid "--gamma-$gamma"
|
||||||
else
|
else
|
||||||
echo " FAIL:" pngvalid "(gamma-$gamma)"
|
echo " FAIL:" pngvalid "--gamma-$gamma"
|
||||||
err=1
|
err=1
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|||||||
@@ -9,18 +9,20 @@ echo "============ pngvalid-simple.sh ==============" >> pngtest-log.txt
|
|||||||
echo "Running test-pngvalid-simple.sh"
|
echo "Running test-pngvalid-simple.sh"
|
||||||
# The options to test are:
|
# The options to test are:
|
||||||
#
|
#
|
||||||
# --progressive-read, --interlace on the 'transform' images
|
# standard tests with and without progressive reading and interlace
|
||||||
# --progressive-read on the 'size' images
|
# size images with and without progressive reading
|
||||||
|
# transform tests (standard, non-interlaced only)
|
||||||
#
|
#
|
||||||
for opts in "" --progressive-read --interlace \
|
for opts in "--standard" "--standard --progressive-read" \
|
||||||
"--progressive-read --interlace" "--nostandard --size" \
|
"--standard --interlace" "--standard --progressive-read --interlace" \
|
||||||
"--nostandard --size --progressive-read"
|
"--size" "--size --progressive-read" \
|
||||||
|
"--transform"
|
||||||
do
|
do
|
||||||
if ./pngvalid --nogamma $opts >> pngtest-log.txt 2>&1
|
if ./pngvalid $opts >> pngtest-log.txt 2>&1
|
||||||
then
|
then
|
||||||
echo " PASS:" pngvalid --nogamma $opts
|
echo " PASS:" pngvalid $opts
|
||||||
else
|
else
|
||||||
echo " FAIL:" pngvalid --nogamma $opts
|
echo " FAIL:" pngvalid $opts
|
||||||
err=1
|
err=1
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user