diff options
Diffstat (limited to 'debian/tests')
-rw-r--r-- | debian/tests/control | 3 | ||||
-rw-r--r-- | debian/tests/python-upstream.py | 17 | ||||
-rwxr-xr-x | debian/tests/python-upstream.sh | 9 |
3 files changed, 29 insertions, 0 deletions
diff --git a/debian/tests/control b/debian/tests/control new file mode 100644 index 00000000..65510cef --- /dev/null +++ b/debian/tests/control @@ -0,0 +1,3 @@ +Tests: python-upstream.sh +Depends: python3-all, python3-gudhi, python3-pytest + diff --git a/debian/tests/python-upstream.py b/debian/tests/python-upstream.py new file mode 100644 index 00000000..098701aa --- /dev/null +++ b/debian/tests/python-upstream.py @@ -0,0 +1,17 @@ +import pytest +import os + +tmpdir = os.getenv("AUTOPKGTEST_TMP") + +if tmpdir is None: + print("Need the environment variable AUTOPKGTEST_TMP.") + exit(1) + +cwd = os.getcwd() +test_path = cwd + "/cython/test" + +os.chdir(tmpdir) + +print("Running tests from %s with cwd %s." %(test_path, os.getcwd())) + +exit(pytest.main([test_path])) diff --git a/debian/tests/python-upstream.sh b/debian/tests/python-upstream.sh new file mode 100755 index 00000000..e292ab76 --- /dev/null +++ b/debian/tests/python-upstream.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +set -e + +for py3ver in $(py3versions -vs) +do + echo "Running tests with Python ${py3ver}." + /usr/bin/python${py3ver} -B debian/tests/python-upstream.py +done |