summaryrefslogtreecommitdiff
path: root/run
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-01-03 22:31:56 +0000
committerCarl Hetherington <cth@carlh.net>2015-01-03 22:31:56 +0000
commit7fb85beb1e4b655da0463d7d9c95b1181f5a6f00 (patch)
tree676b6ad7889939cabaf1f45eafc003c2130b8e0d /run
parent9655ed4740f08899698052f232256fcf7b77c58e (diff)
Tweaks to test setup; don't always compute coverage.
Diffstat (limited to 'run')
-rw-r--r--run/coverage8
-rwxr-xr-xrun/tests7
2 files changed, 8 insertions, 7 deletions
diff --git a/run/coverage b/run/coverage
new file mode 100644
index 00000000..db69a86c
--- /dev/null
+++ b/run/coverage
@@ -0,0 +1,8 @@
+#!/bin/bash
+
+# Calculate coverage
+cd build
+gcovr --root=$(pwd) --keep
+lcov --capture --directory $(pwd) --base-directory $(pwd) --output-file test/coverage.info
+lcov --remove test/coverage.info "/usr*" -o test/coverage.info
+genhtml test/coverage.info --output-directory test/coverage
diff --git a/run/tests b/run/tests
index e1beb731..4fe7a3d0 100755
--- a/run/tests
+++ b/run/tests
@@ -97,11 +97,4 @@ 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
-lcov --remove test/coverage.info "/usr*" -o test/coverage.info
-genhtml test/coverage.info --output-directory test/coverage
-
echo "PASS"