Home
last modified time | relevance | path

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

12345678910

/external/oss-fuzz/infra/cifuzz/
Dcifuzz_test.py38 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/
Drepo_manager_test.py34 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/
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/tensorflow/tensorflow/python/data/experimental/benchmarks/
Dsnapshot_dataset_benchmark.py38 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/
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.py59 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/
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/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/oss-fuzz/infra/base-images/base-builder/
Ddetect_repo_test.py45 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/
Dlibtensorflow.sh117 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/
Dapi.py144 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/
Dstrip_strings_test.py36 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/
Dverify_compiler.py58 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/
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/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/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/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/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/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)
/external/autotest/site_utils/sponge_lib/
Dsponge_utils_functional_test.py72 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')

12345678910