forked from boostorg/beast
1 parent
710cc53331
commit
03c4f0db4f
9 files changed
+244
-245
No files matched your search
@@ -136,19 +136,20 @@ function build_bjam ()
|
||||
build_bjam
|
||||
|
||||
if [[ $VARIANT == "beast_coverage" ]]; then
|
||||
GCOV=${GCOV:-gcov}
|
||||
# for lcov to work effectively, the paths and includes
|
||||
# passed to the compiler should not contain "." or "..".
|
||||
# (this runs in $BOOST_ROOT)
|
||||
lcov --version
|
||||
find "$BOOST_ROOT" -name "*.gcda" | xargs rm -f
|
||||
rm -f "$BOOST_ROOT/*.info"
|
||||
lcov --no-external -c -i -d "$BOOST_ROOT" -o baseline.info > /dev/null
|
||||
lcov --gcov-tool $GCOV --no-external -c -i -d "$BOOST_ROOT" -o baseline.info > /dev/null
|
||||
run_tests "$BIN_DIR" fat-tests
|
||||
# https://bugs.launchpad.net/ubuntu/+source/lcov/+bug/1163758
|
||||
lcov --no-external -c -d "$BOOST_ROOT" -o testrun-all.info > /dev/null 2>&1
|
||||
lcov -a baseline.info -a testrun-all.info -o lcov-diff.info > /dev/null
|
||||
lcov -e "lcov-diff.info" "$INC_DIR/*" -o lcov.info > /dev/null
|
||||
lcov --remove "lcov.info" "$INC_DIR/_experimental/*" -o lcov.info > /dev/null
|
||||
lcov --gcov-tool $GCOV --no-external -c -d "$BOOST_ROOT" -o testrun-all.info > /dev/null 2>&1
|
||||
lcov --gcov-tool $GCOV -a baseline.info -a testrun-all.info -o lcov-diff.info > /dev/null
|
||||
lcov --gcov-tool $GCOV -e "lcov-diff.info" "$INC_DIR/*" -o lcov.info > /dev/null
|
||||
lcov --gcov-tool $GCOV --remove "lcov.info" "$INC_DIR/_experimental/*" -o lcov.info > /dev/null
|
||||
echo "Change working directory for codecov:"
|
||||
pwd
|
||||
pushd .
|
||||
|
||||
Reference in new issue
Block a user