From e4b5f889b4e98456fc83deb6275e1e4103443ed3 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Mon, 26 Dec 2016 12:09:53 +0200 Subject: [PATCH] tests: Remove src/common/cli.c from code coverage report This file is used only by hostapd_cli and wpa_cli and neither of those are currently included in code coverage reporting. Avoid dropping the coverage numbers by code that cannot be reached due to not being included in the programs that are covered. Signed-off-by: Jouni Malinen --- tests/hwsim/vm/combine-codecov.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/hwsim/vm/combine-codecov.sh b/tests/hwsim/vm/combine-codecov.sh index 3fe844389..af44aefe1 100755 --- a/tests/hwsim/vm/combine-codecov.sh +++ b/tests/hwsim/vm/combine-codecov.sh @@ -20,6 +20,7 @@ lcov $args -o $LOGDIR/combined.info > $LOGDIR/combined-lcov.log 2>&1 cat $LOGDIR/combined.info | sed "/^TN:$/{N;s/TN:\n\(SF:.*\/bits\/byteswap.h$\)/\1/};/^SF:.*\/bits\/byteswap.h$/,/^end_of_record$/d" | sed "/^TN:$/{N;s/TN:\n\(SF:.*\/common\/wpa_ctrl.c$\)/\1/};/^SF:.*\/common\/wpa_ctrl.c$/,/^end_of_record$/d" | + sed "/^TN:$/{N;s/TN:\n\(SF:.*\/common\/cli.c$\)/\1/};/^SF:.*\/common\/cli.c$/,/^end_of_record$/d" | sed "/^TN:$/{N;s/TN:\n\(SF:.*\/utils\/edit.c$\)/\1/};/^SF:.*\/utils\/edit.c$/,/^end_of_record$/d" | sed "/^TN:$/{N;s/TN:\n\(SF:.*_module_tests.c$\)/\1/};/^SF:.*_module_tests.c$/,/^end_of_record$/d" | sed "/^TN:$/{N;s/TN:\n\(SF:.*\/hostapd\/hostapd_cli.c$\)/\1/};/^SF:.*\/hostapd\/hostapd_cli.c$/,/^end_of_record$/d" |