summaryrefslogtreecommitdiffstats
path: root/debian/tests/unit
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xdebian/tests/unit14
1 files changed, 14 insertions, 0 deletions
diff --git a/debian/tests/unit b/debian/tests/unit
new file mode 100755
index 0000000..3f38d0b
--- /dev/null
+++ b/debian/tests/unit
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+# remove locally built liborcus so that we actually test the system one
+versions="$(dpkg --no-pager -l 'liborcus-*'|awk '/^ii/ {} /liborcus-[0-9]/ {print $2}'|cut -d: -f1|cut -d- -f2)"
+for v in $versions; do
+ echo deleting the following files:
+ find . -name "*${v}.so*"
+ find . -name "*${v}.so*" -delete
+done
+if [ -d ./src/python/.libs ]; then
+ rm -rfv ./src/python/.libs
+fi
+
+make check