diff options
Diffstat (limited to '')
-rw-r--r-- | debian/tests/control | 11 | ||||
-rwxr-xr-x | debian/tests/unit | 14 |
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 |