Update corpus test script to use Xpdf's pdfinfo to weed out known-bad PDFs for now.

This commit is contained in:
Michael R Sweet 2025-04-21 16:59:59 -04:00
parent e983ba98d8
commit 67704ce493
No known key found for this signature in database
GPG Key ID: BE67C75EC81F3244

View File

@ -18,5 +18,12 @@ if test $# = 0; then
fi fi
for file in $(find "$@" -name \*.pdf -print); do for file in $(find "$@" -name \*.pdf -print); do
./testpdfio $file 2>&1 >$file.log || echo $file pdfinfo $file >/dev/null 2>&1 || continue;
./testpdfio $file >$file.log 2>&1
if test $? = 0; then
rm -f $file.log
else
echo $file
fi
done done