Home
last modified time | relevance | path

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

123

/third_party/ltp/testcases/misc/lvm/datafiles/
Drunfile.tpl2 {fsname}_gf02 growfiles -W {fsname}_gf02 -d {tempdir}/{fsname} -b -e 1 -L 10 -B 805306368 -i 100 -I…
3 {fsname}_gf03 growfiles -W {fsname}_gf03 -d {tempdir}/{fsname} -b -e 1 -g 1 -i 1 -S 150 -u -f gf05_
4 {fsname}_gf04 growfiles -W {fsname}_gf04 -d {tempdir}/{fsname} -b -e 1 -g 4090 -i 500 -t 39000 -u -…
5 {fsname}_gf05 growfiles -W {fsname}_gf05 -d {tempdir}/{fsname} -b -e 1 -g 5000 -i 500 -t 49900 -T10…
6 {fsname}_gf16 growfiles -W {fsname}_gf16 -d {tempdir}/{fsname} -b -e 1 -i 0 -L 120 -B 805306368 -u …
7 {fsname}_gf17 growfiles -W {fsname}_gf17 -d {tempdir}/{fsname} -b -e 1 -i 0 -L 120 -B 805306368 -u …
8 {fsname}_gf18 growfiles -W {fsname}_gf18 -d {tempdir}/{fsname} -b -e 1 -i 0 -L 120 -B 805306368 -w …
9 {fsname}_gf19 growfiles -W {fsname}_gf19 -d {tempdir}/{fsname} -b -e 1 -g 5000 -i 500 -t 49900 -T10…
10 {fsname}_gf12 mkfifo {tempdir}/{fsname}/gffifo17; growfiles -W {fsname}_gf12 -b -e 1 -u -i 0 -L 30 …
11 …sname}_gf13 mkfifo {tempdir}/{fsname}/gffifo18; growfiles -W {fsname}_gf13 -b -e 1 -u -i 0 -L 30 -…
[all …]
/third_party/rust/crates/nix/test/
Dtest_stat.rs99 let tempdir = tempfile::tempdir().unwrap(); in test_stat_and_fstat() localVariable
100 let filename = tempdir.path().join("foo.txt"); in test_stat_and_fstat()
113 let tempdir = tempfile::tempdir().unwrap(); in test_fstatat() localVariable
114 let filename = tempdir.path().join("foo.txt"); in test_fstatat()
117 fcntl::open(tempdir.path(), fcntl::OFlag::empty(), stat::Mode::empty()); in test_fstatat()
129 let tempdir = tempfile::tempdir().unwrap(); in test_stat_fstat_lstat() localVariable
130 let filename = tempdir.path().join("bar.txt"); in test_stat_fstat_lstat()
131 let linkname = tempdir.path().join("barlink"); in test_stat_fstat_lstat()
151 let tempdir = tempfile::tempdir().unwrap(); in test_fchmod() localVariable
152 let filename = tempdir.path().join("foo.txt"); in test_fchmod()
[all …]
Dtest_unistd.rs36 use tempfile::{tempdir, tempfile};
110 let tempdir = tempdir().unwrap(); in test_mkfifo() localVariable
111 let mkfifo_fifo = tempdir.path().join("mkfifo_fifo"); in test_mkfifo()
138 let tempdir = tempdir().unwrap(); in test_mkfifoat_none() localVariable
139 let mkfifoat_fifo = tempdir.path().join("mkfifoat_fifo"); in test_mkfifoat_none()
159 let tempdir = tempdir().unwrap(); in test_mkfifoat() localVariable
160 let dirfd = open(tempdir.path(), OFlag::empty(), Mode::empty()).unwrap(); in test_mkfifoat()
197 let tempdir = tempdir().unwrap(); in test_mkfifoat_directory() localVariable
198 let dirfd = open(tempdir.path(), OFlag::empty(), Mode::empty()).unwrap(); in test_mkfifoat_directory()
457 let tmpdir = tempdir().unwrap(); in test_fchdir()
[all …]
Dtest_mount.rs32 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()
43 let test_path = tempdir.path().join("test"); in test_mount_tmpfs_without_flags_allows_rwx()
93 umount(tempdir.path()) in test_mount_tmpfs_without_flags_allows_rwx()
98 let tempdir = tempfile::tempdir().unwrap(); in test_mount_rdonly_disallows_write() localVariable
102 tempdir.path(), in test_mount_rdonly_disallows_write()
112 File::create(tempdir.path().join("test")) in test_mount_rdonly_disallows_write()
118 umount(tempdir.path()) in test_mount_rdonly_disallows_write()
123 let tempdir = tempfile::tempdir().unwrap(); in test_mount_noexec_disallows_exec() localVariable
127 tempdir.path(), in test_mount_noexec_disallows_exec()
[all …]
Dtest_nmount.rs7 use tempfile::tempdir;
13 let mountpoint = tempdir().unwrap(); in ok()
14 let target = tempdir().unwrap(); in ok()
37 let mountpoint = tempdir().unwrap(); in bad_fstype()
38 let target = tempdir().unwrap(); in bad_fstype()
Dtest_fcntl.rs63 let old_dir = tempfile::tempdir().unwrap(); in test_renameat()
68 let new_dir = tempfile::tempdir().unwrap(); in test_renameat()
93 let old_dir = tempfile::tempdir().unwrap(); in test_renameat2_behaves_like_renameat_with_no_flags()
98 let new_dir = tempfile::tempdir().unwrap(); in test_renameat2_behaves_like_renameat_with_no_flags()
137 let old_dir = tempfile::tempdir().unwrap(); in test_renameat2_exchange()
145 let new_dir = tempfile::tempdir().unwrap(); in test_renameat2_exchange()
185 let old_dir = tempfile::tempdir().unwrap(); in test_renameat2_noreplace()
190 let new_dir = tempfile::tempdir().unwrap(); in test_renameat2_noreplace()
215 let tempdir = tempfile::tempdir().unwrap(); in test_readlink() localVariable
216 let src = tempdir.path().join("a"); in test_readlink()
[all …]
Dtest_dir.rs5 use tempfile::tempdir;
21 let tmp = tempdir().unwrap(); in read()
43 let tmp = tempdir().unwrap(); in rewind()
/third_party/rust/crates/nix/test/sys/
Dtest_inotify.rs9 let tempdir = tempfile::tempdir().unwrap(); in test_inotify() localVariable
12 .add_watch(tempdir.path(), AddWatchFlags::IN_ALL_EVENTS) in test_inotify()
18 File::create(tempdir.path().join("test")).unwrap(); in test_inotify()
27 let tempdir = tempfile::tempdir().unwrap(); in test_inotify_multi_events() localVariable
30 .add_watch(tempdir.path(), AddWatchFlags::IN_ALL_EVENTS) 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.rs13 use tempfile::tempdir;
126 let tempdir = tempdir().unwrap(); in test_pread() localVariable
128 let path = tempdir.path().join("pread_test_file"); in test_pread()
159 let tempdir = tempdir().unwrap(); in test_pwritev() localVariable
162 let path = tempdir.path().join("pwritev_test_file"); in test_pwritev()
188 let tempdir = tempdir().unwrap(); in test_preadv() localVariable
190 let path = tempdir.path().join("preadv_test_file"); in test_preadv()
/third_party/curl/src/
Dtool_dirhie.c101 char *tempdir; in create_dir_hierarchy() local
122 tempdir = strtok(outdup, PATH_DELIMITERS); in create_dir_hierarchy()
124 while(tempdir) { in create_dir_hierarchy()
132 msnprintf(&dirbuildup[dlen], outlen - dlen, "%s%s", DIR_CHAR, tempdir); in create_dir_hierarchy()
134 if(outdup == tempdir) { in create_dir_hierarchy()
142 char *p = strchr(tempdir, ':'); in create_dir_hierarchy()
147 strcpy(dirbuildup, tempdir); in create_dir_hierarchy()
150 msnprintf(dirbuildup, outlen, "%s%s", DIR_CHAR, tempdir); in create_dir_hierarchy()
160 tempdir = tempdir2; in create_dir_hierarchy()
/third_party/nghttp2/script/
Dfetch-ocsp-response155 def verify_response(cmd, tempdir, issuer_fn, respder_fn): argument
159 verify_fn = os.path.join(tempdir, 'verify.out')
191 def fetch_ocsp_response(cmd, cert_fn, tempdir, issuer_fn=None): argument
201 issuer_fn = os.path.join(tempdir, 'issuer.crt')
204 respder_fn = os.path.join(tempdir, 'resp.der')
216 if not verify_response(cmd, tempdir, issuer_fn, respder_fn):
243 tempdir = None variable
248 tempdir = tempfile.mkdtemp() variable
249 fetch_ocsp_response(args.openssl, args.certificate, tempdir,
252 if tempdir:
[all …]
/third_party/node/deps/v8/tools/cppgc/
Dtest_cmake.sh21 if [[ -d "$tempdir" ]]; then
22 rm -rf $tempdir
42 tempdir=$(mktemp -d)
43 if [[ ! "$tempdir" || ! -d "$tempdir" ]]; then
48 cd $tempdir
/third_party/node/deps/v8/tools/
Drun-wasm-api-tests.py76 def __init__(self, name, outdir, tempdir): argument
79 self.tempdir = tempdir
81 self.dst_file_basename = os.path.join(tempdir, name)
94 (step, self.outdir, self.tempdir, self.name, lang,
115 c = _Call(["cd", self.tempdir, ";", exe_file])
125 tempdir = sys.argv[2]
156 runner = Runner(example, outdir, tempdir)
/third_party/python/Lib/test/
Dtest_glob.py15 return os.path.normpath(os.path.join(self.tempdir, *parts))
18 return [os.path.join(self.tempdir, *parts) for parts in tuples]
28 self.tempdir = TESTFN + "_dir"
43 self.dir_fd = os.open(self.tempdir, os.O_RDONLY | os.O_DIRECTORY)
50 shutil.rmtree(self.tempdir)
57 p = os.path.join(self.tempdir, pattern)
64 with change_cwd(self.tempdir):
72 self.assertCountEqual([os.path.join(self.tempdir, x) for x in res2],
80 self.assertCountEqual(glob.glob(pattern, root_dir=self.tempdir, **kwargs), res2)
81 self.assertCountEqual(glob.iglob(pattern, root_dir=self.tempdir, **kwargs), res2)
[all …]
Dtest_tempfile.py347 oldmode = mode = os.stat(tempfile.tempdir).st_mode
349 os.chmod(tempfile.tempdir, mode)
351 if os.access(tempfile.tempdir, os.W_OK):
355 self.assertEqual(os.listdir(tempfile.tempdir), [])
357 os.chmod(tempfile.tempdir, oldmode)
361 tempdir = os.path.join(tempfile.tempdir, 'nonexistent')
362 with support.swap_attr(tempfile, 'tempdir', tempdir):
368 tempdir = os.path.join(tempfile.tempdir, 'file')
369 open(tempdir, 'wb').close()
370 with support.swap_attr(tempfile, 'tempdir', tempdir):
[all …]
/third_party/python/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)
/third_party/curl/
Dmaketgz204 rm -rf $tempdir
205 mkdir $tempdir
206 cd $tempdir
211 rm -rf $tempdir
216 tempdir=".builddir"
/third_party/python/Lib/multiprocessing/
Dutil.py132 def _remove_temp_dir(rmtree, tempdir): argument
133 rmtree(tempdir)
143 tempdir = process.current_process()._config.get('tempdir')
144 if tempdir is None:
146 tempdir = tempfile.mkdtemp(prefix='pymp-')
147 info('created temp directory %s', tempdir)
150 Finalize(None, _remove_temp_dir, args=(shutil.rmtree, tempdir),
152 process.current_process()._config['tempdir'] = tempdir
153 return tempdir
/third_party/rust/crates/which-rs/tests/
Dbasic.rs14 pub tempdir: TempDir, field
57 let tempdir = tempfile::tempdir().unwrap(); in new() localVariable
63 let p = tempdir.path().join(d); in new()
70 let p = tempdir.path().join("win-bin"); in new()
75 tempdir, in new()
83 touch(self.tempdir.path(), path, extension) in touch()
87 mk_bin(self.tempdir.path(), path, extension) in mk_bin()
92 which::CanonicalPath::new_in(path, Some(f.paths.clone()), f.tempdir.path()) in _which()
99 which::CanonicalPath::all_in(path, Some(f.paths.clone()), f.tempdir.path()) in _which_all()
146 let temp = f.tempdir; in test_which_re_in_with_matches()
/third_party/python/Lib/distutils/tests/
Dtest_msvc9compiler.py143 tempdir = self.mkdtemp()
144 manifest = os.path.join(tempdir, 'manifest')
167 tempdir = self.mkdtemp()
168 manifest = os.path.join(tempdir, 'manifest')
/third_party/mksh/
Dcheck.pl336 until (mkdir(($tempdir = sprintf("%s%03d", $temps, $tempi)), 0700)) {
339 die "$prog: couldn't cd to $tempdir - $!\n" if !chdir($tempdir);
363 $tempdir = "${temp_dir}/rtd";
364 mkdir($tempdir, 0700) or die "$prog: couldn't mkdir $tempdir - $!\n";
406 &scrub_dir($tempdir) if defined $tempdir;
407 rmdir($tempdir) if defined $tempdir;
485 return undef if !&scrub_dir($tempdir);
498 if (!chdir($tempdir)) {
499 print STDERR "$prog: couldn't cd to $tempdir - $!\n";
/third_party/skia/tools/
Dmerge_static_libs.py27 tempdir = tempfile.mkdtemp()
32 os.chdir(tempdir)
56 shutil.rmtree(tempdir)
/third_party/rust/crates/rustix/tests/fs/
Dinvalid_offset.rs17 let tmp = tempfile::tempdir().unwrap(); in invalid_offset_seek()
46 let tmp = tempfile::tempdir().unwrap(); in invalid_offset_fallocate()
76 let tmp = tempfile::tempdir().unwrap(); in invalid_offset_fadvise()
108 let tmp = tempfile::tempdir().unwrap(); in invalid_offset_pread()
128 let tmp = tempfile::tempdir().unwrap(); in invalid_offset_pwrite()
148 let tmp = tempfile::tempdir().unwrap(); in invalid_offset_copy_file_range()
/third_party/rust/crates/rustix/tests/termios/
Disatty.rs3 use tempfile::{tempdir, TempDir};
7 tempdir().expect("expected to be able to create a temporary directory") in tmpdir()
12 let tmpdir = tempfile::tempdir().unwrap(); in std_file_is_not_terminal()
/third_party/rust/crates/rustix/tests/io/
Dread_write.rs12 let tmp = tempfile::tempdir().unwrap(); in test_readwrite_pv()
50 let tmp = tempfile::tempdir().unwrap(); in test_readwrite_p()
75 let tmp = tempfile::tempdir().unwrap(); in test_readwrite_v()
102 let tmp = tempfile::tempdir().unwrap(); in test_readwrite()
156 let tmp = tempfile::tempdir().unwrap(); in test_pwritev2()

123