Home
last modified time | relevance | path

Searched refs:tmp_dir (Results 1 – 25 of 272) sorted by relevance

1234567891011

/external/tensorflow/tensorflow/python/data/experimental/benchmarks/
Dsnapshot_dataset_benchmark.py34 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/
Dinput_data_test.py67 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 …]
Dwav_to_features_test.py54 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/
Dtest_usdt3.py81 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/
Dtest_sdist.py65 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 …]
Dtest_spawn.py60 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/
Dtest_sdist.py63 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 …]
Dtest_spawn.py47 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/
Dlist_files_test.py39 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/
Drun_fuzzers_test.py136 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 …]
Daffected_fuzz_targets_test.py63 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/
Dmatching_files_test.py39 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/
Dzip_test.py83 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/
Dlibtensorflow.sh124 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/
Ddetect_repo_test.py75 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/
Dapi.py138 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/
Dtst_tmpdir_test.c51 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/
Ddependency_manager_util_unittest.py24 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/
Dpackage_option_spec.rb32 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/
Dapi.py132 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/
Dupdate-libfuzzer.sh15 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/
Dutils_test.py79 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/
Dstate_assumption_external.sh14 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/
Dtest_tabnanny.py177 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/
Dtest-lz4-versions.py58 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)

1234567891011