Home
last modified time | relevance | path

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

1234

/external/libxkbcommon/xkbcommon/test/
Dfilecomp.c27 test_file(struct xkb_context *ctx, const char *path_rel) in test_file() function
43 assert(test_file(ctx, "keymaps/basic.xkb")); in main()
44 assert(test_file(ctx, "keymaps/comprehensive-plus-geom.xkb")); in main()
45 assert(test_file(ctx, "keymaps/no-types.xkb")); in main()
46 assert(test_file(ctx, "keymaps/quartz.xkb")); in main()
47 assert(test_file(ctx, "keymaps/no-aliases.xkb")); in main()
49 assert(!test_file(ctx, "keymaps/divide-by-zero.xkb")); in main()
50 assert(!test_file(ctx, "keymaps/bad.xkb")); in main()
51 assert(!test_file(ctx, "keymaps/syntax-error.xkb")); in main()
52 assert(!test_file(ctx, "keymaps/syntax-error2.xkb")); in main()
[all …]
/external/python/cpython3/Lib/lib2to3/tests/
Dtest_refactor.py180 def check_file_refactoring(self, test_file, fixers=_2TO3_FIXERS, argument
183 test_file = self.init_test_file(test_file)
184 old_contents = self.read_file(test_file)
189 rt.refactor_file(test_file)
190 self.assertEqual(old_contents, self.read_file(test_file))
194 rt.refactor_file(test_file, True)
195 new_contents = self.read_file(test_file)
199 def init_test_file(self, test_file): argument
202 shutil.copy(test_file, tmpdir)
203 test_file = os.path.join(tmpdir, os.path.basename(test_file))
[all …]
/external/linux-kselftest/tools/testing/selftests/bpf/prog_tests/
Dbtf_dump.c50 char test_file[256], out_file[256], diff_cmd[1024]; in test_btf_dump_case() local
55 snprintf(test_file, sizeof(test_file), "%s.o", t->file); in test_btf_dump_case()
57 btf = btf__parse_elf(test_file, NULL); in test_btf_dump_case()
86 snprintf(test_file, sizeof(test_file), "progs/%s.c", t->file); in test_btf_dump_case()
87 if (access(test_file, R_OK) == -1) in test_btf_dump_case()
92 snprintf(test_file, sizeof(test_file), "%s.c", t->file); in test_btf_dump_case()
105 test_file, out_file); in test_btf_dump_case()
/external/libchrome/base/files/
Dfile_path_watcher_unittest.cc171 FilePath test_file() { in test_file() function in base::__anond3fc45380111::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/swiftshader/third_party/subzero/pydir/
Dwasm-run-torture-tests.py126 def run_test(test_file, verbose=False): argument
138 test_name = os.path.basename(test_file)
143 print("\033[1;34mSkipping {}\033[1;m".format(test_file))
148 -verbose=wasm -o {}""".format(test_file, obj_file)
155 out.write(test_file + " ...");
160 compile_failures.append(test_file)
176 run_failures.append(test_file)
180 run_failures.append(test_file)
208 for test_file in test_files:
209 tasks.put(test_file)
/external/u-boot/test/py/tests/
Dtest_hush_if_test.py138 test_file = u_boot_console.config.result_dir + \
142 os.unlink(test_file)
145 assert not os.path.exists(test_file)
147 expr = 'test -e hostfs - ' + test_file
151 with open(test_file, 'wb'):
153 assert os.path.exists(test_file)
155 expr = 'test -e hostfs - ' + test_file
158 os.unlink(test_file)
160 expr = 'test -e hostfs - ' + test_file
/external/pdfium/core/fpdfapi/parser/
Dcpdf_parser_unittest.cpp74 std::string test_file; in TEST() local
76 &test_file)); in TEST()
77 ASSERT_TRUE(parser.InitTestFromFile(test_file.c_str())) << test_file; in TEST()
90 std::string test_file; in TEST() local
92 "parser_rebuildxref_error_notrailer.pdf", &test_file)); in TEST()
93 ASSERT_TRUE(parser.InitTestFromFile(test_file.c_str())) << test_file; in TEST()
269 std::string test_file; in TEST() local
271 PathService::GetTestFilePath("annotation_stamp_with_ap.pdf", &test_file)); in TEST()
272 ASSERT_TRUE(parser.InitTestFromFile(test_file.c_str())) << test_file; in TEST()
283 std::string test_file; in TEST() local
[all …]
/external/autotest/client/site_tests/graphics_dEQP/
Dgenerate_controlfiles.py44 …te.daily, shards=1, hasty=False, time='FAST', tag='bvt', test_file=BVT_MASTER_FILE,…
45 …te.daily, shards=1, hasty=False, time='LENGTHY', tag='gles2-master', test_file=GLES2_MASTER_FIL…
51 …te.none, shards=1, hasty=False, time='FAST', tag=None, test_file=None, …
52 …te.daily, shards=1, hasty=False, time='LENGTHY', tag='gles3-master', test_file=GLES3_MASTER_FIL…
54 …te.none, shards=1, hasty=False, time='LONG', tag=None, test_file=None, …
56 …te.daily, shards=1, hasty=False, time='LENGTHY', tag='gles31-master', test_file=GLES31_MASTER_FI…
58 …te.daily, shards=1, hasty=True, time='LENGTHY', tag='vk-master', test_file=VK_MASTER_FILE, …
151 test_file=test.test_file,
/external/toolchain-utils/
Drun_tests_for.py64 for test_file in test_files:
65 rel_path = _make_relative_to_toolchain_utils(toolchain_utils, test_file)
67 python_tests.append(_python_test_to_spec(test_file))
97 def _python_test_to_spec(test_file): argument
101 test_directory = os.path.dirname(os.path.abspath(test_file))
102 file_name = os.path.basename(test_file)
104 if os.access(test_file, os.X_OK):
113 def _autodetect_python_tests_for(test_file, toolchain_utils): argument
115 if not test_file.endswith('.py'):
119 if any(test_file.endswith(x) for x in test_suffixes):
[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
Dpm_include.sh107 echo ${input} > ${test_file} 2>/dev/null
109 output=$(cat ${test_file})
111 echo "${0}: ${PASS}: echo ${input} > ${test_file}"
116 echo "${0}: ${FAIL}: echo ${input} > ${test_file}"
/external/autotest/client/site_tests/audio_SeekAudioFeedback/
Daudio_SeekAudioFeedback.py25 def run_once(self, test_file, test_duration): argument
42 self.rms_test(tab, test_file, noiseprof_file.name, test_duration)
46 def rms_test(self, tab, test_file, noiseprof_file, test_duration): argument
47 logging.info('rms test on media file %s.', test_file)
54 self.play_media(tab, test_file, x)
75 self._rms_values['%s_rms_value' % test_file.replace('.', '_')]=rms
85 def play_media(self, tab, test_file, value): argument
91 tab.EvaluateJavaScript('play("%s")' % test_file)
/external/autotest/client/site_tests/login_CryptohomeDataLeak/
Dlogin_CryptohomeDataLeak.py23 test_file = ''
30 test_file = '/home/.shadow/%s/mount/hello' \
33 logging.info("Test file: %s", test_file)
34 open(test_file, 'w').close()
42 if os.path.isfile(test_file):
/external/autotest/client/site_tests/cheets_AppCompatTest/
Dcheets_AppCompatTest.py94 for test_file in self._TEST_FILES:
95 uri = self._TEST_FILES_LOCATION + test_file
97 test_file), uri))
99 for test_file in os.listdir(self._TMP_LOCATION):
100 if test_file == 'app-debug.apk':
102 os.path.join(self._TMP_LOCATION, test_file))
105 elif test_file == 'app-debug-androidTest.apk':
108 os.path.join(self._TMP_LOCATION, test_file))
113 self._TMP_LOCATION, test_file))
/external/toolchain-utils/binary_search_tool/sysroot_wrapper/
Dtesting_test.py32 for test_file in bad_files:
33 test_file = test_file.strip()
34 cmd = ['grep', test_file, os.path.join(bisect_dir, 'BAD_SET')]
/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/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/tensorflow/tensorflow/tools/tensorflow_builder/compat_checker/
Dcompat_checker_test.py75 self.test_file = os.path.join(PATH_TO_DIR, "test_config.ini")
86 USER_CONFIG_IN_RANGE, self.test_file)
103 USER_CONFIG_NOT_IN_RANGE, self.test_file)
116 USER_CONFIG_MISSING, self.test_file)
/external/webrtc/webrtc/modules/audio_processing/transient/
Dwpd_tree_unittest.cc126 rtc::scoped_ptr<FileWrapper> test_file(FileWrapper::Create()); in TEST() local
128 test_file->OpenFile(test_file_name.c_str(), in TEST()
133 bool file_opened = test_file->Open(); in TEST()
146 size_t file_samples_read = ReadInt16FromFileToFloatBuffer(test_file.get(), in TEST()
188 file_samples_read = ReadInt16FromFileToFloatBuffer(test_file.get(), in TEST()
199 test_file->CloseFile(); in TEST()
/external/autotest/client/site_tests/enterprise_SmbProviderDaemon/
Denterprise_SmbProviderDaemon.py100 test_file = test_dir + '1.txt'
101 self._check_create_file(mount_id, test_file)
104 file_id = self._check_open_file(mount_id, test_file, False)
108 file_id = self._check_open_file(mount_id, test_file, False)
112 file_id = self._check_open_file(mount_id, test_file, True)
128 metadata = self._check_get_metadata(mount_id, test_file)
136 self._check_delete_entry(mount_id, test_file, False)
/external/swiftshader/third_party/llvm-7.0/llvm/utils/
Dupdate_mir_test_checks.py85 def warn(msg, test_file=None): argument
86 if test_file:
87 msg = '{}: {}'.format(test_file, msg)
124 warn('Skipping non-llc RUN line: {}'.format(l), test_file=test)
128 test_file=test)
193 test_file=test)
225 test_file=test)
314 warn('No triple found: skipping file', test_file=test)
330 test_file=test)
432 warn('Error processing file', test_file=test)
/external/elfutils/tests/
Drun-large-elf-file.sh62 test_file () function
109 test_file testfile38
112 test_file testfile27
/external/webrtc/webrtc/modules/video_coding/codecs/tools/
Dvideo_quality_measurement.cc156 FILE* test_file; in HandleCommandLineFlags() local
157 test_file = fopen(FLAGS_input_filename.c_str(), "rb"); in HandleCommandLineFlags()
158 if (test_file == NULL) { in HandleCommandLineFlags()
163 fclose(test_file); in HandleCommandLineFlags()
196 test_file = fopen(config->output_filename.c_str(), "wb"); in HandleCommandLineFlags()
197 if (test_file == NULL) { in HandleCommandLineFlags()
202 fclose(test_file); in HandleCommandLineFlags()

1234