Disable lcov when using clang
We want to add clang to autotest per patch, but lcov takes considerable time to process clang coverage. The test will be just building SPDK using clang. Details: https://github.com/spdk/spdk/issues/1693 Signed-off-by: Maciej Wawryk <maciejx.wawryk@intel.com> Change-Id: I085adb5498613222d36a0607b1fd260a2f4088b9 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/5169 Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
This commit is contained in:
parent
86e8085d58
commit
ddba8440c0
@ -324,7 +324,11 @@ trap - SIGINT SIGTERM EXIT
|
|||||||
# catch any stray core files
|
# catch any stray core files
|
||||||
process_core
|
process_core
|
||||||
|
|
||||||
if hash lcov; then
|
# lcov takes considerable time to process clang coverage.
|
||||||
|
# Disabling lcov allow us to do this.
|
||||||
|
# More information: https://github.com/spdk/spdk/issues/1693
|
||||||
|
CC_TYPE=$(grep CC_TYPE mk/cc.mk)
|
||||||
|
if hash lcov && ! [[ "$CC_TYPE" == *"clang"* ]]; then
|
||||||
# generate coverage data and combine with baseline
|
# generate coverage data and combine with baseline
|
||||||
$LCOV -q -c -d $src -t "$(hostname)" -o $out/cov_test.info
|
$LCOV -q -c -d $src -t "$(hostname)" -o $out/cov_test.info
|
||||||
$LCOV -q -a $out/cov_base.info -a $out/cov_test.info -o $out/cov_total.info
|
$LCOV -q -a $out/cov_base.info -a $out/cov_test.info -o $out/cov_total.info
|
||||||
|
@ -221,7 +221,11 @@ if grep -q '#define SPDK_CONFIG_VHOST 1' $rootdir/include/spdk/config.h; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# local unit test coverage
|
# local unit test coverage
|
||||||
if [ "$cov_avail" = "yes" ]; then
|
# lcov takes considerable time to process clang coverage.
|
||||||
|
# Disabling lcov allow us to do this.
|
||||||
|
# More information: https://github.com/spdk/spdk/issues/1693
|
||||||
|
CC_TYPE=$(grep CC_TYPE mk/cc.mk)
|
||||||
|
if [ "$cov_avail" = "yes" ] && ! [[ "$CC_TYPE" == *"clang"* ]]; then
|
||||||
$LCOV -q -d . -c -t "$(hostname)" -o $UT_COVERAGE/ut_cov_test.info
|
$LCOV -q -d . -c -t "$(hostname)" -o $UT_COVERAGE/ut_cov_test.info
|
||||||
$LCOV -q -a $UT_COVERAGE/ut_cov_base.info -a $UT_COVERAGE/ut_cov_test.info -o $UT_COVERAGE/ut_cov_total.info
|
$LCOV -q -a $UT_COVERAGE/ut_cov_base.info -a $UT_COVERAGE/ut_cov_test.info -o $UT_COVERAGE/ut_cov_total.info
|
||||||
$LCOV -q -a $UT_COVERAGE/ut_cov_total.info -o $UT_COVERAGE/ut_cov_unit.info
|
$LCOV -q -a $UT_COVERAGE/ut_cov_total.info -o $UT_COVERAGE/ut_cov_unit.info
|
||||||
|
Loading…
Reference in New Issue
Block a user