diff options
Diffstat (limited to 'debian/tests/python-upstream')
-rwxr-xr-x | debian/tests/python-upstream | 19 |
1 files changed, 19 insertions, 0 deletions
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])) |