Home
last modified time | relevance | path

Searched refs:tempdir (Results 1 – 25 of 165) sorted by relevance

1234567

/external/rust/crates/nix/test/
Dtest_stat.rs98 let tempdir = tempfile::tempdir().unwrap(); in test_stat_and_fstat() localVariable
99 let filename = tempdir.path().join("foo.txt"); in test_stat_and_fstat()
112 let tempdir = tempfile::tempdir().unwrap(); in test_fstatat() localVariable
113 let filename = tempdir.path().join("foo.txt"); in test_fstatat()
115 let dirfd = fcntl::open(tempdir.path(), in test_fstatat()
130 let tempdir = tempfile::tempdir().unwrap(); in test_stat_fstat_lstat() localVariable
131 let filename = tempdir.path().join("bar.txt"); in test_stat_fstat_lstat()
132 let linkname = tempdir.path().join("barlink"); in test_stat_fstat_lstat()
152 let tempdir = tempfile::tempdir().unwrap(); in test_fchmod() localVariable
153 let filename = tempdir.path().join("foo.txt"); in test_fchmod()
[all …]
Dtest_unistd.rs25 use tempfile::{tempdir, tempfile};
99 let tempdir = tempdir().unwrap(); in test_mkfifo() localVariable
100 let mkfifo_fifo = tempdir.path().join("mkfifo_fifo"); in test_mkfifo()
123 let tempdir = tempdir().unwrap(); in test_mkfifoat_none() localVariable
124 let mkfifoat_fifo = tempdir.path().join("mkfifoat_fifo"); in test_mkfifoat_none()
138 let tempdir = tempdir().unwrap(); in test_mkfifoat() localVariable
139 let dirfd = open(tempdir.path(), OFlag::empty(), Mode::empty()).unwrap(); in test_mkfifoat()
166 let tempdir = tempdir().unwrap(); in test_mkfifoat_directory() localVariable
167 let dirfd = open(tempdir.path(), OFlag::empty(), Mode::empty()).unwrap(); in test_mkfifoat_directory()
414 let tmpdir = tempdir().unwrap(); in test_fchdir()
[all …]
Dtest_mount.rs33 let tempdir = tempfile::tempdir().unwrap(); in test_mount_tmpfs_without_flags_allows_rwx() localVariable
36 tempdir.path(), in test_mount_tmpfs_without_flags_allows_rwx()
42 let test_path = tempdir.path().join("test"); in test_mount_tmpfs_without_flags_allows_rwx()
85 umount(tempdir.path()).unwrap_or_else(|e| panic!("umount failed: {}", e)); in test_mount_tmpfs_without_flags_allows_rwx()
89 let tempdir = tempfile::tempdir().unwrap(); in test_mount_rdonly_disallows_write() localVariable
92 tempdir.path(), in test_mount_rdonly_disallows_write()
100 File::create(tempdir.path().join("test")).unwrap_err().raw_os_error().unwrap()); in test_mount_rdonly_disallows_write()
102 umount(tempdir.path()).unwrap_or_else(|e| panic!("umount failed: {}", e)); in test_mount_rdonly_disallows_write()
106 let tempdir = tempfile::tempdir().unwrap(); in test_mount_noexec_disallows_exec() localVariable
109 tempdir.path(), in test_mount_noexec_disallows_exec()
[all …]
/external/python/cpython2/Lib/test/
Dtest_dircache.py14 self.tempdir = tempfile.mkdtemp()
17 for fname in os.listdir(self.tempdir):
19 os.rmdir(self.tempdir)
22 f = open(os.path.join(self.tempdir, fname), 'w')
26 os.mkdir(os.path.join(self.tempdir, fname))
29 fname = os.path.join(self.tempdir, fname)
37 entries = dircache.listdir(self.tempdir)
41 self.assertTrue(dircache.listdir(self.tempdir) is entries)
54 entries = dircache.listdir(self.tempdir)
56 self.assertTrue(dircache.listdir(self.tempdir) is entries)
[all …]
/external/avb/test/
Dat_auth_unlock_unittest.py142 tempdir = tempfile.mkdtemp()
146 pubkey = os.path.join(tempdir, 'pubkey.pub')
155 shutil.rmtree(tempdir)
159 tempdir = tempfile.mkdtemp()
163 shortfile = os.path.join(tempdir, 'shortfile.bin')
181 longfile = os.path.join(tempdir, 'longfile.bin')
196 shutil.rmtree(tempdir)
225 tempdir = tempfile.mkdtemp()
227 challenge_file = os.path.join(tempdir, 'challenge')
230 out_cred = os.path.join(tempdir, 'credential')
[all …]
/external/fonttools/Tests/varLib/
Dinterpolate_layout_test.py24 self.tempdir = None
28 if self.tempdir:
29 shutil.rmtree(self.tempdir)
53 return os.path.join(self.tempdir,
57 if not self.tempdir:
58 self.tempdir = tempfile.mkdtemp()
117 self.compile_font(path, suffix, self.tempdir)
119 finder = lambda s: s.replace(ufo_dir, self.tempdir).replace('.ufo', suffix)
141 self.compile_font(path, suffix, self.tempdir)
143 finder = lambda s: s.replace(ufo_dir, self.tempdir).replace('.ufo', suffix)
[all …]
Dinterpolatable_test.py30 self.tempdir = None
34 if self.tempdir:
35 shutil.rmtree(self.tempdir)
54 return os.path.join(self.tempdir,
58 if not self.tempdir:
59 self.tempdir = tempfile.mkdtemp()
80 self.compile_font(path, suffix, self.tempdir)
82 ttf_paths = self.get_file_list(self.tempdir, suffix)
93 self.compile_font(path, suffix, self.tempdir)
95 otf_paths = self.get_file_list(self.tempdir, suffix)
Dmutator_test.py22 self.tempdir = None
26 if self.tempdir:
27 shutil.rmtree(self.tempdir)
51 return os.path.join(self.tempdir,
55 if not self.tempdir:
56 self.tempdir = tempfile.mkdtemp()
102 self.compile_font(path, suffix, self.tempdir)
104 finder = lambda s: s.replace(ufo_dir, self.tempdir).replace('.ufo', suffix)
107 varfont_path = os.path.join(self.tempdir, varfont_name + suffix)
126 self.compile_font(path, suffix, self.tempdir)
[all …]
DvarLib_test.py42 self.tempdir = None
46 if self.tempdir:
47 shutil.rmtree(self.tempdir)
53 copied_path = os.path.join(self.tempdir, test_file_or_folder)
76 return os.path.join(self.tempdir,
80 if not self.tempdir:
81 self.tempdir = tempfile.mkdtemp()
131 font, savepath = self.compile_font(path, suffix, self.tempdir)
135 finder = lambda s: s.replace(ufo_dir, self.tempdir).replace('.ufo', suffix)
330 self.compile_font(path, ".otf", self.tempdir)
[all …]
/external/rust/crates/nix/test/sys/
Dtest_inotify.rs12 let tempdir = tempfile::tempdir().unwrap(); in test_inotify() localVariable
14 instance.add_watch(tempdir.path(), AddWatchFlags::IN_ALL_EVENTS).unwrap(); in test_inotify()
19 File::create(tempdir.path().join("test")).unwrap(); in test_inotify()
29 let tempdir = tempfile::tempdir().unwrap(); in test_inotify_multi_events() localVariable
31 instance.add_watch(tempdir.path(), AddWatchFlags::IN_ALL_EVENTS).unwrap(); in test_inotify_multi_events()
36 File::create(tempdir.path().join("test")).unwrap(); in test_inotify_multi_events()
37 rename(tempdir.path().join("test"), tempdir.path().join("test2")).unwrap(); in test_inotify_multi_events()
Dtest_uio.rs11 use tempfile::tempdir;
121 let tempdir = tempdir().unwrap(); in test_pread() localVariable
123 let path = tempdir.path().join("pread_test_file"); in test_pread()
149 let tempdir = tempdir().unwrap(); in test_pwritev() localVariable
152 let path = tempdir.path().join("pwritev_test_file"); in test_pwritev()
173 let tempdir = tempdir().unwrap(); in test_preadv() localVariable
175 let path = tempdir.path().join("preadv_test_file"); in test_preadv()
/external/curl/src/
Dtool_dirhie.c104 char *tempdir; in create_dir_hierarchy() local
125 tempdir = strtok(outdup, PATH_DELIMITERS); in create_dir_hierarchy()
127 while(tempdir != NULL) { in create_dir_hierarchy()
135 msnprintf(&dirbuildup[dlen], outlen - dlen, "%s%s", DIR_CHAR, tempdir); in create_dir_hierarchy()
137 if(outdup == tempdir) { in create_dir_hierarchy()
145 char *p = strchr(tempdir, ':'); in create_dir_hierarchy()
150 strcpy(dirbuildup, tempdir); in create_dir_hierarchy()
153 msnprintf(dirbuildup, outlen, "%s%s", DIR_CHAR, tempdir); in create_dir_hierarchy()
163 tempdir = tempdir2; in create_dir_hierarchy()
/external/grpc-grpc/tools/distrib/
Dyapf_code.sh54 tempdir=$(mktemp -d)
55 cp -RT "${dir}" "${tempdir}"
56 yapf "${tempdir}"
57 diff -x '*.pyc' -ru "${dir}" "${tempdir}" || ok=no
58 rm -rf "${tempdir}"
/external/toolchain-utils/llvm_tools/
Dfetch_cros_sdk_rolls.py95 tempdir = Path(tempfile.mkdtemp(prefix='cros-sdk-rolls'))
97 logging.debug('Working in tempdir %r', tempdir)
98 fetch_manifests_into(tempdir, manifest_paths)
102 versions = load_manifest_versions(tempdir.joinpath(basename))
106 logging.debug('Keeping around tempdir %r to aid debugging', tempdir)
108 shutil.rmtree(tempdir)
/external/chromium-trace/catapult/common/py_vulcanize/third_party/rcssmin/_setup/py2/
Dext.py181 self._tempdir = tempdir = _tempfile.mkdtemp()
182 src = _os.path.join(tempdir, 'conftest.c')
190 self.target = _os.path.join(tempdir, 'conftest')
191 self.obj = compiler.object_filenames([src], output_dir=tempdir)
199 tempdir, self._tempdir = self._tempdir, None
200 if tempdir is not None:
201 _shutil.rmtree(tempdir)
/external/chromium-trace/catapult/common/py_vulcanize/third_party/rjsmin/_setup/py2/
Dext.py181 self._tempdir = tempdir = _tempfile.mkdtemp()
182 src = _os.path.join(tempdir, 'conftest.c')
190 self.target = _os.path.join(tempdir, 'conftest')
191 self.obj = compiler.object_filenames([src], output_dir=tempdir)
199 tempdir, self._tempdir = self._tempdir, None
200 if tempdir is not None:
201 _shutil.rmtree(tempdir)
/external/chromium-trace/catapult/common/py_vulcanize/third_party/rcssmin/_setup/py3/
Dext.py180 self._tempdir = tempdir = _tempfile.mkdtemp()
181 src = _os.path.join(tempdir, 'conftest.c')
189 self.target = _os.path.join(tempdir, 'conftest')
190 self.obj = compiler.object_filenames([src], output_dir=tempdir)
198 tempdir, self._tempdir = self._tempdir, None
199 if tempdir is not None:
200 _shutil.rmtree(tempdir)
/external/chromium-trace/catapult/common/py_vulcanize/third_party/rjsmin/_setup/py3/
Dext.py180 self._tempdir = tempdir = _tempfile.mkdtemp()
181 src = _os.path.join(tempdir, 'conftest.c')
189 self.target = _os.path.join(tempdir, 'conftest')
190 self.obj = compiler.object_filenames([src], output_dir=tempdir)
198 tempdir, self._tempdir = self._tempdir, None
199 if tempdir is not None:
200 _shutil.rmtree(tempdir)
/external/avb/tools/
Dat_auth_unlock.py174 tempdir = tempfile.mkdtemp()
190 zip.extractall(path=tempdir, members=[pik_cert, puk_cert, puk])
193 intermediate_cert_file=os.path.join(tempdir, pik_cert),
194 unlock_cert_file=os.path.join(tempdir, puk_cert),
195 unlock_key_file=os.path.join(tempdir, puk),
198 shutil.rmtree(tempdir)
303 tempdir = tempfile.mkdtemp()
305 challenge_file = os.path.join(tempdir, 'challenge')
306 credential_file = os.path.join(tempdir, 'credential')
354 shutil.rmtree(tempdir)
[all …]
/external/tensorflow/tensorflow/lite/examples/ios/
Ddownload_models.sh31 tempdir=$(mktemp -d)
33 curl -L ${url} > ${tempdir}/archive.tgz
35 tar zxvf ${tempdir}/archive.tgz
36 rm -rf ${tempdir}
/external/rust/crates/tokio/tests/
Dfs_dir.rs8 use tempfile::tempdir;
12 let base_dir = tempdir().unwrap(); in create_dir()
23 let base_dir = tempdir().unwrap(); in create_all()
33 let base_dir = tempdir().unwrap(); in build_dir()
50 let base_dir = tempdir().unwrap(); in remove()
62 let base_dir = tempdir().unwrap(); in read_inherent()
/external/pigweed/pw_cli/py/
Dplugins_test.py128 with tempfile.TemporaryDirectory() as tempdir:
129 paths = list(_create_files(tempdir, _TEST_PLUGINS))
135 with tempfile.TemporaryDirectory() as tempdir:
136 paths = list(_create_files(tempdir, _TEST_PLUGINS))
142 with tempfile.TemporaryDirectory() as tempdir:
143 paths = list(_create_files(tempdir, _TEST_PLUGINS))
145 Path(tempdir, 'nested', 'in'))
150 with tempfile.TemporaryDirectory() as tempdir:
151 paths = list(_create_files(tempdir, _TEST_PLUGINS))
/external/rust/crates/no-panic/tests/compiletest/
Dmod.rs17 let tempdir = tempfile::tempdir().unwrap(); in contains_panic() localVariable
23 let rs = tempdir.path().join(format!("{}.rs", name)); in contains_panic()
35 .arg(tempdir.path()) in contains_panic()
42 let asm = tempdir.path().join(format!("{}.s", name)); in contains_panic()
/external/python/cpython3/Lib/test/test_importlib/source/
Dtest_finder.py160 tempdir = tempfile.TemporaryDirectory()
161 original_mode = os.stat(tempdir.name).st_mode
162 def cleanup(tempdir): argument
170 os.chmod(tempdir.name, original_mode)
174 tempdir.__exit__(None, None, None)
175 self.addCleanup(cleanup, tempdir)
176 os.chmod(tempdir.name, stat.S_IWUSR | stat.S_IXUSR)
177 finder = self.get_finder(tempdir.name)
/external/rust/crates/criterion/tests/
Dcriterion_tests.rs17 use tempfile::{tempdir, TempDir};
25 tempdir().unwrap() in temp_dir()
357 let tempdir = temp_dir(); in test_output_files() localVariable
360 short_benchmark(&tempdir).bench( in test_output_files()
373 tempdir.path().join("test_output/output______") in test_output_files()
375 tempdir.path().join(format!("test_output/output_{}", x + 1)) in test_output_files()
382 if short_benchmark(&tempdir).can_plot() { in test_output_files()
406 if short_benchmark(&tempdir).can_plot() { in test_output_files()
407 let dir = tempdir.path().join("test_output"); in test_output_files()
414 short_benchmark(&tempdir).final_summary(); in test_output_files()
[all …]

1234567