Home
last modified time | relevance | path

Searched refs:test_file (Results 1 – 25 of 139) sorted by relevance

123456

/external/flac/test/
Dtest_streams.sh52 test_file () function
182 test_file test01 1 16 "-0 -l $max_lpc_order --lax -m -e -p"
183 test_file test02 2 16 "-0 -l $max_lpc_order --lax -m -e -p"
184 test_file test03 1 16 "-0 -l $max_lpc_order --lax -m -e -p"
185 test_file test04 2 16 "-0 -l $max_lpc_order --lax -m -e -p"
190 test_file fsd$bps-$b 1 $bps "-0 -l $max_lpc_order --lax -m -e -p"
196 test_file wbps16-$b 1 16 "-0 -l $max_lpc_order --lax -m -e -p"
202 test_file sine${bps}-$b 1 $bps "-0 -l $max_lpc_order --lax -m -e --sample-rate=48000"
205 test_file sine${bps}-$b 1 $bps "-0 -l $max_lpc_order --lax -m -e --sample-rate=96000"
208 test_file sine${bps}-$b 1 $bps "-0 -l $max_lpc_order --lax -m -e"
[all …]
/external/libxkbcommon/test/
Dfilecomp.c29 test_file(struct xkb_context *ctx, const char *path_rel) in test_file() function
45 assert(test_file(ctx, "keymaps/basic.xkb")); in main()
46 assert(test_file(ctx, "keymaps/comprehensive-plus-geom.xkb")); in main()
47 assert(test_file(ctx, "keymaps/no-types.xkb")); in main()
48 assert(test_file(ctx, "keymaps/quartz.xkb")); in main()
49 assert(test_file(ctx, "keymaps/no-aliases.xkb")); in main()
51 assert(!test_file(ctx, "keymaps/divide-by-zero.xkb")); in main()
52 assert(!test_file(ctx, "keymaps/bad.xkb")); in main()
53 assert(!test_file(ctx, "keymaps/syntax-error.xkb")); in main()
54 assert(!test_file(ctx, "keymaps/syntax-error2.xkb")); in main()
[all …]
/external/python/cpython3/Lib/lib2to3/tests/
Dtest_refactor.py184 def check_file_refactoring(self, test_file, fixers=_2TO3_FIXERS, argument
187 test_file = self.init_test_file(test_file)
188 old_contents = self.read_file(test_file)
193 rt.refactor_file(test_file)
194 self.assertEqual(old_contents, self.read_file(test_file))
198 rt.refactor_file(test_file, True)
199 new_contents = self.read_file(test_file)
203 def init_test_file(self, test_file): argument
206 shutil.copy(test_file, tmpdir)
207 test_file = os.path.join(tmpdir, os.path.basename(test_file))
[all …]
/external/libchrome/base/files/
Dfile_path_watcher_unittest.cc171 FilePath test_file() { in test_file() function in base::__anon89a21af20111::FilePathWatcherTest
232 ASSERT_TRUE(SetupWatch(test_file(), &watcher, delegate.get(), false)); in TEST_F()
234 ASSERT_TRUE(WriteFile(test_file(), "content")); in TEST_F()
240 ASSERT_TRUE(WriteFile(test_file(), "content")); in TEST_F()
244 ASSERT_TRUE(SetupWatch(test_file(), &watcher, delegate.get(), false)); in TEST_F()
247 ASSERT_TRUE(WriteFile(test_file(), "new content")); in TEST_F()
258 ASSERT_TRUE(SetupWatch(test_file(), &watcher, delegate.get(), false)); in TEST_F()
261 ASSERT_TRUE(base::Move(source_file, test_file())); in TEST_F()
266 ASSERT_TRUE(WriteFile(test_file(), "content")); in TEST_F()
270 ASSERT_TRUE(SetupWatch(test_file(), &watcher, delegate.get(), false)); in TEST_F()
[all …]
/external/ltp/testcases/kernel/security/integrity/ima/tests/
Dima_conditionals.sh19 local test_file="$PWD/test.txt"
20 local cmd="cat $test_file > /dev/null"
27 ROD rm -f $test_file
31 ROD echo "$(cat /proc/uptime) $request test" \> $test_file
35 chgrp $user $test_file
39 chown $user $test_file
47 ima_check $test_file
/external/rust/crates/ring/src/ec/suite_b/
Dops.rs466 test_file!("ops/p256_elem_sum_tests.txt"), in p256_elem_add_test()
474 test_file!("ops/p384_elem_sum_tests.txt"), in p384_elem_add_test()
478 fn elem_add_test(ops: &PublicScalarOps, test_file: test::File) { in elem_add_test()
479 test::run(test_file, |section, test_case| { in elem_add_test()
510 test_file!("ops/p384_elem_sum_tests.txt"), in p384_elem_sub_test()
517 test_file: test::File, in elem_sub_test()
519 test::run(test_file, |section, test_case| { in elem_sub_test()
561 test_file!("ops/p384_elem_div_by_2_tests.txt"), in p384_elem_div_by_2_test()
568 test_file: test::File, in elem_div_by_2_test()
570 test::run(test_file, |section, test_case| { in elem_div_by_2_test()
[all …]
/external/toolchain-utils/
Drun_tests_for.py65 for test_file in test_files:
66 rel_path = _make_relative_to_toolchain_utils(toolchain_utils, test_file)
68 python_tests.append(_python_test_to_spec(test_file))
130 def _python_test_to_spec(test_file): argument
134 test_directory = os.path.dirname(os.path.abspath(test_file))
135 file_name = os.path.basename(test_file)
137 if os.access(test_file, os.X_OK):
146 def _autodetect_python_tests_for(test_file, toolchain_utils): argument
148 if not test_file.endswith(".py"):
154 test_file_name = os.path.basename(test_file)
[all …]
/external/pdfium/core/fpdfapi/parser/
Dcpdf_parser_unittest.cpp93 std::string test_file; in TEST() local
95 &test_file)); in TEST()
96 ASSERT_TRUE(parser.InitTestFromFile(test_file.c_str())) << test_file; in TEST()
113 std::string test_file; in TEST() local
115 "parser_rebuildxref_error_notrailer.pdf", &test_file)); in TEST()
116 ASSERT_TRUE(parser.InitTestFromFile(test_file.c_str())) << test_file; in TEST()
292 std::string test_file; in TEST() local
294 PathService::GetTestFilePath("annotation_stamp_with_ap.pdf", &test_file)); in TEST()
295 ASSERT_TRUE(parser.InitTestFromFile(test_file.c_str())) << test_file; in TEST()
306 std::string test_file; in TEST() local
[all …]
/external/ltp/testcases/kernel/power_management/
Drunpwtests06.sh32 test_file="/proc/sys/kernel/timer_migration"
33 if [ ! -f ${test_file} ] ; then
34 tst_brkm TBROK "MISSING_FILE: missing file ${test_file}"
39 check_input "${valid_input}" valid $test_file
42 check_input "${invalid_input}" invalid $test_file
Drunpwtests02.sh34 test_file="/sys/devices/system/cpu/sched_smt_power_savings"
35 if [ ! -f ${test_file} ] ; then
36 tst_brkm TBROK "MISSING_FILE: missing file ${test_file}"
40 check_input "${valid_input}" valid $test_file
43 check_input "${invalid_input}" invalid $test_file
Drunpwtests01.sh34 test_file="/sys/devices/system/cpu/sched_mc_power_savings"
35 if [ ! -f ${test_file} ] ; then
36 tst_brkm TBROK "MISSING_FILE: missing file ${test_file}"
41 check_input "${valid_input}" valid $test_file
44 check_input "${invalid_input}" invalid $test_file
/external/rust/crates/ring/tests/
Dquic_tests.rs15 use ring::{aead::quic, test, test_file};
19 test_quic(&quic::AES_128, test_file!("quic_aes_128_tests.txt")); in quic_aes_128()
24 test_quic(&quic::AES_256, test_file!("quic_aes_256_tests.txt")); in quic_aes_256()
29 test_quic(&quic::CHACHA20, test_file!("quic_chacha20_tests.txt")); in quic_chacha20()
32 fn test_quic(alg: &'static quic::Algorithm, test_file: test::File) { in test_quic()
35 test::run(test_file, |section, test_case| { in test_quic()
Ddigest_tests.rs15 use ring::{digest, test, test_file};
26 test::run(test_file!("digest_tests.txt"), |section, test_case| { in digest_misc()
54 fn run_known_answer_test(digest_alg: &'static digest::Algorithm, test_file: test::File) { in run_known_answer_test()
56 test::run(test_file, |section, test_case| { in run_known_answer_test()
82 use ring::{digest, test_file};
91 test_file!(concat!(
103 test_file!(concat!(
115 test_file!(concat!(
126 fn run_monte_carlo_test(digest_alg: &'static digest::Algorithm, test_file: test::File) { in run_monte_carlo_test()
132 test::run(test_file, |section, test_case| { in run_monte_carlo_test()
/external/cronet/base/files/
Dfile_path_watcher_unittest.cc193 FilePath test_file() { in test_file() function in base::__anon91391b880111::FilePathWatcherTest
259 ASSERT_TRUE(SetupWatch(test_file(), &watcher, delegate.get(), in TEST_F()
262 ASSERT_TRUE(WriteFile(test_file(), "content")); in TEST_F()
268 ASSERT_TRUE(WriteFile(test_file(), "content")); in TEST_F()
272 ASSERT_TRUE(SetupWatch(test_file(), &watcher, delegate.get(), in TEST_F()
276 ASSERT_TRUE(WriteFile(test_file(), "new content")); in TEST_F()
287 ASSERT_TRUE(SetupWatch(test_file(), &watcher, delegate.get(), in TEST_F()
291 ASSERT_TRUE(base::Move(source_file, test_file())); in TEST_F()
296 ASSERT_TRUE(WriteFile(test_file(), "content")); in TEST_F()
300 ASSERT_TRUE(SetupWatch(test_file(), &watcher, delegate.get(), in TEST_F()
[all …]
/external/libchrome/components/policy/core/common/
Dpreg_parser_unittest.cc119 base::FilePath test_file(test_data_dir_.AppendASCII(kRegistryPolFile)); in TEST_F() local
121 ASSERT_TRUE(preg_parser::ReadFile(test_file, base::ASCIIToUTF16(kRegistryKey), in TEST_F()
146 base::FilePath test_file(test_data_dir_.AppendASCII(kRegistryPolFile)); in TEST_F() local
153 test_file, base::ASCIIToUTF16("SOFTWARE\\Policies\\Chro"), &dict1, in TEST_F()
159 ASSERT_TRUE(preg_parser::ReadFile(test_file, base::ASCIIToUTF16(kRegistryKey), in TEST_F()
166 base::FilePath test_file( in TEST_F() local
170 ASSERT_TRUE(preg_parser::ReadFile(test_file, base::ASCIIToUTF16(kRegistryKey), in TEST_F()
181 base::FilePath test_file( in TEST_F() local
184 test_file, base::ASCIIToUTF16(kRegistryKey), &dict, &status)); in TEST_F()
/external/tensorflow/tensorflow/lite/tools/serialization/
Dwriter_lib_test.cc131 const std::string test_file = CreateFilePath("test_float.tflite"); in TEST_P() local
132 WriteToFile(&interpreter, test_file, GetParam()); in TEST_P()
134 FlatBufferModel::BuildFromFile(test_file.c_str()); in TEST_P()
173 const std::string test_file = CreateFilePath("test_custom.tflite"); in TEST_P() local
179 writer.Write(test_file); in TEST_P()
182 FlatBufferModel::BuildFromFile(test_file.c_str()); in TEST_P()
268 const std::string test_file = CreateFilePath("test_variables.tflite"); in TEST_P() local
273 writer.Write(test_file); in TEST_P()
277 FlatBufferModel::BuildFromFile(test_file.c_str()); in TEST_P()
305 const std::string test_file = CreateFilePath("test_uint8.tflite"); in TEST_P() local
[all …]
/external/python/cpython2/Lib/lib2to3/tests/
Dtest_refactor.py186 def check_file_refactoring(self, test_file, fixers=_2TO3_FIXERS, argument
192 shutil.copy(test_file, tmpdir)
193 test_file = os.path.join(tmpdir, os.path.basename(test_file))
194 os.chmod(test_file, 0o644)
197 with open(test_file, "rb") as fp:
205 rt.refactor_file(test_file)
210 rt.refactor_file(test_file, True)
216 test_file = os.path.join(FIXER_DIR, "parrot_example.py")
217 self.check_file_refactoring(test_file, _DEFAULT_FIXERS)
220 test_file = os.path.join(FIXER_DIR, "parrot_example.py")
[all …]
/external/toolchain-utils/binary_search_tool/sysroot_wrapper/
Dtesting_test.py33 for test_file in bad_files:
34 test_file = test_file.strip()
35 cmd = ["grep", test_file, os.path.join(bisect_dir, "BAD_SET")]
/external/google-breakpad/src/common/linux/
Dmemory_mapped_file_unittest.cc86 string test_file = temp_dir.path() + "/empty_file"; in TEST_F() local
87 ASSERT_TRUE(WriteFile(test_file.c_str(), NULL, 0)); in TEST_F()
90 MemoryMappedFile mapped_file(test_file.c_str(), 0); in TEST_F()
95 EXPECT_TRUE(mapped_file.Map(test_file.c_str(), 0)); in TEST_F()
108 string test_file = temp_dir.path() + "/test_file"; in TEST_F() local
109 ASSERT_TRUE(WriteFile(test_file.c_str(), data, data_size)); in TEST_F()
112 MemoryMappedFile mapped_file(test_file.c_str(), 0); in TEST_F()
120 EXPECT_TRUE(mapped_file.Map(test_file.c_str(), 0)); in TEST_F()
/external/leveldb/util/
Denv_windows_test.cc30 std::string test_file = test_dir + "/open_on_read.txt"; in TEST_F() local
32 FILE* f = std::fopen(test_file.c_str(), "w"); in TEST_F()
44 ASSERT_LEVELDB_OK(env_->NewRandomAccessFile(test_file, &files[i])); in TEST_F()
55 ASSERT_LEVELDB_OK(env_->RemoveFile(test_file)); in TEST_F()
/external/tensorflow/tensorflow/tools/tensorflow_builder/compat_checker/
Dcompat_checker_test.py70 self.test_file = os.path.join(PATH_TO_DIR, "test_config.ini")
81 USER_CONFIG_IN_RANGE, self.test_file)
98 USER_CONFIG_NOT_IN_RANGE, self.test_file)
111 USER_CONFIG_MISSING, self.test_file)
/external/rust/crates/ring/src/
Dtest.rs293 macro_rules! test_file { macro
318 pub fn run<F>(test_file: File, mut f: F) in run()
322 let lines = &mut test_file.contents.lines(); in run()
351 std::println!("{}: {}", test_file.file_name, msg); in run()
553 test::run(test_file!("test_1_tests.txt"), |_, test_case| { in one_ok()
562 test::run(test_file!("test_1_tests.txt"), |_, test_case| { in one_err()
571 test::run(test_file!("test_1_tests.txt"), |_, test_case| { in one_panics()
597 test::run(test_file!("test_3_tests.txt"), |_, test_case| { in err_one()
629 test::run(test_file!("test_3_tests.txt"), |_, test_case| { in panic_one()
642 test::run(test_file!("test_1_syntax_error_tests.txt"), |_, _| Ok(())); in syntax_error()
/external/perfetto/src/profiling/symbolizer/
Dbreakpad_symbolizer_unittest.cc62 base::TempFile test_file = base::TempFile::Create(); in TEST() local
63 ASSERT_TRUE(*test_file); in TEST()
65 base::WriteAll(test_file.fd(), kTestFileContents, kTestFileLength); in TEST()
69 symbolizer.SetBreakpadFileForTesting(test_file.path()); in TEST()
/external/rust/crates/cexpr/tests/
Dclang.rs287 fn test_file(file: &str) -> bool { in test_file() function
322 macro_rules! test_file { macro
327 test_file(concat!("tests/input/", stringify!($f), ".h")),
334 test_file!(floats);
335 test_file!(chars);
336 test_file!(strings);
337 test_file!(int_signed);
338 test_file!(int_unsigned);
339 test_file!(fail);
/external/cronet/buildtools/third_party/libc++/trunk/utils/
Dgenerate_header_tests.py81 …as unable to find a script delimited with BEGIN-SCRIPT/END-SCRIPT markers in {}".format(test_file))
109 def produce(test_file, variables): argument
110 script = find_script(test_file)
112 new_content = generate_new_file(test_file, result)
113 with open(test_file, 'w', newline='\n') as f:

123456