X-Git-Url: http://rtime.felk.cvut.cz/gitweb/can-benchmark.git/blobdiff_plain/ede1aea47ab68ddaf132d30241a8b476ae0c04d5..e027d3bf8362f509047541450650a93c7d0c5ea7:/gw-tests/genhtml/genhtml.py?ds=sidebyside diff --git a/gw-tests/genhtml/genhtml.py b/gw-tests/genhtml/genhtml.py index be1bb4e..2398026 100755 --- a/gw-tests/genhtml/genhtml.py +++ b/gw-tests/genhtml/genhtml.py @@ -5,13 +5,14 @@ import dircache; import sys; import urllib import traceback +import glob class DimValue(object): def __new__(cls, dim, value): if value in dim: return dim[value] else: - return super(DimValue, cls).__new__(cls, dim, value) + return super(DimValue, cls).__new__(cls) def __init__(self, dim, value): self.dim = dim self.value = value @@ -142,14 +143,39 @@ class Test(object): self.values = values self.tests = tests def printThumbLink(self, file): - thumb = self.path+'/thumb' - try: - imgs = [img for img in dircache.listdir(thumb)] - except OSError: - imgs = [ self.name + ".png" ] +# try: +# imgs = [img for img in dircache.listdir(thumb)] +# except OSError: +# imgs = [ self.name + ".png" ] + imgs = [ 'tgraph.png' ] for img in imgs: - print >>file, "" % \ + print >>file, "" % \ (urllib.quote(self.path), urllib.quote(self.path), img) + def fullImgLink(self, pngName): + return "
" % \ + (pngName[:-4]+".pdf", pngName) + + def htmlPrintStats(self, html): + cwd = os.getcwd() + os.chdir(self.path) + stats = glob.glob("*-stat.txt") + print >>html, "%s%s | " % (i, "