Public Member Functions | |
def | __init__ |
def | __str__ |
def | listBenchmarks |
def | listComparisons |
def | writeAccess |
Public Attributes | |
url_ | |
website_ |
Definition at line 86 of file valtools.py.
def valtools::website::__init__ | ( | self | ) |
Definition at line 87 of file valtools.py.
def valtools::website::__str__ | ( | self | ) |
Definition at line 91 of file valtools.py.
def valtools::website::listBenchmarks | ( | self, | |
pattern, | |||
afs = False , |
|||
url = False |
|||
) |
Definition at line 100 of file valtools.py.
00101 : 00102 for bench in glob.glob(self.website_ + '/' + pattern): 00103 # strip off the root path of the website 00104 p = re.compile('^%s/(\S+)$' % self.website_); 00105 m = p.match( bench ) 00106 if m: 00107 (release, benchName, extension) = decodePath( m.group(1) ) 00108 if release == None: 00109 # this is a comparison 00110 continue 00111 print 00112 bench = benchmark(m.group(1)) 00113 print bcolors.OKGREEN + m.group(1) + bcolors.ENDC 00114 if afs or url: 00115 if afs: print ' ',bench.benchmarkOnWebSite( self ) 00116 if url: print ' ',bench.benchmarkUrl( self )
def valtools::website::listComparisons | ( | self, | |
benchmark | |||
) |
Definition at line 117 of file valtools.py.
00118 : 00119 00120 comparisons = [] 00121 find = 'find %s -type d' % self.website_ 00122 for dir in os.popen( find ): 00123 dir = dir.rstrip() 00124 #print dir 00125 comp = '%s/\S+/\S+/%s' % (self.website_, 00126 benchmark.fullName() ) 00127 #print "** ", comp 00128 p = re.compile(comp) 00129 m = p.match(dir) 00130 if m: 00131 comparisons.append(dir) 00132 #print ' ',dir 00133 return comparisons
def valtools::website::writeAccess | ( | self | ) |
Definition at line 95 of file valtools.py.
Definition at line 87 of file valtools.py.
Definition at line 87 of file valtools.py.