summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2010-03-28 12:42:31 (GMT)
committerRemko Tronçon <git@el-tramo.be>2010-03-28 12:42:31 (GMT)
commit44dd6bc44854c0e2b0f076d39db9ef3b227ab3aa (patch)
treede96319fb866ac431e52a1b14e0b9970ac24bbce /BuildTools/Coverage/FilterLCovData.py
parent625d6a9f18c2377cdc3180e74b773ce3cbb2dcba (diff)
downloadswift-44dd6bc44854c0e2b0f076d39db9ef3b227ab3aa.zip
swift-44dd6bc44854c0e2b0f076d39db9ef3b227ab3aa.tar.bz2
Removing BuildTools module.
Diffstat (limited to 'BuildTools/Coverage/FilterLCovData.py')
-rwxr-xr-xBuildTools/Coverage/FilterLCovData.py32
1 files changed, 0 insertions, 32 deletions
diff --git a/BuildTools/Coverage/FilterLCovData.py b/BuildTools/Coverage/FilterLCovData.py
deleted file mode 100755
index a3a7ee5..0000000
--- a/BuildTools/Coverage/FilterLCovData.py
+++ /dev/null
@@ -1,32 +0,0 @@
-#!/usr/bin/env python
-
-# TODO: Add uncovered non-ignored files
-
-import sys, re, os.path
-
-assert(len(sys.argv) == 2)
-
-def isIgnored(file) :
- return (file.find("/Swiften/") == -1 and file.find("/Slimber/") == -1 and file.find("/Swift/") == -1) or (file.find("/UnitTest/") != -1 or file.find("/QA/") != -1)
-
-
-output = []
-inputFile = open(sys.argv[1])
-inIgnoredFile = False
-for line in inputFile.readlines() :
- if inIgnoredFile :
- if line == "end_of_record\n" :
- inIgnoredFile = False
- else :
- if line.startswith("SF:") and isIgnored(line) :
- inIgnoredFile = True
- else :
- m = re.match("SF:(.*)", line)
- if m :
- line = "SF:" + os.path.realpath(m.group(1)) + "\n"
- output.append(line)
-inputFile.close()
-
-outputFile = open(sys.argv[1], 'w')
-outputFile.write(''.join(output))
-outputFile.close()