def run(self):
self.results = TestCaseResult(self)
- print "Testing %s:\n" % self.name,
+ print "Testing \"%s\" in %s:\n" % (self.name, self.executable),
os.chdir(os.path.join(testsRoot, self.directory))
# Chose how to run the test - currently there is only one option
# if os.path.exists("Makefile.test"):
def _doRun(self, log):
"Runs the teset in current directory."
- print " ",os.environ['OMK_RULES'],
- sys.stdout.flush()
+# print " ",os.environ['OMK_RULES'],
+# sys.stdout.flush()
ret = self._exec(log)
- if log.canttest: retstr = "--"
- elif ret == 0: retstr = "OK"
+# if log.canttest: retstr = "--"
+# elif ret == 0: retstr = "ok"
+# else:
+# retstr = "FAILED"
+# self.failed = True
+# print "%*s%s" % (20-len(os.environ['OMK_RULES']), "", retstr)
+ if log.canttest: retstr = "[not tested] ok"
+ elif ret == 0: retstr = "ok"
else:
retstr = "FAILED"
self.failed = True
- print "%*s%s" % (20-len(os.environ['OMK_RULES']), "", retstr)
+ print "! %s (%s) %s" % (self.name, os.environ['OMK_RULES'], retstr)
+ sys.stdout.flush()
results = Results()