Lines Matching refs:file
73 def run_test(file, tool, flag=False): argument
74 path_list = file.split(os.sep)
76 file = "." + os.sep + file
77 out_file_path = file.replace(TEST_PATH, OUT_PATH).replace(TS_EXT, TXT_EXT)
78 temp_out_file_path = file.replace(TS_EXT, TXT_EXT)
79 temp_abc_file_path = file.replace(TS_EXT, ABC_EXT)
89 if file in IMPORT_TEST['import'] + IMPORT_TEST['m_parameter']:
90 command_os(['node', '--expose-gc', tool, '-m', file, '--output-type'])
92 command_os(['node', '--expose-gc', tool, file, '--output-type'])
118 if args.file:
119 if skip(args.file, True):
120 if args.file in IMPORT_TEST['import']:
121 run_test(args.file, ark_frontend_tool, True)
122 result = compare(args.file, True)
125 run_test(args.file, ark_frontend_tool)
126 result = compare(args.file)
131 for file in files:
143 elif args.file is None and args.dir is None:
145 for file in files:
193 def compare(file, flag=False): argument
195 path_list = file.split(os.sep)
197 file = "." + os.sep + file
198 out_path = file.replace(TEST_PATH, OUT_PATH).replace(TS_EXT, TXT_EXT)
199 expect_path = file.replace(TEST_PATH, EXPECT_PATH).replace(TS_EXT, TXT_EXT)
213 print("There are no expected files or validation file generation: %s", file)
295 for file in files:
296 …le = os.path.abspath(os.path.join(outpath, '%s.abc' % os.path.splitext(os.path.basename(file))[0]))
297 cmd = ['node', '--expose-gc', ark_frontend_tool, os.path.abspath(file),
304 fail_list.append(file)
309 expected_file = "%s-expected.txt" % (os.path.splitext(file)[0])
318 fail_list.append(file)