summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2009-06-01 12:25:00 (GMT)
committerRemko Tronçon <git@el-tramo.be>2009-06-01 12:37:01 (GMT)
commite2d5d1c597cf1ba846dd50e775456ea828a6043e (patch)
tree9bf4fe1cd33a9291fd6970da0e6caefc16f7ffa9 /tools
parent639d4368c9a681b2a7c755a760d6f595ae81230a (diff)
downloadswift-contrib-e2d5d1c597cf1ba846dd50e775456ea828a6043e.zip
swift-contrib-e2d5d1c597cf1ba846dd50e775456ea828a6043e.tar.bz2
Filter coverage data.
Diffstat (limited to 'tools')
-rwxr-xr-xtools/coverage/FilterLCovData.py2
-rwxr-xr-xtools/coverage/GenerateCoverageResults.sh4
2 files changed, 4 insertions, 2 deletions
diff --git a/tools/coverage/FilterLCovData.py b/tools/coverage/FilterLCovData.py
index 4127874..8b8d24e 100755
--- a/tools/coverage/FilterLCovData.py
+++ b/tools/coverage/FilterLCovData.py
@@ -15,6 +15,8 @@ for line in inputFile.readlines() :
if line.startswith("SF:") and (line.find("/Swiften/") == -1 or line.find("/UnitTest/") != -1 or line.find("/QA/") != -1 or line.find("/3rdParty/") != -1):
inIgnoredFile = True
else :
+ if line.startswith("SF:") :
+ line = line.replace("/./Swiften/", "/Swiften/")
output.append(line)
inputFile.close()
diff --git a/tools/coverage/GenerateCoverageResults.sh b/tools/coverage/GenerateCoverageResults.sh
index a902f4d..75efaa9 100755
--- a/tools/coverage/GenerateCoverageResults.sh
+++ b/tools/coverage/GenerateCoverageResults.sh
@@ -31,11 +31,11 @@ $LCOVDIR/lcov --zerocounters --directory $SOURCE_DIR
# All tests
make -C $SOURCE_DIR test
$LCOVDIR/lcov --capture --directory $SOURCE_DIR -b $SOURCE_DIR --output-file $OUTPUT_DIR/all.info --test-name all
-#$SCRIPT_DIR/FilterLCovData.py $OUTPUT_DIR/all.info
+$SCRIPT_DIR/FilterLCovData.py $OUTPUT_DIR/all.info
# Generate HTML
$LCOVDIR/gendesc -o $OUTPUT_DIR/descriptions $SCRIPT_DIR/descriptions.txt
-$LCOVDIR/genhtml --title "Swift Coverage" --output-directory $OUTPUT_DIR $OUTPUT_DIR/all.info
+$LCOVDIR/genhtml --no-function-coverage --title "Swift Coverage" --output-directory $OUTPUT_DIR $OUTPUT_DIR/all.info
# Generate summary
$SCRIPT_DIR/GenerateSummary.py $OUTPUT_DIR/all.info $OUTPUT_DIR/summary