Skip to content

Commit c7ae30d

Browse files
committed
fix for aggegrated coverage results
I've faild to use lcov correctly so it did not aggegrate all tests
1 parent 0eadfaf commit c7ae30d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

generate_coverage.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,12 @@ do
4545
lcov --extract ${testname}.info.tmp "*${basepath}/include/**/*" --output-file ${testname}.info
4646
rm ${testname}.info.tmp
4747
cd ${basepath}/${builddir}
48-
lcov --add-tracefile ${testdir}/${testname}.info --output-file all_tests.info
48+
if [[ -e all_tests.info ]]
49+
then
50+
lcov --add-tracefile all_tests.info --add-tracefile ${testdir}/${testname}.info --output-file all_tests.info
51+
else
52+
lcov --add-tracefile ${testdir}/${testname}.info --output-file all_tests.info
53+
fi
4954
done
5055

5156
cd ${basepath}

0 commit comments

Comments
 (0)