Home
last modified time | relevance | path

Searched refs:input_path (Results 1 – 25 of 42) sorted by relevance

12

/external/jsoncpp/test/
Drunjsontests.py98 for input_path in tests + test_jsonchecker:
99 expect_failure = os.path.basename(input_path).startswith('fail')
100 is_json_checker_test = (input_path in test_jsonchecker) or expect_failure
101 print('TESTING:', input_path, end=' ')
105 input_path)
111 failed_tests.append((input_path, 'Parsing should have failed:\n%s' %
112 safeReadFile(input_path)))
118 failed_tests.append((input_path, 'Parsing failed:\n' + process_output))
122 base_path = os.path.splitext(input_path)[0]
128 failed_tests.append((input_path, 'Parsing failed:\n' + process_output))
[all …]
Dpyjsontestrunner.py19 input_path = sys.argv[1] variable
20 base_path = os.path.splitext(input_path)[0]
66 input = file(input_path, 'rt').read()
/external/openscreen/tools/
Dconvert_to_data_file.py39 def Convert(namespace, input_path, output_path): argument
42 if not os.path.exists(input_path):
44 input_path)
48 with open(input_path, 'r') as f:
53 FORMAT_STRING.format(namespace, GetVariableName(input_path),
67 input_path = os.path.abspath(args.input_path)
69 Convert(args.namespace, input_path, output_path)
/external/crosvm/protos/
Dbuild.rs69 let input_path = dir.join(proto.proto_file_name); in main() localVariable
70 protoc(proto.module, input_path, &out)?; in main()
75 let input_path = format!("src/{}.proto", proto.module); in main() localVariable
76 protoc(proto.module, input_path, &out)?; in main()
85 fn protoc<P: AsRef<Path>>(module: &str, input_path: P, mut out: &File) -> Result<()> { in protoc()
86 let input_path = input_path.as_ref(); in protoc() localVariable
87 let input_dir = input_path.parent().unwrap(); in protoc()
98 input: &[input_path.as_os_str().to_str().unwrap()], in protoc()
108 let file_stem = input_path.file_stem().unwrap().to_str().unwrap(); in protoc()
/external/fonttools/Lib/fontTools/cu2qu/
Dcli.py32 def _font_to_quadratic(input_path, output_path=None, **kwargs): argument
33 ufo = ufo_module.Font(input_path)
34 logger.info('Converting curves for %s', input_path)
42 _copytree(input_path, output_path)
52 def _copytree(input_path, output_path): argument
53 if _samepath(input_path, output_path):
58 shutil.copytree(input_path, output_path)
164 for input_path, output_path in zip(options.infiles, output_paths):
166 _copytree(input_path, output_path)
176 for input_path, output_path in zip(options.infiles, output_paths):
[all …]
/external/pdfium/testing/tools/
Dfixup_pdf_template.py130 print >> sys.stderr, 'failed to process %s' % input_path
133 def insert_includes(input_path, output_file, visited_set): argument
134 input_path = os.path.normpath(input_path)
135 if input_path in visited_set:
136 print >> sys.stderr, 'Circular inclusion %s, ignoring' % input_path
138 visited_set.add(input_path)
140 with open(input_path, 'rb') as infile:
145 os.path.join(os.path.dirname(input_path), match.group(1)),
150 print >> sys.stderr, 'failed to include %s' % input_path
152 visited_set.discard(input_path)
Dtest_runner.py134 input_path = os.path.join(source_dir, input_root + '.in')
141 if not os.path.exists(input_path):
150 input_path
221 def HandleResult(self, input_filename, input_path, result): argument
246 self.surprises.append(input_path)
249 self.failures.append(input_path)
381 input_path = os.path.join(walk_from_dir, file_name)
382 if not os.path.isfile(input_path):
386 self.test_cases.append((os.path.basename(input_path),
387 os.path.dirname(input_path)))
[all …]
/external/tensorflow/tensorflow/python/tools/
Dsaved_model_cli_test.py453 input_path = os.path.join(test.get_temp_dir(), 'input.npz')
454 np.savez(input_path, a=x0)
455 input_str = 'x=' + input_path + '[a];y=' + input_path
498 input_path = os.path.join(test.get_temp_dir(), 'input.npz')
499 np.savez(input_path, a=x0)
501 input_str = 'x0=' + input_path + '[a]'
510 input_path = os.path.join(test.get_temp_dir(), 'input.npz')
511 np.savez(input_path, a=x0)
513 input_str = 'x0=' + input_path + '[a]'
522 input_path = os.path.join(test.get_temp_dir(), 'input.npz')
[all …]
/external/deqp-deps/amber/tests/
Drun_tests.py192 def __init__(self, input_path, parse_only, use_dawn, use_opencl, use_dxc, argument
194 self.input_path = input_path
211 base = os.path.basename(self.input_path)
245 return self.input_path
375 input_path = os.path.join(self.options.test_dir, filename)
376 if not os.path.isfile(input_path):
380 self.test_cases.append(TestCase(input_path, self.options.parse_only,
389 input_path = os.path.join(file_dir, input_filename)
390 if os.path.isfile(input_path):
392 TestCase(input_path, self.options.parse_only,
/external/llvm-project/debuginfo-tests/dexter/dex/tools/view/
DTool.py40 options.input_path = os.path.abspath(options.input_path)
41 if not os.path.isfile(options.input_path):
43 options.input_path))
48 with open(options.input_path, 'rb') as fp:
/external/tensorflow/tensorflow/tools/gcs_test/python/
Dgcs_smoke.py201 input_path = FLAGS.gcs_bucket_url + "/"
202 input_path += "".join(random.choice("0123456789ABCDEF") for i in range(8))
203 input_path += ".tfrecord"
204 print("Using input path: %s" % input_path)
209 with tf.io.TFRecordWriter(input_path) as hf:
213 print("Data written to: %s" % input_path)
217 record_iter = tf.compat.v1.python_io.tf_record_iterator(input_path)
232 filename_queue = tf.compat.v1.train.string_input_producer([input_path],
/external/antlr/runtime/Ruby/test/functional/main/
Dmain-scripts.rb38 input_path = local_path( 'input.txt' )
39 open( input_path, 'w' ) { |f| f.write( "yada yada" ) }
51 input = File.open( input_path )
57 File.delete( input_path )
/external/ltp/android/tools/
Dmake_install_parser.py41 def ParseFile(self, input_path): argument
54 with open(input_path, 'r') as f:
88 result = make_install_parser.ParseFile(args.input_path)
Dmake_parser.py144 def ParseFile(self, input_path): argument
167 with open(input_path, 'r') as f:
202 result = make_parser.ParseFile(args.input_path)
/external/llvm-project/llvm/utils/lit/tests/
Dunittest-adaptor.py14 input_path = sys.argv[1] variable
15 unittest_suite = lit.LitTestCase.load_test_suite([input_path])
/external/llvm/utils/lit/tests/
Dunittest-adaptor.py15 input_path = sys.argv[1] variable
16 unittest_suite = lit.discovery.load_test_suite([input_path])
/external/libchrome/libchrome_tools/
Dinclude_generator.py64 def _generate(input_path, output_path): argument
76 with open(input_path, 'r') as f:
/external/libwebm/m2ts/
Dwebm2pes_main.cc28 const std::string input_path = argv[1]; in main() local
31 libwebm::Webm2Pes converter(input_path, output_path); in main()
Dvpxpes2ts_main.cc28 const std::string input_path = argv[1]; in main() local
31 libwebm::VpxPes2Ts converter(input_path, output_path); in main()
/external/tensorflow/tensorflow/security/fuzzing/
Dcleanpath_fuzz.cc29 std::string input_path(reinterpret_cast<const char *>(data), size); in LLVMFuzzerTestOneInput()
30 std::string clean_path = tensorflow::io::CleanPath(input_path); in LLVMFuzzerTestOneInput()
/external/fonttools/Tests/cu2qu/
Dcli_test.py45 input_path = TEST_UFOS[0]
46 output_path = tmpdir / input_path.basename
47 self.run_main('-o', output_path, input_path)
/external/tensorflow/tensorflow/lite/tools/optimize/
Dquantization_wrapper.cc23 bool CreateModelForCalibration(const std::string& input_path, in CreateModelForCalibration() argument
26 if (LoadModel(input_path, &model) != kTfLiteOk) { in CreateModelForCalibration()
/external/llvm/utils/llvm-build/llvmbuild/
Dconfigutil.py8 def configure_file(input_path, output_path, substitutions): argument
27 f = open(input_path, "rb")
/external/perfetto/tools/ftrace_proto_gen/
Dmain.cc178 std::string input_path = input_dir + event.group() + "/" + in main() local
182 if (!perfetto::base::ReadFile(input_path, &contents)) { in main()
188 fprintf(stderr, "Could not parse file %s.\n", input_path.c_str()); in main()
195 input_path.c_str()); in main()
/external/llvm-project/clang/utils/hmaptool/
Dhmaptool172 input_path,output_path = args
174 with open(input_path, "r") as f:
244 input_path,output_path = args
246 hmap = HeaderMap.frompath(input_path)

12