X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=test%2FMakefile;h=a578822362315994acfc4c051df8daa7b6aa1bc1;hb=refs%2Fchanges%2F82%2F19382%2F2;hp=a032318dbcafd7e39d8eb884b14ec27c13ea3b79;hpb=593635d4fa97ec8c26b0d2a9c9ccc17007354136;p=vpp.git diff --git a/test/Makefile b/test/Makefile index a032318dbca..a5788223623 100644 --- a/test/Makefile +++ b/test/Makefile @@ -79,7 +79,6 @@ PYTHON_DEPENDS=$(PYTHON_EXTRA_DEPENDS) -r requirements.txt SCAPY_SOURCE=$(shell find $(VENV_PATH)/lib/$(PYTHON) -name site-packages) BUILD_COV_DIR=$(TEST_DIR)/coverage -GET_PIP_SCRIPT=$(TEST_RUN_DIR)/get-pip.py PIP_INSTALL_DONE=$(TEST_RUN_DIR)/pip-install.done PIP_PATCH_DONE=$(TEST_RUN_DIR)/pip-patch.done PAPI_INSTALL_DONE=$(TEST_RUN_DIR)/papi-install.done @@ -92,11 +91,8 @@ else PYTHON_INTERP=$(PYTHON) endif -$(GET_PIP_SCRIPT): +$(PIP_INSTALL_DONE): @mkdir -p $(TEST_RUN_DIR) - @bash -c "cd $(TEST_RUN_DIR) && curl -O https://bootstrap.pypa.io/get-pip.py" - -$(PIP_INSTALL_DONE): $(GET_PIP_SCRIPT) @virtualenv $(VENV_PATH) -p $(PYTHON_INTERP) @bash -c "source $(VENV_PATH)/bin/activate && $(PYTHON_INTERP) -m pip install $(PYTHON_DEPENDS)" @touch $@ @@ -111,7 +107,7 @@ $(PIP_PATCH_DONE): $(PIP_INSTALL_DONE) @touch $@ $(PAPI_INSTALL_DONE): $(PIP_PATCH_DONE) - @bash -c "source $(VENV_PATH)/bin/activate && cd $(WS_ROOT)/src/vpp-api/python && $(PYTHON_INTERP) setup.py install" + @bash -c "source $(VENV_PATH)/bin/activate && $(PYTHON_INTERP) -m pip install -e $(WS_ROOT)/src/vpp-api/python" @touch $@ define retest-func @@ -289,6 +285,7 @@ help: @echo " COREDUMP_SIZE= - pass as unix { coredump-size } argument to vpp" @echo " e.g. COREDUMP_SIZE=4g" @echo " COREDUMP_SIZE=unlimited" + @echo " COREDUMP_COMPRESS=1 - compress core files if not debugging them" @echo " EXTERN_TESTS= - path to out-of-tree test_.py files containing test cases" @echo " EXTERN_PLUGINS=- path to out-of-tree plugins to be loaded by vpp under test" @echo " EXTERN_COV_DIR=- path to out-of-tree prefix, where source, object and .gcda files can be found for coverage report" @@ -301,6 +298,8 @@ help: @echo "" @echo " SKIP_AARCH64=1 - skip tests that are failing on the ARM platorm in FD.io CI" @echo "" + @echo " SOCKET=1 - Communicate with VPP over Unix domain socket instead of SHM" + @echo "" @echo "Creating test documentation" @echo " test-doc - generate documentation for test framework" @echo " test-wipe-doc - wipe documentation for test framework"