Lines Matching refs:os

40 import os
45 script_path = os.path.abspath(inspect.getfile(inspect.currentframe()))
46 script_dir = os.path.dirname(script_path)
47 config_path = os.path.join(script_dir, 'config.py')
49 systemc_dir = os.path.dirname(script_dir)
50 src_dir = os.path.dirname(systemc_dir)
51 checkout_dir = os.path.dirname(src_dir)
54 tests_rel_path = os.path.join(systemc_rel_path, 'tests')
55 json_rel_path = os.path.join(tests_rel_path, 'tests.json')
80 return os.path.join(self.build_dir, tests_rel_path, self.path)
83 return os.path.join(script_dir, self.path)
86 return os.path.join(self.src_dir(), 'expected_returncode')
89 return os.path.join(self.src_dir(), 'golden')
95 return os.path.join(self.dir(), self.bin())
98 return os.path.join(self.dir(), 'm5out.' + self.suffix)
101 return os.path.join(self.m5out_dir(), 'returncode')
166 os.path.abspath(test.full_path()),
167 '-rd', os.path.abspath(test.m5out_dir()),
170 os.path.abspath(config_path),
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()))
224 test_file = os.path.basename(self.test)
225 ref_file = os.path.basename(self.ref)
228 diff_path = os.path.join(self.out_dir, diff_file)
238 if os.path.exists(diff_path):
239 os.unlink(diff_path)
300 contents = os.listdir(path)
310 self.path = os.path.join(path, e_path)
420 if os.path.exists(test.full_path()):
430 if os.path.exists(test.expected_returncode_file()):
456 simout_path = os.path.join(out_dir, 'simout')
457 if not os.path.exists(simout_path):
464 test_path = os.path.join(out_dir, name)
466 if not os.path.exists(test_path):
493 result_path = os.path.join(os.getcwd(), 'results.json')
558 json_path = os.path.join(main_args.build_dir, json_rel_path)
561 scons('--directory', main_args.scons_dir, os.path.join(json_path))