diff options
author | Johannes Schauer <josch@debian.org> | 2017-01-20 06:07:06 +0100 |
---|---|---|
committer | Johannes Schauer <josch@debian.org> | 2017-01-20 06:38:09 +0100 |
commit | 23aaed21206c9c32971ddbe26e1080b101d0ba28 (patch) | |
tree | 0b88e62deba35bdf25abe0cceed291e507644bb6 | |
parent | 33ca9a3956e99cf7c0afcb795fe6f4324a42ae26 (diff) |
Add autopkgtests
-rw-r--r-- | debian/changelog | 1 | ||||
-rw-r--r-- | debian/tests/control | 3 | ||||
-rw-r--r-- | debian/tests/default | 7 |
3 files changed, 11 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog index 8cf34a7..1e4d4ac 100644 --- a/debian/changelog +++ b/debian/changelog @@ -3,6 +3,7 @@ img2pdf (0.2.3-1) UNRELEASED; urgency=medium * New upstream release * Add Vcs-Browser and Vcs-Git for dgit * Let img2pdf depend on the exact same version of python3-img2pdf + * Add autopkgtests -- Johannes Schauer <josch@debian.org> Fri, 20 Jan 2017 05:49:33 +0100 diff --git a/debian/tests/control b/debian/tests/control new file mode 100644 index 0000000..d46241f --- /dev/null +++ b/debian/tests/control @@ -0,0 +1,3 @@ +Tests: default +Restrictions: allow-stderr +Depends: @, python3-pdfrw diff --git a/debian/tests/default b/debian/tests/default new file mode 100644 index 0000000..6230e1f --- /dev/null +++ b/debian/tests/default @@ -0,0 +1,7 @@ +#!/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 +done |