def htmlLabel(self, v):
return v+"<br><a href='%s.sh.html'>source</a>"%(urllib.quote(v))
+class DimensionTraffic(Dimension):
+ def __init__(self):
+ Dimension.__init__(self, 'traf', 'Traffic')
+ def htmlLabel(self, v):
+ return v
+
class Test:
@classmethod
def isOnPath(cls, path):
def addTest(self, test, coordinates):
if len(coordinates) != len(self.dimensions):
- raise KeyError("The number coordinates do not match the number of dimensions")
+ raise KeyError("The number coordinates do not match the number of dimensions: " + str(coordinates))
self[tuple(coordinates)] = test
for i in xrange(len(coordinates)):
self.dimensions[i].addValue(coordinates[i])
if __name__ == "__main__":
os.chdir(sys.argv[1])
- tests = Tests("by-kern/", DimensionKern(), DimensionTest())
+ tests = Tests("./", DimensionKern(), DimensionTraffic(), DimensionTest())
tests.generateHtml()
sys.exit(0)