summaryrefslogtreecommitdiffstats
path: root/debian/tests/make-check
diff options
context:
space:
mode:
Diffstat (limited to 'debian/tests/make-check')
-rwxr-xr-xdebian/tests/make-check19
1 files changed, 19 insertions, 0 deletions
diff --git a/debian/tests/make-check b/debian/tests/make-check
new file mode 100755
index 0000000..2c6de92
--- /dev/null
+++ b/debian/tests/make-check
@@ -0,0 +1,19 @@
+#!/bin/bash
+
+set -e
+set -E
+
+function cleanup() {
+ dh_autoreconf_clean
+ patch -p1 -R < debian/tests/patches/system-includes.diff
+}
+
+trap cleanup ERR
+
+patch -p1 < debian/tests/patches/system-includes.diff
+dh_autoreconf
+aclocal && automake
+dh_auto_configure
+make -C example check
+
+cleanup