def setUp(self): # Sat Aug 13 19:04:24 2005 timezonecheck() self.starttime = 1123974264 self.endtime = self.starttime+30.5 self.mf = wrap.MakeData(self.starttime, self.endtime, subject = 'foofoo', command = "make", success = True, path = '/Users/lorin/dev') xml = xmlifystring(self.mf.toxml()) self.dom = minidom.parseString(xml)
def setUp(self): timezonecheck() self.starttime = 1124659109 self.endtime = self.starttime+.15 pr = wrap.ProfileRunData(starttime = self.starttime, endtime = self.endtime, subject = 'foobar', command = "pat_hwpc -f -o test/testsource/perflog aprun -n4 ./cg 1000 1000", success = True, path = '/home/resh/lorin/src', profiledata = open('test/testsource/perflog.hwpc').read()) xml = xmlifystring(pr.toxml()) dom = minidom.parseString(xml) self.job = dom.getElementsByTagName('job')[0]
def setUp(self): # Sun Aug 21 17:18:29 2005 timezonecheck() self.starttime = 1124659109 self.endtime = self.starttime+.15 br = wrap.BatchRunData(starttime = self.starttime, endtime = self.endtime, script = open('test/testsource/run.sh').read(), subject = 'foobar', command = "qsub -lnodes=2 test/testsource/run.sh", success = True, path = '/tmp') xml = xmlifystring(br.toxml()) dom = minidom.parseString(xml) self.job = dom.getElementsByTagName('job')[0]
def setUp(self): # Sat Aug 13 19:04:24 2005 timezonecheck() self.starttime = 1123974264 self.endtime = self.starttime+30.5 self.sourcefiles = ['test/testsource/outerr.c'] self.cd = wrap.CompileData(self.starttime, self.endtime, self.sourcefiles, subject = 'borat', command = 'CC -c test/testsource/outerr.c', success = True, path = '/tmp', debugging=False) xml = xmlifystring(self.cd.toxml()) self.dom = minidom.parseString(xml) self.cnode = self.dom.getElementsByTagName('compile')[0]
def setUp(self): # Sat Aug 13 19:04:24 2005 timezonecheck() self.starttime = 1123974264 self.endtime = self.starttime + 30.5 self.sourcefiles = ["test/testsource/outerr.c"] self.cd = wrap.CompileData( self.starttime, self.endtime, self.sourcefiles, subject="borat", command="CC -c test/testsource/outerr.c", success=True, path="/tmp", debugging=True, ) xml = xmlifystring(self.cd.toxml()) self.dom = minidom.parseString(xml) self.cnode = self.dom.getElementsByTagName("compile")[0]
def xmlifyfile(f): """Load a logfile and convert it to valid XML""" return xmlifystring(open(f).read())