From a86e289570dfb7e02c47bed023c0669f3804a8bd Mon Sep 17 00:00:00 2001 From: Klement Sekera Date: Thu, 9 Mar 2017 08:01:52 +0100 Subject: make test: add make test-shell[-debug] targets This starts a bash with the same environment as the test framework uses, allowing easy debugging. Change-Id: I956deda913b73dae5b1e1976417834ae4731f88a Signed-off-by: Klement Sekera --- test/Makefile | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'test') diff --git a/test/Makefile b/test/Makefile index 1bb3c6c2..02149803 100644 --- a/test/Makefile +++ b/test/Makefile @@ -68,6 +68,17 @@ test: verify-python-path verify-no-running-vpp reset $(PAPI_INSTALL_DONE) retest: verify-python-path verify-no-running-vpp reset $(call retest-func) +shell: verify-python-path $(PAPI_INSTALL_DONE) + @echo "source $(PYTHON_VENV_PATH)/bin/activate;\ + echo '***';\ + echo VPP_TEST_BUILD_DIR=$(VPP_TEST_BUILD_DIR);\ + echo VPP_TEST_BIN=$(VPP_TEST_BIN);\ + echo VPP_TEST_PLUGIN_PATH=$(VPP_TEST_PLUGIN_PATH);\ + echo VPP_TEST_INSTALL_PATH=$(VPP_TEST_INSTALL_PATH);\ + echo LD_LIBRARY_PATH=$(LD_LIBRARY_PATH);\ + echo '***';\ + exec