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:
@@ -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
|
||||
|
||||
Executable
+3
@@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
${TOX} -c ${srcdir} --skip-missing-interpreters
|
||||
Reference in New Issue
Block a user