[devel] Don't display test results (except PASS/FAIL) when running "make test".

Instead put them in pngtest-log.txt
This commit is contained in:
Glenn Randers-Pehrson 2010-12-08 17:26:50 -06:00
parent b54498edea
commit d5e3590df7
5 changed files with 28 additions and 7 deletions

View File

@ -467,6 +467,9 @@ Version 1.5.0beta57 [December 8, 2010]
or warnings. or warnings.
Removed references to pngvcrd.c and pnggccrd.c from the vstudio project. Removed references to pngvcrd.c and pnggccrd.c from the vstudio project.
Updated "libpng14" to "libpng15" in the visualc71 project. Updated "libpng14" to "libpng15" in the visualc71 project.
Enabled the strip16 tests in pngvalid.`
Don't display test results (except PASS/FAIL) when running "make test".
Instead put them in pngtest-log.txt
Send comments/corrections/commendations to png-mng-implement at lists.sf.net: Send comments/corrections/commendations to png-mng-implement at lists.sf.net:
(subscription required; visit (subscription required; visit

View File

@ -3105,6 +3105,9 @@ Version 1.5.0beta57 [December 8, 2010]
or warnings. or warnings.
Removed references to pngvcrd.c and pnggccrd.c from the vstudio project. Removed references to pngvcrd.c and pnggccrd.c from the vstudio project.
Updated "libpng14" to "libpng15" in the visualc71 project. Updated "libpng14" to "libpng15" in the visualc71 project.
Enabled the strip16 tests in pngvalid.`
Don't display test results (except PASS/FAIL) when running "make test".
Instead put them in pngtest-log.txt
Send comments/corrections/commendations to png-mng-implement at lists.sf.net Send comments/corrections/commendations to png-mng-implement at lists.sf.net
(subscription required; visit (subscription required; visit

View File

@ -1,3 +1,8 @@
#!/bin/sh #!/bin/sh
./pngtest ${srcdir}/pngtest.png echo "Running tests. For details see pngtest-log.txt"
echo "============ pngtest pngtest.png ==============" > pngtest-log.txt
echo "Running test-pngtest.sh"
./pngtest ${srcdir}/pngtest.png >> pngtest-log.txt

View File

@ -2,6 +2,11 @@
# #
# Run a sequence of gamma tests quietly # Run a sequence of gamma tests quietly
err=0 err=0
echo >> pngtest-log.txt
echo "============ pngvalid-full.sh ==============" >> pngtest-log.txt
echo "Running test-pngvalid-full.sh -- it's lengthy, please wait..."
for gamma in threshold transform sbit 16-to-8 for gamma in threshold transform sbit 16-to-8
do do
opts= opts=
@ -10,13 +15,15 @@ do
test "$gamma" = sbit || opts="$opts --nogamma-sbit" test "$gamma" = sbit || opts="$opts --nogamma-sbit"
test "$gamma" = 16-to-8 || opts="$opts --nogamma-16-to-8" test "$gamma" = 16-to-8 || opts="$opts --nogamma-16-to-8"
if ./pngvalid -q --nostandard $opts if ./pngvalid --nostandard $opts >> pngtest-log.txt
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
echo
exit $err exit $err

View File

@ -4,14 +4,17 @@
# gamma tests # gamma tests
err=0 err=0
echo >> pngtest-log.txt
echo "============ pngvalid-simple.sh ==============" >> pngtest-log.txt
echo "Running test-pngvalid-simple.sh"
for opts in "" --progressive-read --interlace \ for opts in "" --progressive-read --interlace \
"--progressive-read --interlace" "--progressive-read --interlace"
do do
if ./pngvalid -q --nogamma $opts if ./pngvalid --nogamma $opts >> pngtest-log.txt
then then
echo "PASS:" pngvalid --nogamma $opts echo " PASS:" pngvalid --nogamma $opts
else else
echo "FAIL:" pngvalid --nogamma $opts echo " FAIL:" pngvalid --nogamma $opts
err=1 err=1
fi fi
done done