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/libchrome/base/files/
Dfile_path_watcher_unittest.cc171 FilePath test_file() { in test_file() function in base::__anonbec4f5360111::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/autotest/client/site_tests/graphics_dEQP/
Dgenerate_controlfiles.py46 …te.bvtcq, shards=1, hasty=False, time='FAST', tag='bvt', test_file=BVT_MASTER_FILE,…
47 …te.daily, shards=1, hasty=False, time='LENGTHY', tag='gles2-master', test_file=GLES2_MASTER_FIL…
53 …te.daily, shards=1, hasty=False, time='LONG', tag='stress', test_file=None, …
54 …te.none, shards=1, hasty=False, time='FAST', tag=None, test_file=None, …
55 …te.daily, shards=1, hasty=False, time='LENGTHY', tag='gles3-master', test_file=GLES3_MASTER_FIL…
57 …te.none, shards=1, hasty=False, time='LONG', tag=None, test_file=None, …
59 …te.none, shards=1, hasty=False, time='LONG', tag=None, test_file=None, …
60 …te.daily, shards=1, hasty=False, time='LENGTHY', tag='gles31-master', test_file=GLES31_MASTER_FI…
62 …te.daily, shards=1, hasty=False, time='LONG', tag='stress', test_file=None, …
63 …te.daily, shards=1, hasty=True, time='LENGTHY', tag='vk-master', test_file=VK_MASTER_FILE, …
[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 file(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/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/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/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.py88 for test_file in self._TEST_FILES:
89 uri = self._TEST_FILES_LOCATION + test_file
91 test_file), uri))
93 for test_file in os.listdir(self._TMP_LOCATION):
94 if test_file == 'app-debug.apk':
96 os.path.join(self._TMP_LOCATION, test_file))
99 elif test_file == 'app-debug-androidTest.apk':
102 os.path.join(self._TMP_LOCATION, test_file))
107 self._TMP_LOCATION, test_file))
/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/pdfium/core/fpdfapi/parser/
Dcpdf_parser_unittest.cpp55 std::string test_file; in TEST() local
57 &test_file)); in TEST()
58 ASSERT_TRUE(parser.InitTestFromFile(test_file.c_str())) << test_file; in TEST()
71 std::string test_file; in TEST() local
73 "parser_rebuildxref_error_notrailer.pdf", &test_file)); in TEST()
74 ASSERT_TRUE(parser.InitTestFromFile(test_file.c_str())) << test_file; in TEST()
/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/toolchain-utils/binary_search_tool/sysroot_wrapper/
Dtesting_test.py27 for test_file in bad_files:
28 test_file = test_file.strip()
29 cmd = ['grep', test_file, os.path.join(bisect_dir, 'BAD_SET')]
/external/perf_data_converter/src/quipper/
Dconversion_utils_test.cc23 const string test_file = GetParam(); in TEST_P() local
27 input.filename = GetTestInputFilePath(test_file); in TEST_P()
29 output.filename = output_path + test_file + ".pb_text"; in TEST_P()
33 string golden_file = GetTestInputFilePath(string(test_file) + ".pb_text"); in TEST_P()
Dperf_serializer_test.cc198 const string test_file = GetParam(); in TEST_P() local
199 const string input_perf_data = GetTestInputFilePath(test_file); in TEST_P()
200 const string output_perf_data = output_path + test_file + ".serialized.out"; in TEST_P()
202 output_path + test_file + ".serialized.1.out"; in TEST_P()
223 string output_perf_data2 = output_path + test_file + ".io.out"; in TEST_P()
255 const string test_file = GetParam(); in TEST_P() local
256 const string input_perf_data = GetTestInputFilePath(test_file); in TEST_P()
258 const string output_perf_data = output_path + test_file + ".ser.remap.out"; in TEST_P()
269 const string test_file = GetParam(); in TEST_P() local
270 const string input_perf_data = GetTestInputFilePath(test_file); in TEST_P()
[all …]
/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/epid-sdk/parts-site/tools/
Dg++.py38 test_file='arm-linux-gnueabi-g++')
54 test_file='arm-linux-gnueabihf-g++')
70 test_file='aarch64-linux-gnu-g++')
Dgcc.py39 test_file='arm-linux-gnueabi-gcc')
55 test_file='arm-linux-gnueabihf-gcc')
71 test_file='aarch64-linux-gnu-gcc')
/external/autotest/client/site_tests/login_Cryptohome/
Dlogin_Cryptohome.py37 test_file = os.path.join(cryptohome.user_path(TEST_USER), 'hello')
38 open(test_file, 'w').close()
44 if os.path.exists(test_file):
/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