Home
last modified time | relevance | path

Searched refs:test_file (Results 1 – 25 of 87) 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/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…
48 …te.bvtpb, shards=10, hasty=True, time='FAST', tag='gles2-master', test_file=GLES2_MASTER_FIL…
52 …te.daily, shards=1, hasty=False, time='LONG', tag='stress', test_file=None, …
53 …te.none, shards=1, hasty=False, time='FAST', tag=None, test_file=None, …
54 …te.daily, shards=1, hasty=False, time='LENGTHY', tag='gles3-master', test_file=GLES3_MASTER_FIL…
55 …te.bvtpb, shards=10, hasty=True, time='FAST', tag='gles3-master', test_file=GLES3_MASTER_FIL…
56 …te.none, shards=1, hasty=False, time='LONG', tag=None, test_file=None, …
58 …te.none, shards=1, hasty=False, time='LONG', tag=None, test_file=None, …
59 …te.daily, shards=1, hasty=False, time='LENGTHY', tag='gles31-master', test_file=GLES31_MASTER_FI…
[all …]
/external/libchrome/base/files/
Dfile_path_watcher_unittest.cc166 FilePath test_file() { in test_file() function in base::__anond74f492a0111::FilePathWatcherTest
224 ASSERT_TRUE(SetupWatch(test_file(), &watcher, delegate.get(), false)); in TEST_F()
226 ASSERT_TRUE(WriteFile(test_file(), "content")); in TEST_F()
232 ASSERT_TRUE(WriteFile(test_file(), "content")); in TEST_F()
236 ASSERT_TRUE(SetupWatch(test_file(), &watcher, delegate.get(), false)); in TEST_F()
239 ASSERT_TRUE(WriteFile(test_file(), "new content")); in TEST_F()
250 ASSERT_TRUE(SetupWatch(test_file(), &watcher, delegate.get(), false)); in TEST_F()
253 ASSERT_TRUE(base::Move(source_file, test_file())); in TEST_F()
258 ASSERT_TRUE(WriteFile(test_file(), "content")); in TEST_F()
262 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/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
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/login_CryptohomeDataLeak/
Dlogin_CryptohomeDataLeak.py23 test_file = ''
30 test_file = '/home/.shadow/%s/mount/hello' \
33 logging.info("Test file: ", test_file)
34 open(test_file, 'w').close()
42 if os.path.isfile(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/python/cpython3/Lib/lib2to3/tests/
Dtest_refactor.py180 def check_file_refactoring(self, test_file, fixers=_2TO3_FIXERS, argument
186 shutil.copy(test_file, tmpdir)
187 test_file = os.path.join(tmpdir, os.path.basename(test_file))
188 os.chmod(test_file, 0o644)
191 with open(test_file, "rb") as fp:
199 rt.refactor_file(test_file)
204 rt.refactor_file(test_file, True)
210 test_file = os.path.join(FIXER_DIR, "parrot_example.py")
211 self.check_file_refactoring(test_file, _DEFAULT_FIXERS)
214 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/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/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/security_Minijail0/src/
Dmountns-enter.py16 test_file = os.path.join(tmpdir, "test") variable
17 with open(test_file, "w") as t:
22 sys.executable, child_path, test_file])
Dmountns-enter-child.py9 test_file = sys.argv[1] variable
12 if os.access(test_file, os.F_OK):
/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()
/external/autotest/client/common_lib/
Dutils_unittest.py66 test_file = StringIO.StringIO(contents)
67 utils.open.expect_call("filename", "r").and_return(test_file)
118 test_file = mock.SaveDataAfterCloseStringIO()
119 utils.open.expect_call("filename", "w").and_return(test_file)
122 return test_file.final_data
157 test_file = mock.SaveDataAfterCloseStringIO()
158 utils.open.expect_call("filename", "w").and_return(test_file)
161 self.assertEqual(data, test_file.final_data)
177 test_file = StringIO.StringIO(contents)
179 utils.open.expect_call(filename).and_return(test_file)
[all …]
/external/tensorflow/tensorflow/examples/tutorials/estimators/
Dabalone.py53 test_file = tempfile.NamedTemporaryFile(delete=False)
55 "http://download.tensorflow.org/data/abalone_test.csv", test_file.name)
56 test_file_name = test_file.name
57 test_file.close()
/external/tensorflow/tensorflow/python/debug/examples/
Ddebug_tflearn_iris.py63 test_file = open(test_data_path, "wt")
64 urllib.request.urlretrieve(IRIS_TEST_DATA_URL, test_file.name)
65 test_file.close()
67 print("Test data are downloaded to %s" % test_file.name)

1234