]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Remove src/common/cli.c from code coverage report
authorJouni Malinen <j@w1.fi>
Mon, 26 Dec 2016 10:09:53 +0000 (12:09 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 26 Dec 2016 12:30:50 +0000 (14:30 +0200)
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 <j@w1.fi>
tests/hwsim/vm/combine-codecov.sh

index 3fe844389d3f774ec97ff2e79a2e8f21f866c670..af44aefe13e08f6c60e28b3424e9ebbb03c05951 100755 (executable)
@@ -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" |