summaryrefslogtreecommitdiffstats
path: root/extras/hs-test/Makefile
diff options
context:
space:
mode:
authorFilip Tehlar <ftehlar@cisco.com>2023-09-05 15:36:28 +0200
committerFlorin Coras <florin.coras@gmail.com>2023-09-05 15:55:55 +0000
commit109f3ce4eba0a6ba869752f24cfaae73ab70bb2d (patch)
tree338b184b4f9beca38ddcd6b8008cf52f656983ea /extras/hs-test/Makefile
parent3b770881b95ee33beb525513ebaece4ac93469dc (diff)
hs-test: point gdb to vpp source files
Type: test Change-Id: Ie5867737e5d49fd45cc15b690af3493263fb2f6f Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
Diffstat (limited to 'extras/hs-test/Makefile')
-rw-r--r--extras/hs-test/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/extras/hs-test/Makefile b/extras/hs-test/Makefile
index 7a5fb138397..f0ec755afb2 100644
--- a/extras/hs-test/Makefile
+++ b/extras/hs-test/Makefile
@@ -23,6 +23,10 @@ ifeq ($(CPUS),)
CPUS=1
endif
+ifeq ($(VPPSRC),)
+VPPSRC=$(shell pwd)/../..
+endif
+
ifeq ($(UBUNTU_CODENAME),)
UBUNTU_CODENAME=$(shell grep '^UBUNTU_CODENAME=' /etc/os-release | cut -f2- -d=)
endif
@@ -55,6 +59,7 @@ help:
@echo " DEBUG=[true|false] - attach VPP to GDB"
@echo " TEST=[test-name] - specific test to run"
@echo " CPUS=[n-cpus] - number of cpus to run with vpp"
+ @echo " VPPSRC=[path-to-vpp-src] - path to vpp source files (for gdb)"
@echo
@echo "List of all tests:"
$(call list_tests)
@@ -72,7 +77,8 @@ build-vpp-debug:
.PHONY: test
test: .deps.ok .build.vpp
@bash ./test --persist=$(PERSIST) --verbose=$(VERBOSE) \
- --unconfigure=$(UNCONFIGURE) --debug=$(DEBUG) --test=$(TEST) --cpus=$(CPUS)
+ --unconfigure=$(UNCONFIGURE) --debug=$(DEBUG) --test=$(TEST) --cpus=$(CPUS) \
+ --vppsrc=$(VPPSRC)
build-go:
go build ./tools/http_server