mirror of
https://github.com/michaelrsweet/pdfio.git
synced 2025-04-25 01:46:51 +02:00
Drop Xpdf and other checks from test-corpus.sh script.
This commit is contained in:
parent
cad8f450ab
commit
749c0f845d
@ -18,15 +18,6 @@ if test $# = 0; then
|
||||
fi
|
||||
|
||||
for file in $(find "$@" -name \*.pdf -print); do
|
||||
# Don't worry about test files containing MIME garbage...
|
||||
(head -4 $file | grep -q Content-Type) && continue;
|
||||
|
||||
# Or test files containing MacBinary garbage...
|
||||
(file $file | grep -q MacBinary) && continue;
|
||||
|
||||
# Don't worry about test files that Xpdf can't handle...
|
||||
pdfinfo $file >/dev/null 2>&1 || continue;
|
||||
|
||||
# Run testpdfio to test loading the file...
|
||||
./testpdfio $file >$file.log 2>&1
|
||||
if test $? = 0; then
|
||||
|
Loading…
x
Reference in New Issue
Block a user