diff options
Diffstat (limited to 'test/Makefile')
-rw-r--r-- | test/Makefile | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/test/Makefile b/test/Makefile index 79feba9165e..17bf33d0884 100644 --- a/test/Makefile +++ b/test/Makefile @@ -388,24 +388,32 @@ 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" - -COV_REM_ALT_TEST="*/plugins/hs_apps/*" "*/plugins/http/*.h" +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) - @lcov --ignore-errors --capture \ + @lcov --ignore-errors unused,empty,mismatch,gcov --capture \ --directory $(VPP_BUILD_DIR) \ --output-file $(BUILD_COV_DIR)/coverage$(HS_TEST).info @test -z "$(EXTERN_COV_DIR)" || \ - lcov --ignore-errors --capture \ + lcov --ignore-errors unused,empty,mismatch,gcov --capture \ --directory $(EXTERN_COV_DIR) \ --output-file $(BUILD_COV_DIR)/extern-coverage$(HS_TEST).info - @lcov --ignore-errors --remove $(BUILD_COV_DIR)/coverage$(HS_TEST).info \ + @lcov --ignore-errors unused,empty,mismatch,gcov --remove $(BUILD_COV_DIR)/coverage$(HS_TEST).info \ $(COV_REM_NOT_CODE) \ $(COV_REM_DRIVERS) \ $(COV_REM_TODO_NO_TEST) \ $(COV_REM_UNUSED_FEAT) \ - $(COV_REM_ALT_TEST) \ + $(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 |