summaryrefslogtreecommitdiff
path: root/coverage
diff options
context:
space:
mode:
authorThomas Vander Stichele <thomas@apestaart.org>2006-07-03 13:29:35 +0000
committerThomas Vander Stichele <thomas@apestaart.org>2006-07-03 13:29:35 +0000
commitdd173e2720ac21e4a47c97705d7ff32271a0ee66 (patch)
tree8a955f4a6ac90d0a075b96f6ba4b0a751e8ff6bb /coverage
parenta98b370bd49bc3f3225bbd9013cda5a53789f53d (diff)
downloadgstreamer-common-dd173e2720ac21e4a47c97705d7ff32271a0ee66.tar.gz
coverage/lcov.mak: fix up rules to work with gst-python as well run "make lcov" to test and generate the reports run ...
Original commit message from CVS: * coverage/lcov.mak: fix up rules to work with gst-python as well run "make lcov" to test and generate the reports run "make lcov-reset" to redo it after that
Diffstat (limited to 'coverage')
-rw-r--r--coverage/lcov.mak21
1 files changed, 17 insertions, 4 deletions
diff --git a/coverage/lcov.mak b/coverage/lcov.mak
index f375594..6d848f5 100644
--- a/coverage/lcov.mak
+++ b/coverage/lcov.mak
@@ -1,11 +1,21 @@
+# run lcov from scratch, always
+lcov-reset:
+ make lcov-run
+ make lcov-report
+
+# run lcov from scratch if the dir is not there
lcov:
+ make lcov-reset
+
+# reset run coverage tests
+lcov-run:
+ @-rm -rf lcov
find . -name "*.gcda" -exec rm {} \;
- make -C tests/check inspect
- make -C tests/check check
- make lcov-report
+ if test -d tests/check; then make -C tests/check inspect; fi
+ make check
+# generate report based on current coverage data
lcov-report:
- @-rm -rf lcov
mkdir lcov
lcov --directory . --capture --output-file lcov/lcov.info
lcov -l lcov/lcov.info | grep -v "`cd $(top_srcdir) && pwd`" | cut -d: -f1 > lcov/remove
@@ -14,3 +24,6 @@ lcov-report:
rm lcov/remove
mv lcov/lcov.cleaned.info lcov/lcov.info
genhtml -t "$(PACKAGE_STRING)" -o lcov lcov/lcov.info
+
+lcov-upload: lcov
+ rsync -rvz -e ssh --delete lcov/* gstreamer.freedesktop.org:/srv/gstreamer.freedesktop.org/www/data/coverage/lcov/$(PACKAGE)