Avoid random test failures by running pngtest sequentially only

It is unreliable to run pngtest in parallel, due to competing writes
to the same intermediate/output file ("pngout.png").

Customization of this output file name should be possible, but it is
currently broken.
This commit is contained in:
Cosmin Truta
2019-04-21 00:30:14 -04:00
parent 5df8e982e2
commit 72fa126446
4 changed files with 10 additions and 18 deletions

16
tests/pngtest-all Executable file
View File

@@ -0,0 +1,16 @@
#!/bin/sh
# normal execution
./pngtest --strict ${srcdir}/pngtest.png
# various crashers
# using --relaxed because some come from fuzzers that don't maintain CRC's
./pngtest --relaxed ${srcdir}/contrib/testpngs/crashers/badcrc.png
./pngtest --relaxed ${srcdir}/contrib/testpngs/crashers/badadler.png
./pngtest --xfail ${srcdir}/contrib/testpngs/crashers/bad_iCCP.png
./pngtest --xfail ${srcdir}/contrib/testpngs/crashers/empty_ancillary_chunks.png
./pngtest --xfail ${srcdir}/contrib/testpngs/crashers/huge_*_chunk.png \
${srcdir}/contrib/testpngs/crashers/huge_*safe_to_copy.png
./pngtest --xfail ${srcdir}/contrib/testpngs/crashers/huge_IDAT.png