summaryrefslogtreecommitdiffstats
path: root/test/Makefile
diff options
context:
space:
mode:
authorKlement Sekera <ksekera@cisco.com>2016-11-08 02:00:28 +0100
committerDamjan Marion <dmarion.lists@gmail.com>2016-11-09 12:00:18 +0000
commit778c2765c8ea5c6628f6d668847f0b9ae06dbf3d (patch)
tree936861ea61174eae85707ee9b4ef01e126c3ee2d /test/Makefile
parentd72fdf5712200d615d7137911f9177d691ab28f0 (diff)
Improve test framework documentation
Change-Id: I06f0cbbbdd29e04a07f1db6807b3e16f1d41e8d2 Signed-off-by: Klement Sekera <ksekera@cisco.com>
Diffstat (limited to 'test/Makefile')
-rw-r--r--test/Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/Makefile b/test/Makefile
index 63cee2036b4..aac637d3e5f 100644
--- a/test/Makefile
+++ b/test/Makefile
@@ -6,11 +6,11 @@ ifndef VPP_PYTHON_PREFIX
endif
PYTHON_VENV_PATH=$(VPP_PYTHON_PREFIX)/virtualenv
+PYTHON_DEPENDS=scapy pexpect
test: wipe verify-python-path
@virtualenv $(PYTHON_VENV_PATH)
- @bash -c "source $(PYTHON_VENV_PATH)/bin/activate && pip install scapy"
- @bash -c "source $(PYTHON_VENV_PATH)/bin/activate && pip install pexpect"
+ @bash -c "source $(PYTHON_VENV_PATH)/bin/activate && pip install $(PYTHON_DEPENDS)"
@bash -c "source $(PYTHON_VENV_PATH)/bin/activate && cd $(WS_ROOT)/vpp-api/python && python setup.py install"
@bash -c "source $(PYTHON_VENV_PATH)/bin/activate && python run_tests.py discover -p test_$(TEST)\"*.py\""
@@ -19,13 +19,13 @@ retest: wipe verify-python-path
.PHONY: wipe doc
-wipe: verify-python-path
+wipe:
@rm -f /dev/shm/vpp-unittest-*
@rm -rf /tmp/vpp-unittest-*
doc: verify-python-path
@virtualenv $(PYTHON_VENV_PATH)
- @bash -c "source $(PYTHON_VENV_PATH)/bin/activate && pip install sphinx"
+ @bash -c "source $(PYTHON_VENV_PATH)/bin/activate && pip install $(PYTHON_DEPENDS) sphinx"
@bash -c "source $(PYTHON_VENV_PATH)/bin/activate && make -C doc WS_ROOT=$(WS_ROOT) BR=$(BR) NO_VPP_PAPI=1 html"
wipe-doc: