From 3747c75a215f082bc52198a7229e1b1e529d7666 Mon Sep 17 00:00:00 2001 From: Klement Sekera Date: Mon, 10 Apr 2017 06:30:17 +0200 Subject: make test: automatic "vpp finishes startup" check Add code which checks if vpp doesn't crash/exit immediately after startup to aid debugging stuff like mistyped graph node name or so. Refuse to run tests if the vpp is unable to start, complain loudly and print vpp's stderr at critical log level if this happens to make spotting these problems in jenkins easy. Change-Id: I40d3fbd05c822c0534713bae6bef05ecfb0e0c1d Signed-off-by: Klement Sekera --- test/Makefile | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'test/Makefile') diff --git a/test/Makefile b/test/Makefile index 6647d67b..787dd9d1 100644 --- a/test/Makefile +++ b/test/Makefile @@ -78,6 +78,11 @@ sanity: verify-no-running-vpp echo \"* 2. execute debugger: gdb python -ex 'run sanity_import_vpp_papi.py'\" &&\ echo \"*******************************************************************\" &&\ false)" + @bash -c "source $(PYTHON_VENV_PATH)/bin/activate && python sanity_run_vpp.py ||\ + (echo \"*******************************************************************\" &&\ + echo \"* Sanity check failed, cannot run vpp\" &&\ + echo \"*******************************************************************\" &&\ + false)" test: verify-python-path $(PAPI_INSTALL_DONE) sanity reset $(call retest-func) -- cgit 1.2.3-korg