summaryrefslogtreecommitdiff
path: root/run/tests
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2014-12-27 23:25:50 +0000
committerCarl Hetherington <cth@carlh.net>2014-12-27 23:25:50 +0000
commit0a42284a3d1eb6d9fe6dfbdec02a702d7f613ae1 (patch)
treed5d210ca85d8e50f1353698df7b02ada84299cf5 /run/tests
parent67ba57e71faca808a71f168961f5f15ed3be12fe (diff)
Add gcov test coverage (written to build/test/coverage) and a couple more tests.
Diffstat (limited to 'run/tests')
-rwxr-xr-xrun/tests6
1 files changed, 6 insertions, 0 deletions
diff --git a/run/tests b/run/tests
index 5c99f479..721651e3 100755
--- a/run/tests
+++ b/run/tests
@@ -97,4 +97,10 @@ fi
# and check that they are right
$dcpinfo -s $private/JourneyToJah_TLR-1_F_EN-DE-FR_CH_51_2K_LOK_20140225_DGL_SMPTE_OV >> $work/jah.log
+# Calculate coverage
+cd build
+gcovr --root=$(pwd) --keep
+lcov --capture --directory $(pwd) --base-directory $(pwd) --output-file test/coverage.info
+genhtml test/coverage.info --output-directory test/coverage
+
echo "PASS"