summaryrefslogtreecommitdiffstats
path: root/extras/hs-test/Makefile
diff options
context:
space:
mode:
authorFilip Tehlar <ftehlar@cisco.com>2023-04-28 10:29:47 +0200
committerFlorin Coras <florin.coras@gmail.com>2023-05-20 15:51:02 +0000
commit608d0069d98579b0635be978dea8e316f77a8841 (patch)
treeda6d23516d9b86818b577e457661c2ae58f7c776 /extras/hs-test/Makefile
parent47f352710824c373f8130ba632022b47cb27505b (diff)
hs-test: support for multiple workers
Type: test Signed-off-by: Filip Tehlar <ftehlar@cisco.com> Change-Id: Ie90e4b02c268bc3ca40171b03829f5686fb83162
Diffstat (limited to 'extras/hs-test/Makefile')
-rw-r--r--extras/hs-test/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/extras/hs-test/Makefile b/extras/hs-test/Makefile
index 14d95fc060a..3d7673a7267 100644
--- a/extras/hs-test/Makefile
+++ b/extras/hs-test/Makefile
@@ -19,6 +19,10 @@ ifeq ($(DEBUG),)
DEBUG=false
endif
+ifeq ($(CPUS),)
+CPUS=1
+endif
+
ifeq ($(UBUNTU_CODENAME),)
UBUNTU_CODENAME=$(shell grep '^UBUNTU_CODENAME=' /etc/os-release | cut -f2- -d=)
endif
@@ -47,6 +51,7 @@ help:
@echo " UNCONFIGURE=[true|false] - unconfigure selected test"
@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
@echo "List of all tests:"
$(call list_tests)
@@ -64,7 +69,7 @@ build-vpp-debug:
.PHONY: test
test: .deps.ok .build.vpp
@bash ./test --persist=$(PERSIST) --verbose=$(VERBOSE) \
- --unconfigure=$(UNCONFIGURE) --debug=$(DEBUG) --test=$(TEST)
+ --unconfigure=$(UNCONFIGURE) --debug=$(DEBUG) --test=$(TEST) --cpus=$(CPUS)
build-go:
go build ./tools/http_server