debian/tests/unit
raw| 1 | #!/bin/bash |
| 2 | |
| 3 | set -e |
| 4 | set -E |
| 5 | |
| 6 | function cleanup() { |
| 7 | make clean |
| 8 | dh_autoreconf_clean |
| 9 | patch -p1 -R < debian/tests/patches/system-epubgen.diff |
| 10 | } |
| 11 | |
| 12 | trap cleanup ERR |
| 13 | |
| 14 | patch -p1 < debian/tests/patches/system-epubgen.diff |
| 15 | dh_autoreconf |
| 16 | dh_auto_configure |
| 17 | cd src/test && make check |
| 18 | cd ../.. |
| 19 | |
| 20 | cleanup |