Lines Matching refs:test

130         targets = list([test.full_path() for test in tests])
161 def run_test(test):
166 os.path.abspath(test.full_path()),
167 '-rd', os.path.abspath(test.m5out_dir()),
173 if not os.path.exists(test.m5out_dir()):
174 os.makedirs(test.m5out_dir())
176 subprocess.check_call(cmd, cwd=os.path.dirname(test.dir()))
181 with open(test.returncode_file(), 'w') as rc:
196 def __init__(self, ref, test, tag):
198 self.test = test
202 with open(self.test) as test_f, open(self.ref) as ref_f:
219 def __init__(self, ref, test, tag, out_dir):
220 super(DiffingChecker, self).__init__(ref, test, tag)
224 test_file = os.path.basename(self.test)
278 with open(self.test) as test_f, open(self.ref) as ref_f:
279 test = re.sub(self.test_filt, '', test_f.read())
282 test.splitlines(True))
286 with open (self.test) as test_f, open(self.ref) as ref_f:
288 test = test_f.read().splitlines(True)
289 # Strip off the first seven lines of the test output which are
291 test = test[7:]
293 return self.diffing_check(ref, test)
357 def passed(self, test):
358 self._passed.append(test)
360 def failed(self, test, cause, note=''):
361 test.set_prop('note', note)
362 self._failed.setdefault(cause, []).append(test)
394 for test in sorted(tests, key=lambda t: t.path):
395 block += ' ' + test.path
396 if test.note:
397 block += ' - ' + test.note
419 for test in compile_only:
420 if os.path.exists(test.full_path()):
421 self.passed(test)
423 self.failed(test, 'compile failed')
425 for test in runnable:
426 with open(test.returncode_file()) as rc:
430 if os.path.exists(test.expected_returncode_file()):
431 with open(test.expected_returncode_file()) as erc:
435 self.failed(test, 'time out')
439 self.failed(test, 'abort')
441 self.failed(test, 'missed abort')
444 out_dir = test.m5out_dir()
447 'Diff', 'ref, test, tag, ref_filter')
451 gd = GoldenDir(test.golden_dir(), 'linux64')
454 log_file = '.'.join([test.name, 'log'])
475 self.failed(test, 'missing output', ' '.join(missing))
481 self.failed(test, 'failed diffs', ' '.join(tags))
484 self.passed(test)
501 parser = argparse.ArgumentParser(description='SystemC test utility')
511 help='Flavor of binary to test.')