mirror of
https://github.com/michaelrsweet/pdfio.git
synced 2025-04-22 00:16:47 +02:00
Update corpus test script to use Xpdf's pdfinfo to weed out known-bad PDFs for now.
This commit is contained in:
parent
e983ba98d8
commit
67704ce493
@ -18,5 +18,12 @@ if test $# = 0; then
|
||||
fi
|
||||
|
||||
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user