资源简介
IGSTK5.2
代码片段和文件信息
#!/usr/bin/python
# Program to process output of ctest with valgrind
fh = open(“nightlyMemCheck10.log““r“)
fhw = open(“valgrindSuppressionsIGSTK3_4_1c.supp““w“)
igot = fh.readlines()
linenumber1 = 0
numlines = len(igot)
listSuppressions = []
#if no prior suppressions new???? put 0
#otherwise start it off with that prior number
#numSuppressions = 0
numSuppressions = 1094
#process the ctest output keying on valgrind output
for line in igot:
where = line.find(““)
if where > -1:
startLine= igot[linenumber1-1]
#print “startLine“startLine
where2 = startLine.find(“{“)
#print “where2“ where2
if where2 > -1:
linenumber2 = linenumber1
for line2 in igot[linenumber1:numlines]:
where3 = line2.find(“}“)
linenumber2+= 1
if where3 > -1:
label = “ new%d\n“%(numSuppressions+1)
newSuppression = []
newSuppression.append(startLine)
#no need to add ““
for line2 in range(linenumber1+1 linenumber2):
newSuppression.append(igot[line2])
#print “line2“igot[line2]
listIsFound = False
for listEntry in listSuppressions:
#print “listEntry[3:]“ listEntry[3:]
#print “listIsFound“ listIsFound
#print “newSuppression[2:]“newSuppression[2:]
if listEntry[3:]==newSuppression[2:]:
listIsFound= True
if (listIsFound == False):
numSuppressions+= 1
newSuppression.insert(1label)
listSuppressions.append(newSuppression)
for lineSupp in newSuppression:
fhw.write(lineSupp)
print numSuppressions
break
linenumber1+= 1
fhw.close()
fh.close()
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2014-03-26 19:41 IGSTK-IGSTK-5-2.cx_patch_3-6-0\
文件 1064 2014-03-26 19:41 IGSTK-IGSTK-5-2.cx_patch_3-6-0\.hooks-config.bash
目录 0 2014-03-26 19:41 IGSTK-IGSTK-5-2.cx_patch_3-6-0\CMake\
文件 3748 2014-03-26 19:41 IGSTK-IGSTK-5-2.cx_patch_3-6-0\CMake\CTestCustom.cmake.in
文件 1283 2014-03-26 19:41 IGSTK-IGSTK-5-2.cx_patch_3-6-0\CMake\ExtractMTCVersion.cmake
文件 19311 2014-03-26 19:41 IGSTK-IGSTK-5-2.cx_patch_3-6-0\CMake\IGSTKValgrindSuppressions.supp
文件 2223 2014-03-26 19:41 IGSTK-IGSTK-5-2.cx_patch_3-6-0\CMake\itkCheckCXXAcceptsFlags.cmake
文件 2184 2014-03-26 19:41 IGSTK-IGSTK-5-2.cx_patch_3-6-0\CMake\processValgrind.py
文件 20829 2014-03-26 19:41 IGSTK-IGSTK-5-2.cx_patch_3-6-0\CMakeLists.txt
文件 236 2014-03-26 19:41 IGSTK-IGSTK-5-2.cx_patch_3-6-0\CTestConfig.cmake
文件 4102 2014-03-26 19:41 IGSTK-IGSTK-5-2.cx_patch_3-6-0\Copyright.txt
文件 236 2014-03-26 19:41 IGSTK-IGSTK-5-2.cx_patch_3-6-0\DartConfig.cmake
目录 0 2014-03-26 19:41 IGSTK-IGSTK-5-2.cx_patch_3-6-0\Examples\
文件 1136 2014-03-26 19:41 IGSTK-IGSTK-5-2.cx_patch_3-6-0\Examples\CMakeLists.txt
目录 0 2014-03-26 19:41 IGSTK-IGSTK-5-2.cx_patch_3-6-0\Examples\FourViewsAndTracking\
文件 490 2014-03-26 19:41 IGSTK-IGSTK-5-2.cx_patch_3-6-0\Examples\FourViewsAndTracking\CMakeLists.txt
文件 4110 2014-03-26 19:41 IGSTK-IGSTK-5-2.cx_patch_3-6-0\Examples\FourViewsAndTracking\FourViewsAndTracking.cxx
文件 2436 2014-03-26 19:41 IGSTK-IGSTK-5-2.cx_patch_3-6-0\Examples\FourViewsAndTracking\FourViewsAndTrackingGUI.fl
文件 9052 2014-03-26 19:41 IGSTK-IGSTK-5-2.cx_patch_3-6-0\Examples\FourViewsAndTracking\FourViewsAndTrackingImplementation.h
目录 0 2014-03-26 19:41 IGSTK-IGSTK-5-2.cx_patch_3-6-0\Examples\HelloWorld\
文件 510 2014-03-26 19:41 IGSTK-IGSTK-5-2.cx_patch_3-6-0\Examples\HelloWorld\CMakeLists.txt
文件 13198 2014-03-26 19:41 IGSTK-IGSTK-5-2.cx_patch_3-6-0\Examples\HelloWorld\HelloWorld.cxx
文件 3486 2014-03-26 19:41 IGSTK-IGSTK-5-2.cx_patch_3-6-0\Examples\HelloWorld\HelloWorldGUI.fl
目录 0 2014-03-26 19:41 IGSTK-IGSTK-5-2.cx_patch_3-6-0\Examples\Installation\
文件 285 2014-03-26 19:41 IGSTK-IGSTK-5-2.cx_patch_3-6-0\Examples\Installation\CMakeLists.txt
文件 1753 2014-03-26 19:41 IGSTK-IGSTK-5-2.cx_patch_3-6-0\Examples\Installation\HelloWorld.cxx
目录 0 2014-03-26 19:41 IGSTK-IGSTK-5-2.cx_patch_3-6-0\Examples\MultiTrackerLogger\
文件 975 2014-03-26 19:41 IGSTK-IGSTK-5-2.cx_patch_3-6-0\Examples\MultiTrackerLogger\CMakeLists.txt
文件 797 2014-03-26 19:41 IGSTK-IGSTK-5-2.cx_patch_3-6-0\Examples\MultiTrackerLogger\DRF.xm
文件 8741 2014-03-26 19:41 IGSTK-IGSTK-5-2.cx_patch_3-6-0\Examples\MultiTrackerLogger\MultiTrackerLogger.cxx
文件 8940 2014-03-26 19:41 IGSTK-IGSTK-5-2.cx_patch_3-6-0\Examples\MultiTrackerLogger\MultiTrackerLogger.h
............此处省略863个文件信息
- 上一篇:QT5检测USB设备
- 下一篇:SuperMap ob
ject 开发教程(初级)
评论
共有 条评论