/external/tensorflow/tensorflow/python/data/experimental/benchmarks/ |
D | snapshot_dataset_benchmark.py | 34 tmp_dir = test.get_temp_dir() 35 tmp_dir = os.path.join(tmp_dir, "snapshot") 36 if os.path.exists(tmp_dir): 37 shutil.rmtree(tmp_dir) 38 os.mkdir(tmp_dir) 39 return tmp_dir 43 tmp_dir=None, argument 45 if not tmp_dir: 46 tmp_dir = self._makeSnapshotDirectory() 53 snapshot.legacy_snapshot(tmp_dir, compression=compression)) [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/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 | 47 with test_support.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 test_support.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 test_support.change_cwd(tmp_dir): 103 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/oss-fuzz/infra/cifuzz/ |
D | run_fuzzers_test.py | 136 with tempfile.TemporaryDirectory() as tmp_dir: 137 out_path = os.path.join(tmp_dir, 'out') 145 workspace=tmp_dir) 149 with tempfile.TemporaryDirectory() as tmp_dir: 150 out_path = os.path.join(tmp_dir, 'out') 152 self._test_initialize_fail(expected_error_args, workspace=tmp_dir) 156 with tempfile.TemporaryDirectory() as tmp_dir: 157 out_path = os.path.join(tmp_dir, 'out') 165 self._test_initialize_fail(expected_error_args, workspace=tmp_dir) 169 with tempfile.TemporaryDirectory() as tmp_dir: [all …]
|
D | affected_fuzz_targets_test.py | 63 with tempfile.TemporaryDirectory() as tmp_dir, mock.patch( 68 shutil.copy(self.TEST_FUZZER_1, tmp_dir) 69 shutil.copy(self.TEST_FUZZER_2, tmp_dir) 71 EXAMPLE_PROJECT, tmp_dir, [EXAMPLE_FILE_CHANGED], '') 72 self.assertEqual(expected_dir_len, len(os.listdir(tmp_dir)))
|
/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/pigweed/pw_build/py/ |
D | zip_test.py | 83 with tempfile.TemporaryDirectory() as tmp_dir: 85 tmp_path = pathlib.Path(tmp_dir) 102 with tempfile.TemporaryDirectory() as tmp_dir: 104 tmp_path = pathlib.Path(tmp_dir) 126 with tempfile.TemporaryDirectory() as tmp_dir: 128 tmp_path = pathlib.Path(tmp_dir) 146 with tempfile.TemporaryDirectory() as tmp_dir: 148 tmp_path = pathlib.Path(tmp_dir) 166 with tempfile.TemporaryDirectory() as tmp_dir: 168 tmp_path = pathlib.Path(tmp_dir) [all …]
|
/external/tensorflow/tensorflow/tools/ci_build/builds/ |
D | libtensorflow.sh | 124 local tmp_dir 125 tmp_dir=$(mktemp -d) 126 cp "${src_jar}" "${tmp_dir}/orig.jar" 127 pushd "${tmp_dir}" 129 jar -xf "${tmp_dir}/orig.jar" src/ 131 (mkdir -p src/main/java && cd src/main/java && jar -xf "${tmp_dir}/orig.jar" org/) 133 jar -cMf "${tmp_dir}/new.jar" src 135 cp "${tmp_dir}/new.jar" "${dest_jar}" 136 rm -rf "${tmp_dir}"
|
/external/oss-fuzz/infra/base-images/base-builder/ |
D | detect_repo_test.py | 75 with tempfile.TemporaryDirectory() as tmp_dir: 78 repo_manager.clone_repo_and_get_manager(test_repo.git_url, tmp_dir) 81 tmp_dir, 86 with tempfile.TemporaryDirectory() as tmp_dir: 88 repo_manager.clone_repo_and_get_manager(test_repo.git_url, tmp_dir) 90 tmp_dir) 92 def check_with_repo(self, repo_origin, repo_name, tmp_dir, commit=None): argument 101 command = ['python3', 'detect_repo.py', '--src_dir', tmp_dir] 114 self.assertEqual(match.group(2), os.path.join(tmp_dir, repo_name))
|
/external/skia/infra/bots/recipe_modules/flavor/ |
D | api.py | 138 def _copy_dir(self, host_version, version_file, tmp_dir, argument 140 actual_version_file = self.m.path.join(tmp_dir, version_file) 143 self.device_dirs.tmp_dir, version_file) 163 self.m.path.join(self.m.vars.tmp_dir, VERSION_FILE_SK_IMAGE), 168 self.m.vars.tmp_dir, 177 self.m.path.join(self.m.vars.tmp_dir, VERSION_FILE_LOTTIE), 182 self.m.vars.tmp_dir, 191 self.m.path.join(self.m.vars.tmp_dir, VERSION_FILE_SKP), 196 self.m.vars.tmp_dir, 205 self.m.path.join(self.m.vars.tmp_dir, VERSION_FILE_SVG), [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/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/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/rust/crates/libfuzzer-sys/ |
D | update-libfuzzer.sh | 15 tmp_dir="$(mktemp -d)" 17 git clone https://github.com/llvm/llvm-project.git "$tmp_dir" 18 cd "$tmp_dir" 21 mv "$tmp_dir/compiler-rt/lib/fuzzer/" "$project_dir/libfuzzer/"
|
/external/oss-fuzz/infra/ |
D | utils_test.py | 79 with tempfile.TemporaryDirectory() as tmp_dir: 81 location=tmp_dir, 87 location=tmp_dir, 93 location=tmp_dir, 101 with tempfile.TemporaryDirectory() as tmp_dir: 103 location=tmp_dir, 110 location=tmp_dir,
|
/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/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/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)
|