/third_party/python/Lib/distutils/tests/ |
D | test_sdist.py | 64 os.mkdir(join(self.tmp_dir, 'somecode')) 65 os.mkdir(join(self.tmp_dir, 'dist')) 67 self.write_file((self.tmp_dir, 'README'), 'xxx') 68 self.write_file((self.tmp_dir, 'somecode', '__init__.py'), '#') 69 self.write_file((self.tmp_dir, 'setup.py'), SETUP_PY) 70 os.chdir(self.tmp_dir) 97 os.mkdir(join(self.tmp_dir, 'somecode', '.svn')) 98 self.write_file((self.tmp_dir, 'somecode', '.svn', 'ok.py'), 'xxx') 100 os.mkdir(join(self.tmp_dir, 'somecode', '.hg')) 101 self.write_file((self.tmp_dir, 'somecode', '.hg', [all …]
|
D | test_spawn.py | 47 with os_helper.temp_dir() as tmp_dir: 54 filename = os.path.join(tmp_dir, program) 60 rv = find_executable(program, path=tmp_dir) 65 rv = find_executable(program_noeext, path=tmp_dir) 69 with os_helper.change_cwd(tmp_dir): 75 rv = find_executable(dont_exist_program , path=tmp_dir) 82 return_value=tmp_dir, create=True), \ 84 tmp_dir): 89 with os_helper.change_cwd(tmp_dir): 103 with os_helper.change_cwd(tmp_dir): [all …]
|
D | test_bdist_rpm.py | 54 tmp_dir = self.mkdtemp() 55 os.environ['HOME'] = tmp_dir # to confine dir '.rpmdb' creation 56 pkg_dir = os.path.join(tmp_dir, 'foo') 98 tmp_dir = self.mkdtemp() 99 os.environ['HOME'] = tmp_dir # to confine dir '.rpmdb' creation 100 pkg_dir = os.path.join(tmp_dir, 'foo')
|
D | test_build_ext.py | 32 self.tmp_dir = self.mkdtemp() 43 change_cwd = os_helper.change_cwd(self.tmp_dir) 64 copy_xxmodule_c(self.tmp_dir) 65 xx_c = os.path.join(self.tmp_dir, 'xxmodule.c') 68 dist.package_dir = self.tmp_dir 71 cmd.build_lib = self.tmp_dir 72 cmd.build_temp = self.tmp_dir 339 tmp_dir = self.mkdtemp() 340 c_file = os.path.join(tmp_dir, 'foo.c') 350 cmd.build_lib = os.path.join(self.tmp_dir, 'build') [all …]
|
D | test_config.py | 61 self.tmp_dir = self.mkdtemp() 62 os.environ['HOME'] = self.tmp_dir 63 os.environ['USERPROFILE'] = self.tmp_dir 64 self.rc = os.path.join(self.tmp_dir, '.pypirc')
|
/third_party/mindspore/tests/ut/python/train/summary/ |
D | test_histogram_summary.py | 55 with tempfile.TemporaryDirectory() as tmp_dir: 56 with SummaryRecord(tmp_dir, file_suffix="_MS_HISTOGRAM") as test_writer: 69 with tempfile.TemporaryDirectory() as tmp_dir: 70 with SummaryRecord(tmp_dir, file_suffix="_MS_HISTOGRAM") as test_writer: 93 with tempfile.TemporaryDirectory() as tmp_dir: 94 with SummaryRecord(tmp_dir, file_suffix="_MS_HISTOGRAM") as test_writer: 108 with tempfile.TemporaryDirectory() as tmp_dir: 109 with SummaryRecord(tmp_dir, file_suffix="_MS_HISTOGRAM") as test_writer: 128 with tempfile.TemporaryDirectory() as tmp_dir: 129 with SummaryRecord(tmp_dir, file_suffix="_MS_HISTOGRAM") as test_writer: [all …]
|
/third_party/skia/infra/bots/recipe_modules/flavor/ |
D | api.py | 134 def _copy_dir(self, host_version, version_file, tmp_dir, argument 136 actual_version_file = self.m.path.join(tmp_dir, version_file) 139 self.device_dirs.tmp_dir, version_file) 159 self.m.path.join(self.m.vars.tmp_dir, VERSION_FILE_SK_IMAGE), 164 self.m.vars.tmp_dir, 173 self.m.path.join(self.m.vars.tmp_dir, VERSION_FILE_LOTTIE), 178 self.m.vars.tmp_dir, 187 self.m.path.join(self.m.vars.tmp_dir, VERSION_FILE_SKP), 192 self.m.vars.tmp_dir, 201 self.m.path.join(self.m.vars.tmp_dir, VERSION_FILE_SVG), [all …]
|
/third_party/flutter/skia/infra/bots/recipe_modules/flavor/ |
D | api.py | 142 def _copy_dir(self, host_version, version_file, tmp_dir, argument 144 actual_version_file = self.m.path.join(tmp_dir, version_file) 147 self.device_dirs.tmp_dir, version_file) 167 self.m.path.join(self.m.vars.tmp_dir, VERSION_FILE_SK_IMAGE), 172 self.m.vars.tmp_dir, 181 self.m.path.join(self.m.vars.tmp_dir, VERSION_FILE_LOTTIE), 186 self.m.vars.tmp_dir, 195 self.m.path.join(self.m.vars.tmp_dir, VERSION_FILE_SKP), 200 self.m.vars.tmp_dir, 209 self.m.path.join(self.m.vars.tmp_dir, VERSION_FILE_SVG), [all …]
|
D | default.py | 26 tmp_dir): argument 36 self._tmp_dir = tmp_dir 77 def tmp_dir(self): member in DeviceDirs 102 tmp_dir=self.m.vars.tmp_dir) 205 vendors_dir = self.m.vars.tmp_dir.join('OpenCL', 'vendors')
|
/third_party/ltp/lib/tests/ |
D | tst_tmpdir_test.c | 51 char *tmp_dir; in main() local 58 tmp_dir = tst_get_tmpdir(); in main() 61 if (strcmp(tmp_dir, changed_dir) == 0 && in main() 62 strcmp(tmp_dir, start_dir) != 0) { in main() 71 if (chdir(tmp_dir) == -1 && errno == ENOENT) { in main()
|
/third_party/mindspore/tests/st/dump/ |
D | test_data_dump.py | 59 with tempfile.TemporaryDirectory(dir='/tmp') as tmp_dir: 60 dump_path = os.path.join(tmp_dir, 'async_dump') 61 dump_config_path = os.path.join(tmp_dir, 'async_dump.json') 76 with tempfile.TemporaryDirectory(dir='/tmp') as tmp_dir: 77 dump_path = os.path.join(tmp_dir, 'e2e_dump') 78 dump_config_path = os.path.join(tmp_dir, 'e2e_dump.json') 187 with tempfile.TemporaryDirectory(dir='/tmp') as tmp_dir: 188 dump_path = os.path.join(tmp_dir, 'async_dump_net_multi_layer_mode1') 189 json_file_path = os.path.join(tmp_dir, "test_async_dump_net_multi_layer_mode1.json") 234 with tempfile.TemporaryDirectory(dir='/tmp') as tmp_dir: [all …]
|
/third_party/lz4/tests/ |
D | test-lz4-versions.py | 58 tmp_dir = base_dir + '/' + tmp_dir_name # /path/to/lz4/tests/versionsTest variable 59 clone_dir = tmp_dir + '/' + 'lz4' # /path/to/lz4/tests/versionsTest/lz4 61 os.makedirs(tmp_dir, exist_ok=True) 67 shutil.copy2(base_dir + '/' + test_dat_src, tmp_dir + '/' + test_dat) 78 dst_lz4c = '{}/lz4c.{}' .format(tmp_dir, tag) # /path/to/lz4/test/lz4test/lz4c.<TAG> 79 dst_lz4c32 = '{}/lz4c32.{}'.format(tmp_dir, tag) # /path/to/lz4/test/lz4test/lz4c32.<TAG> 82 r_dir = '{}/{}'.format(tmp_dir, tag) # /path/to/lz4/test/lz4test/<TAG> 96 os.chdir(tmp_dir)
|
/third_party/python/Lib/test/ |
D | test_tabnanny.py | 178 with tempfile.TemporaryDirectory() as tmp_dir: 180 file1 = TemporaryPyFile(SOURCE_CODES["error_free"], directory=tmp_dir) 181 file2 = TemporaryPyFile(SOURCE_CODES["error_free"], directory=tmp_dir) 188 tabnanny.check(tmp_dir) 197 with tempfile.TemporaryDirectory() as tmp_dir: 198 with TemporaryPyFile(SOURCE_CODES["error_free"], directory=tmp_dir): 199 self.verify_tabnanny_check(tmp_dir) 244 with tempfile.TemporaryDirectory() as tmp_dir: 246 SOURCE_CODES["wrong_indented"], directory=tmp_dir 249 SOURCE_CODES["error_free"], directory=tmp_dir [all …]
|
D | test_shutil.py | 392 tmp_dir = self.mkdtemp() 393 d = os.path.join(tmp_dir, 'a') 492 tmp_dir = self.mkdtemp() 493 src_dir = os.path.join(tmp_dir, 'src') 494 dst_dir = os.path.join(tmp_dir, 'dst') 591 tmp_dir = self.mkdtemp() 592 src_dir = join(tmp_dir, "source") 621 src_dir_entry = list(os.scandir(tmp_dir))[0] 630 tmp_dir = self.mkdtemp() 631 src_dir = os.path.join(tmp_dir, 'source') [all …]
|
/third_party/grpc/src/ruby/spec/pb/codegen/ |
D | package_option_spec.rb | 80 Dir.mktmpdir(nil, File.dirname(__FILE__)) do |tmp_dir| 84 "--grpc_out=#{tmp_dir}", # generate the service 85 "--ruby_out=#{tmp_dir}", # generate the definitions 92 $LOAD_PATH.push(tmp_dir) 95 $LOAD_PATH.delete(tmp_dir)
|
/third_party/abseil-cpp/absl/debugging/ |
D | failure_signal_handler_test.cc | 77 const char* tmp_dir = std::getenv(var); in GetTmpDir() local 78 if (tmp_dir != nullptr) { in GetTmpDir() 79 return tmp_dir; in GetTmpDir() 99 std::string tmp_dir = GetTmpDir(); in TEST_P() local 100 std::string file = absl::StrCat(tmp_dir, "/signo_", signo); in TEST_P()
|
/third_party/skia/third_party/externals/abseil-cpp/absl/debugging/ |
D | failure_signal_handler_test.cc | 77 const char* tmp_dir = std::getenv(var); in GetTmpDir() local 78 if (tmp_dir != nullptr) { in GetTmpDir() 79 return tmp_dir; in GetTmpDir() 99 std::string tmp_dir = GetTmpDir(); in TEST_P() local 100 std::string file = absl::StrCat(tmp_dir, "/signo_", signo); in TEST_P()
|
/third_party/grpc/src/ruby/end2end/ |
D | package_with_underscore_test.rb | 28 Dir.mktmpdir do |tmp_dir| 29 gen_out = File.join(tmp_dir, 'package_with_underscore', 'service_services_pb.rb') 35 "--grpc_out=#{tmp_dir}",
|
D | package_with_underscore_checker.rb | 31 Dir.mktmpdir do |tmp_dir| 32 gen_out = File.join(tmp_dir, 'package_with_underscore', 'service_services_pb.rb') 38 "--grpc_out=#{tmp_dir}",
|
/third_party/grpc/src/ruby/spec/pb/duplicate/ |
D | codegen_spec.rb | 41 Dir.mktmpdir do |tmp_dir| 42 gen_out = File.join(tmp_dir, 'src', 'proto', 'grpc', 'testing', 48 "--grpc_out=#{tmp_dir}",
|
/third_party/python/Lib/test/libregrtest/ |
D | main.py | 94 self.tmp_dir = None 207 self.next_single_filename = os.path.join(self.tmp_dir, 'pynexttest') 588 self.tmp_dir = self.ns.tempdir 590 if not self.tmp_dir: 595 self.tmp_dir = sysconfig.get_config_var('abs_builddir') 596 if self.tmp_dir is None: 601 self.tmp_dir = sysconfig.get_config_var('srcdir') 602 self.tmp_dir = os.path.join(self.tmp_dir, 'build') 604 self.tmp_dir = tempfile.gettempdir() 606 self.tmp_dir = os.path.abspath(self.tmp_dir) [all …]
|
/third_party/skia/infra/bots/ |
D | zip_utils_test.py | 23 with utils.tmp_dir(): 43 with utils.tmp_dir(): 68 with utils.tmp_dir():
|
/third_party/flutter/skia/infra/bots/ |
D | zip_utils_test.py | 23 with utils.tmp_dir(): 43 with utils.tmp_dir(): 68 with utils.tmp_dir():
|
/third_party/mindspore/mindspore/lite/test/st/scripts/ |
D | run_net_train.sh | 312 tmp_dir="/data/local/tmp/benchmark_train_test_$1" 313 echo "cd ${tmp_dir}" > ${adb_cmd_file} 330 local export_file="${tmp_dir}/${model_name}_tod" 331 local inference_file="${tmp_dir}/${model_name}_infer" 338 export_file="${tmp_dir}/${model_prefix}_tod_head" 339 inference_file="${tmp_dir}/${model_prefix}_infer" 344 …model_prefix}_input*.bin ${train_io_path}/${model_prefix}_output*.bin ${tmp_dir} >> ${adb_push_l… 345 echo "cd ${tmp_dir}" > ${adb_cmd_run_file} 364 export LD_LIBRARY_PATH=./:/data/local/tmp/:${tmp_dir};./benchmark_train \ 368 --inDataFile=${tmp_dir}/${model_prefix}_input \ [all …]
|
/third_party/cef/tests/ceftests/ |
D | scoped_temp_dir_unittest.cc | 53 CefString tmp_dir; in TEST() local 54 EXPECT_TRUE(CefGetTempDirectory(tmp_dir)); in TEST() 55 EXPECT_TRUE(test_path.ToString().find(tmp_dir.ToString()) != in TEST()
|