From: Jouni Malinen Date: Mon, 26 Dec 2016 10:09:53 +0000 (+0200) Subject: tests: Remove src/common/cli.c from code coverage report X-Git-Tag: hostap_2_7~1952 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e4b5f889b4e98456fc83deb6275e1e4103443ed3;p=thirdparty%2Fhostap.git 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 --- 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" |