Lines Matching refs:test_file

67 def run_micropython(pyb, args, test_file, is_special=False):  argument
76 … if test_file.startswith(('cmdline/', base_path('feature_check/'))) or test_file in special_tests:
83 with open(test_file, 'rb') as f:
91 if 'repl_' in test_file:
114 with open(test_file, 'rb') as f:
135 … output_mupy = subprocess.check_output(args + [test_file], stderr=subprocess.STDOUT)
149 …ROSS] + args.mpy_cross_flags.split() + ['-o', 'mpytest.mpy', '-X', 'emit=' + args.emit, test_file])
152 cmdlist.append(test_file)
170 output_mupy = pyb.execfile(test_file)
180 output_mupy = pyb.execfile(test_file)
195 if is_special or test_file in special_tests:
197 with open(test_file + '.exp', 'rb') as f:
237 def run_feature_check(pyb, args, base_path, test_file): argument
238 if pyb is not None and test_file.startswith("repl_"):
241 return run_micropython(pyb, args, base_path("feature_check", test_file), is_special=True)
460 for test_file in tests:
461 test_file = test_file.replace('\\', '/')
467 if pat.search(test_file):
472 test_basename = test_file.replace('..', '_').replace('./', '').replace('/', '_')
473 test_name = os.path.splitext(os.path.basename(test_file))[0]
484 skip_it = test_file in skip_tests
498 print(test_file)
502 print("skip ", test_file)
507 test_file_expected = test_file + '.exp'
515 output_expected = subprocess.check_output(CPYTHON3_CMD + [test_file])
529 output_mupy = run_micropython(pyb, args, test_file)
532 print("skip ", test_file)
542 print("pass ", test_file)
551 print("FAIL ", test_file)
689 …tests = sorted(test_file for test_files in (glob('{}/*.py'.format(dir)) for dir in test_dirs) for