summaryrefslogtreecommitdiff
path: root/tests/coverage.sh
blob: 6deae8461ca36c293a7739ceb88890e91f1f5dbe (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh

# This script builds the code coverage of the testsuite.
# The shadow utils must have been compiled with -fprofile-arcs -ftest-coverage

cd ../build/shadow-4.1.3.1/
rm -rf ../coverage
mkdir ../coverage
lcov --directory . --capture --output-file=lcov.data

genhtml --frames --output-directory ../coverage/ --show-details lcov.data