summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2017-06-02 00:59:35 +0200
committerDaniel Stenberg <daniel@haxx.se>2017-06-02 13:15:06 +0200
commitf6e0f4556eabc8c2629d16ae599a153392d30d05 (patch)
tree1e2086e73968ef6ca8558b919b014e731860db09 /scripts
parentefc7c1d86f1543870712d1a0ef4eecd67e933921 (diff)
downloadcurl-f6e0f4556eabc8c2629d16ae599a153392d30d05.tar.gz
build: provide easy code coverage measuring
Closes #1528
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/coverage.sh11
1 files changed, 11 insertions, 0 deletions
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