From ec5c40b83acae400a8cc1a18ad897b6365774559 Mon Sep 17 00:00:00 2001 From: Filip Tehlar Date: Tue, 28 Feb 2023 18:59:15 +0100 Subject: hs-test: add support for running vpp in gdb Type: test Signed-off-by: Filip Tehlar Change-Id: I6e03b88ca013cafd73f424ea63f706f105bebe6b --- extras/hs-test/Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'extras/hs-test/Makefile') diff --git a/extras/hs-test/Makefile b/extras/hs-test/Makefile index 268a518b7ca..29cbd0ea01e 100644 --- a/extras/hs-test/Makefile +++ b/extras/hs-test/Makefile @@ -15,6 +15,10 @@ ifeq ($(TEST),) TEST=all endif +ifeq ($(DEBUG),) +DEBUG=false +endif + list_tests = @(grep -r ') Test' *_test.go | cut -d '*' -f2 | cut -d '(' -f1 | \ tr -d ' ' | tr ')' '/' | sed 's/Suite//') @@ -33,6 +37,7 @@ help: @echo " PERSIST=[true|false] - whether clean up topology and dockers after test" @echo " VERBOSE=[true|false] - verbose output" @echo " UNCONFIGURE=[true|false] - unconfigure selected test" + @echo " DEBUG=[true|false] - attach VPP to GDB" @echo " TEST=[test-name] - specific test to run" @echo @echo "List of all tests:" @@ -51,7 +56,7 @@ build-vpp-debug: .PHONY: test test: .deps.ok .build.vpp @bash ./test --persist=$(PERSIST) --verbose=$(VERBOSE) \ - --unconfigure=$(UNCONFIGURE) --test=$(TEST) + --unconfigure=$(UNCONFIGURE) --debug=$(DEBUG) --test=$(TEST) build-go: go build ./tools/http_server -- cgit 1.2.3-korg