From 8ed5dad681acb69031146f52b8610459581682c7 Mon Sep 17 00:00:00 2001 From: Reijo Tomperi Date: Mon, 5 Oct 2009 10:51:09 +0300 Subject: [PATCH] Add script generate_coverage_report for generating test coverage report using gcov and lcov --- generate_coverage_report | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 generate_coverage_report diff --git a/generate_coverage_report b/generate_coverage_report new file mode 100755 index 000000000..86a9adc74 --- /dev/null +++ b/generate_coverage_report @@ -0,0 +1,11 @@ +#!/bin/bash +make clean +rm -r coverage_report +make test CXXFLAGS="-Wall -Wextra -pedantic -g -fprofile-arcs -ftest-coverage" +gcov src/*.cpp -o src/ +lcov --directory ./ --capture --output-file lcov.info -b ./ +genhtml lcov.info -o coverage_report +rm src/*.gcda +rm src/*.gcno +rm lcov.info +make clean