Skip to content

Instantly share code, notes, and snippets.

@jonasnick
Created Nov 23, 2016
Embed
What would you like to do?
secp lcov
main main.gcno: main.c
gcc --coverage -O0 -o main main.c -I../secp256k1/include
main.gcda: main
./main
main.c.gcov: main.gcda
gcov main
coverage.info: main.c.gcov
lcov --capture --rc lcov_branch_coverage=1 --directory . --output-file coverage.info
html/index.html: coverage.info
genhtml coverage.info --rc lcov_branch_coverage=1 --branch-coverage --output-directory html
clean:
rm main.gcda
rm main.gcno
rm coverage.info
rm -rf html
rm main
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment