summaryrefslogtreecommitdiffstats
path: root/debian/tests
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 05:47:37 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 05:47:37 +0000
commitbd644986fea8b6832b7dbf76345fc47c9d72109e (patch)
tree7f85d6732ac071444738538e89ba425875cc9c0c /debian/tests
parentAdding upstream version 0.19.0. (diff)
downloadlibixion-bd644986fea8b6832b7dbf76345fc47c9d72109e.tar.xz
libixion-bd644986fea8b6832b7dbf76345fc47c9d72109e.zip
Adding debian version 0.19.0-4.debian/0.19.0-4debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/tests')
-rw-r--r--debian/tests/control11
-rwxr-xr-xdebian/tests/unit14
2 files changed, 25 insertions, 0 deletions
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..bd79058
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,11 @@
+Test-Command: set -e ; cd "$AUTOPKGTEST_TMP" ; python3 -c "import ixion; print(ixion)"
+Depends:
+ python3,
+ python3-ixion,
+
+Tests: unit
+Depends:
+ libixion-0.18-0,
+ python3-ixion,
+ @builddeps@,
+Restrictions: build-needed, rw-build-tree
diff --git a/debian/tests/unit b/debian/tests/unit
new file mode 100755
index 0000000..07e31fe
--- /dev/null
+++ b/debian/tests/unit
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+# remove locally built libixion so that we actually test the system one
+versions="$(dpkg --no-pager -l 'libixion-*'|awk '/^ii/ {} /libixion-[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