/external/oss-fuzz/infra/cifuzz/ |
D | cifuzz_test.py | 38 with tempfile.TemporaryDirectory() as tmp_dir: 39 out_path = os.path.join(tmp_dir, 'out') 45 tmp_dir, 51 with tempfile.TemporaryDirectory() as tmp_dir: 52 out_path = os.path.join(tmp_dir, 'out') 57 tmp_dir, 63 with tempfile.TemporaryDirectory() as tmp_dir: 64 out_path = os.path.join(tmp_dir, 'out') 69 tmp_dir, 74 with tempfile.TemporaryDirectory() as tmp_dir: [all …]
|
/external/oss-fuzz/infra/ |
D | repo_manager_test.py | 34 with tempfile.TemporaryDirectory() as tmp_dir: 35 test_repo_manager = repo_manager.RepoManager(OSS_FUZZ_REPO, tmp_dir) 43 with tempfile.TemporaryDirectory() as tmp_dir: 45 repo_manager.RepoManager(' ', tmp_dir) 47 repo_manager.RepoManager('not_a_valid_repo', tmp_dir) 50 tmp_dir) 58 with tempfile.TemporaryDirectory() as tmp_dir: 59 test_repo_manager = repo_manager.RepoManager(OSS_FUZZ_REPO, tmp_dir) 66 with tempfile.TemporaryDirectory() as tmp_dir: 67 test_repo_manager = repo_manager.RepoManager(OSS_FUZZ_REPO, tmp_dir) [all …]
|
/external/tensorflow/tensorflow/examples/speech_commands/ |
D | input_data_test.py | 67 tmp_dir = self.get_temp_dir() 68 wav_dir = os.path.join(tmp_dir, "wavs") 81 "", wav_dir, 10, 10, ["a", "b"], 10, 10, model_settings, tmp_dir) 102 tmp_dir = self.get_temp_dir() 103 self._saveWavFolders(tmp_dir, ["a", "b", "c"], 100) 104 audio_processor = input_data.AudioProcessor("", tmp_dir, 10, 10, 106 self._model_settings(), tmp_dir) 115 tmp_dir = self.get_temp_dir() 116 self._saveWavFolders(tmp_dir, ["a", "b", "c"], 0) 118 _ = input_data.AudioProcessor("", tmp_dir, 10, 10, ["a", "b"], 10, 10, [all …]
|
D | wav_to_features_test.py | 54 tmp_dir = self.get_temp_dir() 55 wav_dir = os.path.join(tmp_dir, "wavs") 58 input_file_path = os.path.join(tmp_dir, "input.wav") 59 output_file_path = os.path.join(tmp_dir, "output.c") 70 tmp_dir = self.get_temp_dir() 71 wav_dir = os.path.join(tmp_dir, "wavs") 74 input_file_path = os.path.join(tmp_dir, "input.wav") 75 output_file_path = os.path.join(tmp_dir, "output.c")
|
/external/tensorflow/tensorflow/python/data/experimental/benchmarks/ |
D | snapshot_dataset_benchmark.py | 38 tmp_dir = test.get_temp_dir() 39 tmp_dir = os.path.join(tmp_dir, "snapshot") 40 if os.path.exists(tmp_dir): 41 shutil.rmtree(tmp_dir) 42 os.mkdir(tmp_dir) 43 return tmp_dir 45 def _createSimpleDataset(self, num_elems, tmp_dir=None, argument 47 if not tmp_dir: 48 tmp_dir = self._makeSnapshotDirectory() 54 dataset = dataset.apply(snapshot.snapshot(tmp_dir, compression=compression)) [all …]
|
/external/bcc/tests/python/ |
D | test_usdt3.py | 81 self.tmp_dir = tempfile.mkdtemp() 82 print("temp directory: " + self.tmp_dir) 83 _create_file(self.tmp_dir + "/common.h", common_h) 84 _create_file(self.tmp_dir + "/a.c", a_c) 85 _create_file(self.tmp_dir + "/b.c", b_c) 86 _create_file(self.tmp_dir + "/m.c", m_c) 91 a_src = self.tmp_dir + "/a.c" 92 a_obj = self.tmp_dir + "/a.o" 93 a_lib = self.tmp_dir + "/liba.so" 94 b_src = self.tmp_dir + "/b.c" [all …]
|
/external/python/cpython2/Lib/distutils/tests/ |
D | test_sdist.py | 65 os.mkdir(join(self.tmp_dir, 'somecode')) 66 os.mkdir(join(self.tmp_dir, 'dist')) 68 self.write_file((self.tmp_dir, 'README'), 'xxx') 69 self.write_file((self.tmp_dir, 'somecode', '__init__.py'), '#') 70 self.write_file((self.tmp_dir, 'setup.py'), SETUP_PY) 71 os.chdir(self.tmp_dir) 98 os.mkdir(join(self.tmp_dir, 'somecode', '.svn')) 99 self.write_file((self.tmp_dir, 'somecode', '.svn', 'ok.py'), 'xxx') 101 os.mkdir(join(self.tmp_dir, 'somecode', '.hg')) 102 self.write_file((self.tmp_dir, 'somecode', '.hg', [all …]
|
D | test_spawn.py | 60 with test_support.temp_dir() as tmp_dir: 67 filename = os.path.join(tmp_dir, program) 73 rv = find_executable(program, path=tmp_dir) 78 rv = find_executable(program_noeext, path=tmp_dir) 82 with test_support.change_cwd(tmp_dir): 88 rv = find_executable(dont_exist_program , path=tmp_dir) 94 with test_support.swap_attr(spawn.os, 'defpath', tmp_dir):
|
/external/python/cpython3/Lib/distutils/tests/ |
D | test_sdist.py | 63 os.mkdir(join(self.tmp_dir, 'somecode')) 64 os.mkdir(join(self.tmp_dir, 'dist')) 66 self.write_file((self.tmp_dir, 'README'), 'xxx') 67 self.write_file((self.tmp_dir, 'somecode', '__init__.py'), '#') 68 self.write_file((self.tmp_dir, 'setup.py'), SETUP_PY) 69 os.chdir(self.tmp_dir) 96 os.mkdir(join(self.tmp_dir, 'somecode', '.svn')) 97 self.write_file((self.tmp_dir, 'somecode', '.svn', 'ok.py'), 'xxx') 99 os.mkdir(join(self.tmp_dir, 'somecode', '.hg')) 100 self.write_file((self.tmp_dir, 'somecode', '.hg', [all …]
|
D | test_spawn.py | 59 with test_support.temp_dir() as tmp_dir: 66 filename = os.path.join(tmp_dir, program) 72 rv = find_executable(program, path=tmp_dir) 77 rv = find_executable(program_noeext, path=tmp_dir) 81 with test_support.change_cwd(tmp_dir): 87 rv = find_executable(dont_exist_program , path=tmp_dir) 94 return_value=tmp_dir, create=True), \ 96 tmp_dir): 101 with test_support.change_cwd(tmp_dir): 115 with test_support.change_cwd(tmp_dir): [all …]
|
/external/tensorflow/tensorflow/python/data/kernel_tests/ |
D | list_files_test.py | 39 self.tmp_dir = tempfile.mkdtemp() 42 shutil.rmtree(self.tmp_dir, ignore_errors=True) 47 open(path.join(self.tmp_dir, filename), 'a').close() 53 dataset = dataset_ops.Dataset.list_files(path.join(self.tmp_dir, '*')) 67 dataset = dataset_ops.Dataset.list_files(path.join(self.tmp_dir, '*')) 71 compat.as_bytes(path.join(self.tmp_dir, filename)) 82 path.join(self.tmp_dir, '*'), shuffle=False) 86 compat.as_bytes(path.join(self.tmp_dir, filename)) 96 path.join(self.tmp_dir, '*'), shuffle=True, seed=37) 99 compat.as_bytes(path.join(self.tmp_dir, filename)) [all …]
|
/external/tensorflow/tensorflow/python/data/experimental/kernel_tests/ |
D | matching_files_test.py | 39 self.tmp_dir = tempfile.mkdtemp() 42 shutil.rmtree(self.tmp_dir, ignore_errors=True) 47 open(os.path.join(self.tmp_dir, filename), 'a').close() 53 self.tmp_dir = os.path.join(self.tmp_dir, 'nonexistingdir') 55 os.path.join(self.tmp_dir, '*')) 64 os.path.join(self.tmp_dir, '*')) 76 os.path.join(self.tmp_dir, '*')) 80 compat.as_bytes(os.path.join(self.tmp_dir, filename)) 93 os.path.join(self.tmp_dir, '*.py')) 97 compat.as_bytes(os.path.join(self.tmp_dir, filename)) [all …]
|
/external/oss-fuzz/infra/base-images/base-builder/ |
D | detect_repo_test.py | 45 with tempfile.TemporaryDirectory() as tmp_dir: 48 repo_manager.RepoManager(example_repo.git_url, tmp_dir) 51 tmp_dir, 57 with tempfile.TemporaryDirectory() as tmp_dir: 59 repo_manager.RepoManager(example_repo.git_url, tmp_dir) 61 tmp_dir) 63 def check_with_repo(self, repo_origin, repo_name, tmp_dir, commit=None): argument 72 command = ['python3', 'detect_repo.py', '--src_dir', tmp_dir] 85 self.assertEqual(match.group(2), os.path.join(tmp_dir, repo_name))
|
/external/tensorflow/tensorflow/tools/ci_build/builds/ |
D | libtensorflow.sh | 117 local tmp_dir 118 tmp_dir=$(mktemp -d) 119 cp "${src_jar}" "${tmp_dir}/orig.jar" 120 pushd "${tmp_dir}" 122 jar -xf "${tmp_dir}/orig.jar" src/ 124 (mkdir -p src/main/java && cd src/main/java && jar -xf "${tmp_dir}/orig.jar" org/) 126 jar -cMf "${tmp_dir}/new.jar" src 128 cp "${tmp_dir}/new.jar" "${dest_jar}" 129 rm -rf "${tmp_dir}"
|
/external/skia/infra/bots/recipe_modules/flavor/ |
D | api.py | 144 def _copy_dir(self, host_version, version_file, tmp_dir, argument 146 actual_version_file = self.m.path.join(tmp_dir, version_file) 149 self.device_dirs.tmp_dir, version_file) 169 self.m.path.join(self.m.vars.tmp_dir, VERSION_FILE_SK_IMAGE), 174 self.m.vars.tmp_dir, 183 self.m.path.join(self.m.vars.tmp_dir, VERSION_FILE_LOTTIE), 188 self.m.vars.tmp_dir, 197 self.m.path.join(self.m.vars.tmp_dir, VERSION_FILE_SKP), 202 self.m.vars.tmp_dir, 211 self.m.path.join(self.m.vars.tmp_dir, VERSION_FILE_SVG), [all …]
|
/external/tensorflow/tensorflow/lite/tools/ |
D | strip_strings_test.py | 36 tmp_dir = self.get_temp_dir() 37 model_filename = os.path.join(tmp_dir, 'model.tflite') 38 model_stripped_filename = os.path.join(tmp_dir, 'model_stripped.tflite') 68 tmp_dir = self.get_temp_dir() 69 model_filename = os.path.join(tmp_dir, 'model.tflite') 70 model_stripped_filename = os.path.join(tmp_dir, 'model_stripped.tflite') 94 tmp_dir = self.get_temp_dir() 95 model_filename = os.path.join(tmp_dir, 'model.tflite') 96 model_stripped_filename = os.path.join(tmp_dir, 'model_stripped.tflite')
|
/external/toolchain-utils/deprecated/ |
D | verify_compiler.py | 58 def VerifyArgs(compiler, filename, tmp_dir, root_dir, options, parser): argument 81 if not os.path.exists(tmp_dir): 82 os.makedirs(tmp_dir) 85 def CheckFile(filename, compiler, tmp_dir, options, cmd_executer): argument 98 dwarf_file = os.path.join(tmp_dir, tmp_name) 179 tmp_dir = '/tmp' 180 if options.tmp_dir: 181 tmp_dir = os.path.realpath(os.path.expanduser(options.tmp_dir)) 186 VerifyArgs(compiler, filename, tmp_dir, root_dir, options, parser) 198 result = CheckFile(f, compiler, tmp_dir, options, cmd_executer)
|
/external/chromium-trace/catapult/dependency_manager/dependency_manager/ |
D | dependency_manager_util_unittest.py | 24 self.tmp_dir = os.path.abspath(tempfile.mkdtemp(prefix='telemetry')) 25 self.sub_dir = os.path.join(self.tmp_dir, 'sub_dir') 28 self.read_only_path = (os.path.join(self.tmp_dir, 'read_only')) 33 self.writable_path = (os.path.join(self.tmp_dir, 'writable')) 38 self.executable_path = (os.path.join(self.tmp_dir, 'executable')) 58 self.AssertExpectedDirFiles(self.tmp_dir) 59 self.archive_path = self.CreateZipArchiveFromDir(self.tmp_dir) 62 if os.path.isdir(self.tmp_dir): 63 dependency_manager_util.RemoveDir(self.tmp_dir) 119 dependency_manager_util.RemoveDir(self.tmp_dir) [all …]
|
/external/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()
|
/external/grpc-grpc/src/ruby/spec/pb/codegen/ |
D | package_option_spec.rb | 32 Dir.mktmpdir(nil, File.dirname(__FILE__)) do |tmp_dir| 36 "--grpc_out=#{tmp_dir}", # generate the service 37 "--ruby_out=#{tmp_dir}", # generate the definitions 44 $LOAD_PATH.push(tmp_dir) 49 $LOAD_PATH.delete(tmp_dir)
|
/external/skqp/infra/bots/recipe_modules/flavor/ |
D | api.py | 132 def _copy_dir(self, host_version, version_file, tmp_dir, argument 134 actual_version_file = self.m.path.join(tmp_dir, version_file) 137 self.device_dirs.tmp_dir, version_file) 157 self.m.path.join(self.m.vars.tmp_dir, VERSION_FILE_SK_IMAGE), 162 self.m.vars.tmp_dir, 171 self.m.path.join(self.m.vars.tmp_dir, VERSION_FILE_LOTTIE), 176 self.m.vars.tmp_dir, 185 self.m.path.join(self.m.vars.tmp_dir, VERSION_FILE_SKP), 190 self.m.vars.tmp_dir, 199 self.m.path.join(self.m.vars.tmp_dir, VERSION_FILE_SVG), [all …]
|
/external/python/cpython3/Lib/test/ |
D | test_tabnanny.py | 177 with tempfile.TemporaryDirectory() as tmp_dir: 179 file1 = TemporaryPyFile(SOURCE_CODES["error_free"], directory=tmp_dir) 180 file2 = TemporaryPyFile(SOURCE_CODES["error_free"], directory=tmp_dir) 187 tabnanny.check(tmp_dir) 196 with tempfile.TemporaryDirectory() as tmp_dir: 197 with TemporaryPyFile(SOURCE_CODES["error_free"], directory=tmp_dir): 198 self.verify_tabnanny_check(tmp_dir) 243 with tempfile.TemporaryDirectory() as tmp_dir: 245 SOURCE_CODES["wrong_indented"], directory=tmp_dir 248 SOURCE_CODES["error_free"], directory=tmp_dir [all …]
|
/external/toolchain-utils/afdo_tools/bisection/ |
D | state_assumption_external.sh | 14 tmp_dir=$(pwd)/afdo_test_tmp 15 count_file=${tmp_dir}/.count 32 cp "$1" "${tmp_dir}/.second_run_${num_call}" 34 cp "$1" "${tmp_dir}/.first_run_${num_call}"
|
/external/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)
|
/external/autotest/site_utils/sponge_lib/ |
D | sponge_utils_functional_test.py | 72 self.tmp_dir = tempfile.mkdtemp() 73 self.resultsdir = os.path.join(self.tmp_dir, 76 with open(os.path.join(self.tmp_dir, '123-debug_user/host1', 86 shutil.rmtree(self.tmp_dir) 93 test.resultsdir = os.path.join(self.tmp_dir, 131 job.dir = os.path.join(self.tmp_dir, '123-debug_user/host1')
|