diff options
author | Adrian Villin <avillin@cisco.com> | 2024-06-04 08:59:58 -0400 |
---|---|---|
committer | Dave Wallace <dwallacelf@gmail.com> | 2024-06-04 15:20:05 +0000 |
commit | f4972f9232b45357db6266e07993b967fc87b172 (patch) | |
tree | 6d60b7bf32b74db1484d4c98b38843c6a15fb740 | |
parent | e7901e88302e8db99a6d02eff19daff785207691 (diff) |
hs-test: fix coverage integration
- fixed 'make test-cov' not generating gcda files
Type: test
Change-Id: I9745c6501a97248ab343a5dbb39dddcc75f715fd
Signed-off-by: Adrian Villin <avillin@cisco.com>
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | extras/hs-test/Makefile | 9 |
2 files changed, 7 insertions, 3 deletions
diff --git a/.gitignore b/.gitignore index 5537f0dd791..a1550566b42 100644 --- a/.gitignore +++ b/.gitignore @@ -123,6 +123,7 @@ compile_commands.json /extras/hs-test/hs-test /extras/hs-test/http_server /extras/hs-test/.build.ok +/extras/hs-test/.build.cov.ok /extras/hs-test/summary/ # ./configure diff --git a/extras/hs-test/Makefile b/extras/hs-test/Makefile index b809b170e00..dc34e5332ea 100644 --- a/extras/hs-test/Makefile +++ b/extras/hs-test/Makefile @@ -100,6 +100,9 @@ build-vpp-gcov: .build.ok: build @touch .build.ok +.build.cov.ok: build-vpp-gcov + @touch .build.cov.ok + .build_debug.ok: build-debug @touch .build.ok @@ -122,7 +125,7 @@ test-debug: .deps.ok .build_debug.ok @bash ./script/compress.sh .PHONY: test-cov -test-cov: .deps.ok .build.ok +test-cov: .deps.ok .build.cov.ok -bash ./test --persist=$(PERSIST) --verbose=$(VERBOSE) \ --unconfigure=$(UNCONFIGURE) --debug=$(DEBUG) --test=$(TEST-HS) --cpus=$(CPUS) \ --vppsrc=$(VPPSRC) @@ -141,9 +144,9 @@ build: .deps.ok build-vpp-release build-go .PHONY: build-cov build-cov: .deps.ok build-vpp-gcov build-go - @rm -f .build.vpp + @rm -f .build.cov.ok bash ./script/build_hst.sh gcov - @touch .build.vpp + @touch .build.cov.ok .PHONY: build-debug build-debug: .deps.ok build-vpp-debug build-go |