diff options
author | Remko Tronçon <git@el-tramo.be> | 2009-06-01 12:25:00 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2009-06-01 12:37:01 (GMT) |
commit | e2d5d1c597cf1ba846dd50e775456ea828a6043e (patch) | |
tree | 9bf4fe1cd33a9291fd6970da0e6caefc16f7ffa9 /tools | |
parent | 639d4368c9a681b2a7c755a760d6f595ae81230a (diff) | |
download | swift-e2d5d1c597cf1ba846dd50e775456ea828a6043e.zip swift-e2d5d1c597cf1ba846dd50e775456ea828a6043e.tar.bz2 |
Filter coverage data.
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/coverage/FilterLCovData.py | 2 | ||||
-rwxr-xr-x | tools/coverage/GenerateCoverageResults.sh | 4 |
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 |