Skip to content

Commit ff0212e

Browse files
committed
TEST/COVERITY: Build without gtest and ignore ptmalloc
1 parent 1a15c5b commit ff0212e

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

buildlib/tools/coverity.sh

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,15 +54,19 @@ run_coverity() {
5454
xpmem_root=$(module show $XPMEM_MODULE 2>&1 | awk '/CPATH/ {print $3}' | sed -e 's,/include,,')
5555
with_xpmem="--with-xpmem=$xpmem_root"
5656

57-
${WORKSPACE}/contrib/configure-$ucx_build_type --prefix=$ucx_inst --with-cuda --with-gdrcopy --with-java $with_xpmem
57+
${WORKSPACE}/contrib/configure-$ucx_build_type \
58+
--prefix=$ucx_inst \
59+
--disable-gtest \
60+
--with-cuda \
61+
--with-gdrcopy \
62+
--with-java \
63+
$with_xpmem
5864
cov_build_id="cov_build_${ucx_build_type}"
5965
cov_build="$ucx_build_dir/$cov_build_id"
6066
rm -rf $cov_build
6167
mkdir -p $cov_build
6268
cov-build --dir $cov_build $MAKEP all
63-
if [ "${ucx_build_type}" == "devel" ]; then
64-
cov-manage-emit --dir $cov_build --tu-pattern "file('.*/test/gtest/common/googletest/*')" delete
65-
fi
69+
cov-manage-emit --dir $cov_build --tu-pattern "file('.*/src/ucm/ptmalloc*/*')" delete
6670
cov-analyze --jobs $parallel_jobs $COV_OPT --security --concurrency --dir $cov_build
6771
nerrors=$(cov-format-errors --dir $cov_build | awk '/Processing [0-9]+ errors?/ { print $2 }')
6872
rc=$(($rc+$nerrors))

0 commit comments

Comments
 (0)