40ca77a721
to the background parameter of png_image_finish_read. The --background option is now done automagically only when required, so that commandline option no longer exists.
31 lines
721 B
Bash
Executable File
31 lines
721 B
Bash
Executable File
#!/bin/sh
|
|
#
|
|
# Run the simplified API tests
|
|
err=0
|
|
|
|
echo >> pngtest-log.txt
|
|
echo "============ pngstest.sh ==============" >> pngtest-log.txt
|
|
|
|
echo "Running test-pngstest.sh on contrib/pngsuite/*.png"
|
|
for opts in ""
|
|
do
|
|
if ./pngstest --log "$@" $opts ${srcdir}/contrib/pngsuite/bas*.png \
|
|
>>pngtest-log.txt 2>&1
|
|
then
|
|
echo " PASS: pngstest $opts (basic images)"
|
|
else
|
|
echo " FAIL: pngstest $opts (basic images)"
|
|
err=1
|
|
fi
|
|
if ./pngstest --log "$@" $opts ${srcdir}/contrib/pngsuite/ft*.png \
|
|
>>pngtest-log.txt 2>&1
|
|
then
|
|
echo " PASS: pngstest $opts (transparent images)"
|
|
else
|
|
echo " FAIL: pngstest $opts (transparent images)"
|
|
err=1
|
|
fi
|
|
done
|
|
|
|
exit $err
|