Home
last modified time | relevance | path

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

123456789

/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/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/pytorch/tools/testing/
Dtest_run.py19 test_file: str
41 self.test_file, test_class = name.split("::")
44 self.test_file = name
56 return not self.test_file
76 if self.test_file != test.test_file:
98 return TestRun(self.test_file, excluded=self._excluded, included=self._included)
116 return self.test_file + ", " + pytest_filter
117 return self.test_file
123 ret = self.test_file == other.test_file
129 return hash((self.test_file, self._included, self._excluded))
[all …]
/external/trusty/arm-trusted-firmware/tools/tlc/tests/
Dtest_transfer_list.py101 test_file = tmpdir.join("test_tl_blob.bin")
103 tl.write_to_file(test_file)
105 with open(test_file, "rb") as f:
112 test_file = tmpdir.join("test_tl_blob.bin")
116 tl.write_to_file(test_file)
120 with open(test_file, "rb") as f:
130 test_file = tmpdir.join("test_tl_blob.bin")
136 tl.write_to_file(test_file)
138 with open(test_file, "rb") as f:
152 test_file = tmpdir.join("test_tl_blob.bin")
[all …]
/external/ltp/testcases/kernel/syscalls/mount/
Dmount07.c34 static char *test_file; variable
43 fd = SAFE_CREAT(test_file, O_RDWR); in setup_symlink()
44 SAFE_SYMLINK(test_file, link_file); in setup_symlink()
69 if (strcmp(buf, test_file) != 0) { in test_readlink()
71 buf, test_file); in test_readlink()
86 if (strcmp(TST_RET_PTR, test_file) != 0) { in test_realpath()
88 (char *)TST_RET_PTR, test_file); in test_realpath()
96 TST_EXP_PASS(symlink(test_file, temp_link_file), "symlink(%s, %s)", in test_cycle_link()
97 test_file, temp_link_file); in test_cycle_link()
117 test_file = tst_tmpdir_genpath("%s/test_file", MNTPOINT); in setup()
/external/fmtlib/test/
Dos-test.cc239 auto test_file = uniq_file_name(__LINE__); in TEST() local
240 fmt::ostream out = fmt::output_file(test_file); in TEST()
246 auto test_file = uniq_file_name(__LINE__); in TEST() local
248 fmt::ostream out = fmt::output_file(test_file); in TEST()
254 file in(test_file, file::RDONLY); in TEST()
260 auto test_file = uniq_file_name(__LINE__); in TEST() local
261 fmt::ostream out = fmt::output_file(test_file); in TEST()
264 file in(test_file, file::RDONLY); in TEST()
270 auto test_file = uniq_file_name(__LINE__); in TEST() local
271 fmt::ostream out = fmt::output_file(test_file); in TEST()
[all …]
/external/cronet/stable/base/files/
Dfile_path_watcher_unittest.cc392 FilePath test_file() { in test_file() function in base::FilePathWatcherTest
455 ASSERT_TRUE(SetupWatch(test_file(), &watcher, &delegate, in TEST_F()
458 ASSERT_TRUE(WriteFile(test_file(), "content")); in TEST_F()
460 event_expecter.AddExpectedEventForPath(test_file()); in TEST_F()
470 ASSERT_TRUE(SetupWatch(test_file(), &watcher, &delegate, in TEST_F()
473 ASSERT_TRUE(CreateDirectory(test_file())); in TEST_F()
474 event_expecter.AddExpectedEventForPath(test_file()); in TEST_F()
487 ASSERT_TRUE(SetupWatch(test_file(), &watcher, &delegate, in TEST_F()
490 ASSERT_TRUE(CreateDirectory(test_file())); in TEST_F()
491 event_expecter.AddExpectedEventForPath(test_file()); in TEST_F()
[all …]
/external/cronet/tot/base/files/
Dfile_path_watcher_unittest.cc392 FilePath test_file() { in test_file() function in base::FilePathWatcherTest
455 ASSERT_TRUE(SetupWatch(test_file(), &watcher, &delegate, in TEST_F()
458 ASSERT_TRUE(WriteFile(test_file(), "content")); in TEST_F()
460 event_expecter.AddExpectedEventForPath(test_file()); in TEST_F()
470 ASSERT_TRUE(SetupWatch(test_file(), &watcher, &delegate, in TEST_F()
473 ASSERT_TRUE(CreateDirectory(test_file())); in TEST_F()
474 event_expecter.AddExpectedEventForPath(test_file()); in TEST_F()
487 ASSERT_TRUE(SetupWatch(test_file(), &watcher, &delegate, in TEST_F()
490 ASSERT_TRUE(CreateDirectory(test_file())); in TEST_F()
491 event_expecter.AddExpectedEventForPath(test_file()); 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/libchrome/base/files/
Dfile_path_watcher_unittest.cc171 FilePath test_file() { in test_file() function in base::__anon7e44c3830111::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/rust/android-crates-io/crates/ring/src/ec/suite_b/
Dops.rs467 test_file!("ops/p256_elem_sum_tests.txt"), in p256_elem_add_test()
475 test_file!("ops/p384_elem_sum_tests.txt"), in p384_elem_add_test()
479 fn elem_add_test(ops: &PublicScalarOps, test_file: test::File) { in elem_add_test()
480 test::run(test_file, |section, test_case| { in elem_add_test()
511 test_file!("ops/p384_elem_sum_tests.txt"), in p384_elem_sub_test()
518 test_file: test::File, in elem_sub_test()
520 test::run(test_file, |section, test_case| { in elem_sub_test()
562 test_file!("ops/p384_elem_div_by_2_tests.txt"), in p384_elem_div_by_2_test()
569 test_file: test::File, in elem_div_by_2_test()
571 test::run(test_file, |section, test_case| { in elem_div_by_2_test()
[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/toolchain-utils/
Drun_tests_for.py63 for test_file in test_files:
64 rel_path = _make_relative_to_toolchain_utils(toolchain_utils, test_file)
66 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/rust/android-crates-io/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()
52 fn run_known_answer_test(digest_alg: &'static digest::Algorithm, test_file: test::File) { in run_known_answer_test()
54 test::run(test_file, |section, test_case| { in run_known_answer_test()
80 use ring::{digest, test_file};
89 test_file!(concat!(
101 test_file!(concat!(
113 test_file!(concat!(
124 fn run_monte_carlo_test(digest_alg: &'static digest::Algorithm, test_file: test::File) { in run_monte_carlo_test()
130 test::run(test_file, |section, test_case| { in run_monte_carlo_test()
/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/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/toybox/
Dtoybox-gtests.cpp55 std::string test_file, in ExecTest() argument
80 test_file.c_str()); in ExecTest()
103 ToyboxTest(std::string toy, std::string test_file) : toy_(toy), test_file_(test_file) { } in ToyboxTest() argument
198 for (auto& test_file : test_files) { in initTests() local
199 std::string toy = test_file.substr(0, test_file.size() - strlen(".test")); in initTests()
203 return new ToyboxTest(toy, test_file); in initTests()
/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/google-breakpad/src/common/linux/
Dmemory_mapped_file_unittest.cc89 string test_file = temp_dir.path() + "/empty_file"; in TEST_F() local
90 ASSERT_TRUE(WriteFile(test_file.c_str(), NULL, 0)); in TEST_F()
93 MemoryMappedFile mapped_file(test_file.c_str(), 0); in TEST_F()
98 EXPECT_TRUE(mapped_file.Map(test_file.c_str(), 0)); in TEST_F()
111 string test_file = temp_dir.path() + "/test_file"; in TEST_F() local
112 ASSERT_TRUE(WriteFile(test_file.c_str(), data, data_size)); in TEST_F()
115 MemoryMappedFile mapped_file(test_file.c_str(), 0); in TEST_F()
123 EXPECT_TRUE(mapped_file.Map(test_file.c_str(), 0)); in TEST_F()
/external/pdfium/core/fpdfapi/parser/
Dcpdf_parser_unittest.cpp148 std::string test_file = in TEST() local
150 ASSERT_FALSE(test_file.empty()); in TEST()
151 ASSERT_TRUE(parser.InitTestFromFile(test_file.c_str())) << test_file; in TEST()
172 std::string test_file = in TEST() local
174 ASSERT_FALSE(test_file.empty()); in TEST()
175 ASSERT_TRUE(parser.InitTestFromFile(test_file.c_str())) << test_file; in TEST()
335 std::string test_file = in TEST() local
337 ASSERT_FALSE(test_file.empty()); in TEST()
338 ASSERT_TRUE(parser.InitTestFromFile(test_file.c_str())) << test_file; in TEST()
349 std::string test_file = in TEST() local
[all …]
/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)

123456789