diff options
author | 2025-03-13 10:35:09 -0400 | |
---|---|---|
committer | 2025-03-13 10:35:09 -0400 | |
commit | 01fc649c671d3f210bbece5d48109ebe0875813e (patch) | |
tree | 44564a3d6a6ef00393927d1171a348a21e44257e | |
parent | f6b4221943c5aefd8f6dda7909703149b8c19d76 (diff) |
hs-test: ignore some never used code paths for coverage generation
Type: fix
Change-Id: I4318efee62d7fdeb936b00aafd431a4927899f9b
Signed-off-by: Semir Sionek <ssionek@cisco.com>
-rw-r--r-- | test/Makefile | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/Makefile b/test/Makefile index 1d22832edb7..17bf33d0884 100644 --- a/test/Makefile +++ b/test/Makefile @@ -388,6 +388,16 @@ COV_REM_TODO_NO_TEST="*/vpp-api/client/*" "*/plugins/prom/*" \ "*/vnet/ipsec/esp_format.c" "*/vnet/ethernet/sfp.c" \ "*/vnet/ethernet/ethernet_format_fns.h" \ "*/plugins/ikev2/ikev2_format.c" "*/vnet/bier/bier_types.c" +ifeq ($(HS-TEST),1) +COV_REM_HST_UNUSED_FEAT= "*/plugins/ping/*" "*/plugins/unittest/mpcap_node.c" "*/vnet/bfd/*" \ + "*/vnet/bier/*" "*/vnet/bonding/*" "*/vnet/classify/*" \ + "*/vnet/gso/*" "*/vnet/ipfix-export/*" "*/vnet/ipip/*" \ + "*/vnet/ipsec/*" "*/vnet/l2/*" "*/vnet/mpls/*" \ + "*/vnet/pg/*" "*/vnet/policer/*" "*/vnet/snap/*" \ + "*/vnet/span/*" "*/vnet/srv6/*" "*/vnet/teib/*" \ + "*/vnet/tunnel/*" "*/vpp-api/vapi/*" "*/vpp/app/vpe_cli.c" \ + "*/vppinfra/pcap.c" "*/vppinfra/pcap_funcs.h" +endif .PHONY: cov-post cov-post: wipe-cov $(BUILD_COV_DIR) @@ -403,6 +413,7 @@ cov-post: wipe-cov $(BUILD_COV_DIR) $(COV_REM_DRIVERS) \ $(COV_REM_TODO_NO_TEST) \ $(COV_REM_UNUSED_FEAT) \ + $(COV_REM_HST_UNUSED_FEAT) \ -o $(BUILD_COV_DIR)/coverage-filtered$(HS_TEST).info @genhtml $(BUILD_COV_DIR)/coverage-filtered$(HS_TEST).info \ --output-directory $(BUILD_COV_DIR)/html |