Skip to content

Commit fd0ffbc

Browse files
author
Kai Liu
committed
Disable the html-based coverage report by default
1 parent 84f8185 commit fd0ffbc

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ release:
145145

146146
coverage:
147147
$(MAKE) clean
148-
COVERAGEFLAGS="-fprofile-arcs -ftest-coverage" LDFLAGS+="-lgcov" $(MAKE) all check
148+
COVERAGEFLAGS="-fprofile-arcs -ftest-coverage" LDFLAGS+="-lgcov" $(MAKE) all check -j32
149149
(cd coverage; ./coverage_test.sh)
150150
# Delete intermediate files
151151
find . -type f -regex ".*\.\(\(gcda\)\|\(gcno\)\)" -exec rm {} \;

coverage/coverage_test.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,11 @@ $GCOV --preserve-paths --relative-only --no-output $GCNO_FILES 2>/dev/null |
4444
tee -a $RECENT_REPORT &&
4545
echo -e "Generated coverage report for recently updated files: $RECENT_REPORT\n"
4646

47+
# Unless otherwise specified, we'll not generate html report by default
48+
if [ -z "$HTML" ]; then
49+
exit 0
50+
fi
51+
4752
# Generate the html report. If we cannot find lcov in this machine, we'll simply
4853
# skip this step.
4954
echo "Generating the html coverage report..."

0 commit comments

Comments
 (0)