vici: Run Python tests via tox if available

Since we use the serial test harness we can't use AM_TESTS_ENVIRONMENT.
The script is necessary for out-of-tree builds.
This commit is contained in:
Tobias Brunner
2020-01-14 15:26:52 +01:00
parent 574621d80a
commit b723431540
3 changed files with 13 additions and 1 deletions
@@ -1,6 +1,7 @@
EXTRA_DIST = LICENSE README.rst MANIFEST.in \
setup.py.in \
tox.ini \
tox.sh \
vici/test/__init__.py \
vici/test/test_protocol.py \
vici/__init__.py \
@@ -38,6 +39,12 @@ install-exec-local: dist/vici-$(PYTHON_PACKAGE_VERSION)-py$(PYTHON_VERSION).egg
dist/vici-$(PYTHON_PACKAGE_VERSION)-py$(PYTHON_VERSION).egg
endif
if USE_TOX
TESTS_ENVIRONMENT = export TOX=$(TOX);
AM_TESTS_FD_REDIRECT = 1>&2
TESTS = tox.sh
endif
if USE_PY_TEST
TESTS = $(PY_TEST)
endif
+3
View File
@@ -0,0 +1,3 @@
#!/bin/sh
${TOX} -c ${srcdir} --skip-missing-interpreters