summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes 'josch' Schauer <josch@debian.org>2018-07-20 07:25:58 +0200
committerJohannes 'josch' Schauer <josch@debian.org>2018-07-20 07:39:55 +0200
commit362f1c103ecf795002f324dc7a5019f65a510c99 (patch)
treedfbd9cc8c4b37ae2fb0e18ccd8226c20836a6041
parent338ce99ce59c9cdd0c0956a707347607bed2be8f (diff)
debian/tests/default: test all test input
-rw-r--r--debian/tests/default11
1 files changed, 8 insertions, 3 deletions
diff --git a/debian/tests/default b/debian/tests/default
index 6230e1f..9a0f42d 100644
--- a/debian/tests/default
+++ b/debian/tests/default
@@ -1,7 +1,12 @@
#!/bin/sh
set -exu
-for f in CMYK.jpg mono.png normal.jpg normal.png; do
- img2pdf --nodate --producer="" src/tests/input/$f -o $ADTTMP/$f.pdf
- diff -u --text src/tests/output/$f.pdf $ADTTMP/$f.pdf
+for f in src/tests/input/*; do
+ bn=$(basename "$f")
+ pdfrw=
+ if [ "${f%.gif}" != "$f" ]; then
+ pdfrw=--without-pdfrw
+ fi
+ img2pdf $pdfrw --nodate --producer="" "$f" -o "$ADTTMP/$bn.pdf"
+ diff -u --text "src/tests/output/$bn.pdf" "$ADTTMP/$bn.pdf"
done