1
# run lcov from scratch, always
6
# run lcov from scratch if the dir is not there
10
# reset run coverage tests
13
find . -name "*.gcda" -exec rm {} \;
14
if test -d tests/check; then make -C tests/check inspect; fi
17
# generate report based on current coverage data
20
lcov --directory . --capture --output-file lcov/lcov.info
21
lcov -l lcov/lcov.info | grep -v "`cd $(top_srcdir) && pwd`" | cut -d: -f1 > lcov/remove
22
lcov -l lcov/lcov.info | grep "tests/check/" | cut -d: -f1 >> lcov/remove
23
lcov -r lcov/lcov.info `cat lcov/remove` > lcov/lcov.cleaned.info
25
mv lcov/lcov.cleaned.info lcov/lcov.info
26
genhtml -t "$(PACKAGE_STRING)" -o lcov lcov/lcov.info
29
rsync -rvz -e ssh --delete lcov/* gstreamer.freedesktop.org:/srv/gstreamer.freedesktop.org/www/data/coverage/lcov/$(PACKAGE)