diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 05:47:37 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 05:47:37 +0000 |
commit | bd644986fea8b6832b7dbf76345fc47c9d72109e (patch) | |
tree | 7f85d6732ac071444738538e89ba425875cc9c0c /debian/tests | |
parent | Adding upstream version 0.19.0. (diff) | |
download | libixion-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/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 |