From 5988c98df0d974555474e40c5ff368f0439f86f6 Mon Sep 17 00:00:00 2001 From: Gard Spreemann Date: Fri, 28 Apr 2017 12:42:11 +0200 Subject: Add autopkgtest test suite for upstream's tests of the Python interface. --- debian/tests/control | 2 ++ debian/tests/python-upstream | 19 +++++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 debian/tests/control create mode 100755 debian/tests/python-upstream (limited to 'debian/tests') diff --git a/debian/tests/control b/debian/tests/control new file mode 100644 index 00000000..49eabb3f --- /dev/null +++ b/debian/tests/control @@ -0,0 +1,2 @@ +Tests: python-upstream +Depends: python3-gudhi, python3-pytest \ No newline at end of file diff --git a/debian/tests/python-upstream b/debian/tests/python-upstream new file mode 100755 index 00000000..ed1c6027 --- /dev/null +++ b/debian/tests/python-upstream @@ -0,0 +1,19 @@ +#!/usr/bin/python3 -B + +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])) -- cgit v1.2.3