From 467809f8d169e1a57443f4502d69dcefce1ed50f Mon Sep 17 00:00:00 2001 From: Konrad Sztyber Date: Thu, 24 Nov 2022 09:37:22 +0100 Subject: [PATCH] test/unit: generate coverage for reports for headers There's no reason to exclude include/ directory from coverage reports and it can actually be useful to gauge test coverage for functions defined in the headers. Signed-off-by: Konrad Sztyber Change-Id: I3efa5158e865fd26e7b5f6d7e3a83ca160ea0bfc Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/15633 Tested-by: SPDK CI Jenkins Community-CI: Mellanox Build Bot Reviewed-by: Shuhei Matsumoto Reviewed-by: Aleksey Marchuk Reviewed-by: Jim Harris --- test/unit/unittest.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/test/unit/unittest.sh b/test/unit/unittest.sh index f1cbce102..9609b24f0 100755 --- a/test/unit/unittest.sh +++ b/test/unit/unittest.sh @@ -275,7 +275,6 @@ if [ "$cov_avail" = "yes" ] && ! [[ "$CC_TYPE" == *"clang"* ]]; then $LCOV -q -r $UT_COVERAGE/ut_cov_unit.info "$rootdir/app/*" -o $UT_COVERAGE/ut_cov_unit.info $LCOV -q -r $UT_COVERAGE/ut_cov_unit.info "$rootdir/dpdk/*" -o $UT_COVERAGE/ut_cov_unit.info $LCOV -q -r $UT_COVERAGE/ut_cov_unit.info "$rootdir/examples/*" -o $UT_COVERAGE/ut_cov_unit.info - $LCOV -q -r $UT_COVERAGE/ut_cov_unit.info "$rootdir/include/*" -o $UT_COVERAGE/ut_cov_unit.info $LCOV -q -r $UT_COVERAGE/ut_cov_unit.info "$rootdir/lib/vhost/rte_vhost/*" -o $UT_COVERAGE/ut_cov_unit.info $LCOV -q -r $UT_COVERAGE/ut_cov_unit.info "$rootdir/test/*" -o $UT_COVERAGE/ut_cov_unit.info rm -f $UT_COVERAGE/ut_cov_base.info $UT_COVERAGE/ut_cov_test.info