From f6e0f4556eabc8c2629d16ae599a153392d30d05 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 2 Jun 2017 00:59:35 +0200 Subject: build: provide easy code coverage measuring Closes #1528 --- scripts/coverage.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 scripts/coverage.sh (limited to 'scripts') diff --git a/scripts/coverage.sh b/scripts/coverage.sh new file mode 100755 index 000000000..5bed21cc4 --- /dev/null +++ b/scripts/coverage.sh @@ -0,0 +1,11 @@ +#!/bin/sh + +./buildconf +mkdir -p cvr +cd cvr +../configure --disable-shared --enable-debug --enable-maintainer-mode --enable-code-coverage +make -sj +make TFLAGS=-n test-nonflaky +lcov -d . -c -o cov.lcov +genhtml cov.lcov --output-directory coverage --title "curl code coverage" +tar -cjf curl-coverage.tar.bz2 coverage -- cgit v1.2.3