/external/antlr/antlr-3.4/tool/src/test/java/org/antlr/test/ |
D | TestCompositeGrammars.java | 53 mkdir(tmpdir); in testDelegatorInvokesDelegateRule() 54 writeFile(tmpdir, "S.g", slave); in testDelegatorInvokesDelegateRule() 73 mkdir(tmpdir); in testDelegatorInvokesDelegateRuleWithArgs() 74 writeFile(tmpdir, "S.g", slave); in testDelegatorInvokesDelegateRuleWithArgs() 93 mkdir(tmpdir); in testDelegatorInvokesDelegateRuleWithReturnStruct() 94 writeFile(tmpdir, "S.g", slave); in testDelegatorInvokesDelegateRuleWithReturnStruct() 113 mkdir(tmpdir); in testDelegatorAccessesDelegateMembers() 114 writeFile(tmpdir, "S.g", slave); in testDelegatorAccessesDelegateMembers() 130 mkdir(tmpdir); in testDelegatorInvokesFirstVersionOfDelegateRule() 131 writeFile(tmpdir, "S.g", slave); in testDelegatorInvokesFirstVersionOfDelegateRule() [all …]
|
D | BaseTest.java | 69 public String tmpdir = null; field in BaseTest 83 tmpdir = new File(System.getProperty("java.io.tmpdir"), in setUp() 99 tool.setOutputDirectory(tmpdir); in newTool() 105 tool.setOutputDirectory(tmpdir); in newTool() 113 "javac", "-d", tmpdir, in compile() 114 classpathOption, tmpdir+pathSep+CLASSPATH, in compile() 115 tmpdir+"/"+fileName in compile() 117 …String cmdLine = "javac" +" -d "+tmpdir+" "+classpathOption+" "+tmpdir+pathSep+CLASSPATH+" "+fileN… in compile() 121 File f = new File(tmpdir, fileName); in compile() 131 Arrays.asList(new String[]{"-d", tmpdir, "-cp", tmpdir+pathSep+CLASSPATH} ); in compile() [all …]
|
/external/strace/maint/ |
D | ioctls_sym.sh | 60 tmpdir= 64 [ -z "$tmpdir" ] || 65 rm -rf -- "$tmpdir" 71 tmpdir="$(mktemp -dt "$me.XXXXXX")" 77 xargs -r0 grep -l "$r_value" -- > "$tmpdir"/headers1.list || 80 sed 's|^\./\(uapi/\)\?||' < "$tmpdir"/headers1.list > "$tmpdir"/headers.list 81 LC_COLLATE=C sort -u -o "$tmpdir"/headers.list "$tmpdir"/headers.list 83 msg "processing $(wc -l < "$tmpdir"/headers.list) header files from $inc_dir" 93 $CC $INCLUDES $CFLAGS -c -o "$tmpdir"/print_ioctlent.o "${0%/*}"/print_ioctlent.c 97 mkdir "$tmpdir/$d" [all …]
|
/external/chromium-trace/catapult/third_party/gsutil/gslib/tests/ |
D | test_rsync.py | 90 tmpdir = self.CreateTempDir() 99 self.RunGsUtil(['rsync', suri(obj1), tmpdir], expected_status=1) 101 self.RunGsUtil(['rsync', tmpdir, suri(obj1)], expected_status=1) 103 self.RunGsUtil(['rsync', tmpdir, suri(obj1), self.nonexistent_bucket_name], 293 tmpdir = self.CreateTempDir() 294 subdir = os.path.join(tmpdir, 'subdir') 297 self.CreateTempFile(tmpdir=tmpdir, file_name='obj1', contents='obj1') 298 self.CreateTempFile(tmpdir=tmpdir, file_name='.obj2', contents='.obj2') 299 self.CreateTempFile(tmpdir=subdir, file_name='obj3', contents='subdir/obj3') 315 self.RunGsUtil(['rsync', '-d', tmpdir, suri(bucket_uri)]) [all …]
|
/external/toybox/toys/lsb/ |
D | mktemp.c | 31 char *tmpdir; in GLOBALS() argument 41 if (!TT.tmpdir) TT.tmpdir = getenv("TMPDIR"); 42 if (!TT.tmpdir || !*TT.tmpdir) TT.tmpdir = "/tmp"; 45 : xmprintf("%s/%s", TT.tmpdir, template); 50 d_flag ? "directory" : "file", TT.tmpdir, template);
|
/external/chromium-trace/catapult/third_party/gsutil/gslib/tests/testcase/ |
D | base.py | 67 tmpdir = self.tempdirs.pop() 68 shutil.rmtree(tmpdir, ignore_errors=True) 109 tmpdir = tempfile.mkdtemp(prefix=self.MakeTempName('directory')) 110 self.tempdirs.append(tmpdir) 116 self.CreateTempFile(tmpdir=tmpdir, file_name=name, contents='test %d' % i) 117 return tmpdir 119 def CreateTempFile(self, tmpdir=None, contents=None, file_name=None): argument 135 tmpdir = tmpdir or self.CreateTempDir() 138 fpath = os.path.join(tmpdir, file_name) 140 fpath = os.path.join(tmpdir, *file_name)
|
/external/autotest/client/tests/btreplay/ |
D | btreplay.py | 11 tarball = utils.unmap_url(self.bindir, tarball, self.tmpdir) 33 def run_once(self, dev="", devices="", extra_args='', tmpdir=None): argument 41 if not tmpdir: 42 tmpdir = self.tmpdir 57 cmd = "./btreplay/btrecord -d .. -D %s %s" % (tmpdir, dev) 63 tmpdir+" -N -W "+dev+" "+extra_args+" 2>&1" 69 utils.system("./blktrace -D %s %s >/dev/null &" % (tmpdir, alldevs)) 71 (tmpdir, dev, extra_args) 85 (tmpdir, tmpdir, alldnames)) 86 cmd = "./btt/btt -i %s/trace.bin" % tmpdir
|
/external/chromium-trace/catapult/third_party/typ/typ/tests/ |
D | runner_test.py | 88 tmpdir = None 90 tmpdir = h.mkdtemp() 91 h.chdir(tmpdir) 105 if tmpdir: 106 h.rmtree(tmpdir) 116 tmpdir = None 118 tmpdir = h.mkdtemp() 119 h.chdir(tmpdir) 130 if tmpdir: 131 h.rmtree(tmpdir) [all …]
|
/external/e2fsprogs/contrib/ |
D | build-rpm | 20 tmpdir=`mktemp -d ${RPM_TMPDIR:-$TMP}/rpmtmp.XXXXXX` 27 cp -sR `pwd`/$currdir $tmpdir/$builddir || exit 1 30 [ -f $tmpdir/$builddir/Makefile ] && make -C $tmpdir/$builddir distclean 33 (cd $tmpdir && tar czfh ${builddir}.tar.gz $EXCLUDE $builddir) 37 $RPM --define "_sourcedir $tmpdir" \ 44 rm -rf $tmpdir
|
/external/chromium-trace/catapult/third_party/gsutil/third_party/boto/tests/integration/gs/ |
D | test_resumable_downloads.py | 51 def make_tracker_file(self, tmpdir=None): argument 52 if not tmpdir: 53 tmpdir = self._MakeTempDir() 54 tracker_file = os.path.join(tmpdir, 'tracker') 57 def make_dst_fp(self, tmpdir=None): argument 58 if not tmpdir: 59 tmpdir = self._MakeTempDir() 60 dst_file = os.path.join(tmpdir, 'dstfile') 94 tmpdir = self._MakeTempDir() 95 tracker_file_name = self.make_tracker_file(tmpdir) [all …]
|
/external/chromium-trace/catapult/third_party/typ/typ/ |
D | test_case.py | 42 def _read_files(self, host, tmpdir): argument 44 for f in host.files_under(tmpdir): 48 out_files[key] = host.read_text_file(tmpdir, f) 78 tmpdir = None 81 tmpdir = host.mkdtemp() 82 host.chdir(tmpdir) 93 host.print_('cd %s' % tmpdir, stream=host.stdout.stream) 103 actual_files = self._read_files(host, tmpdir) 106 if tmpdir: 107 host.rmtree(tmpdir)
|
/external/selinux/policycoreutils/sandbox/ |
D | seunshare.c | 381 static int cleanup_tmpdir(const char *tmpdir, const char *src, in cleanup_tmpdir() argument 389 …if (asprintf(&cmdbuf, "/usr/bin/rsync --exclude=.X11-unix -utrlHDq --delete '%s/' '%s/'", tmpdir, … in cleanup_tmpdir() 402 if (asprintf(&cmdbuf, "/bin/rm -r '%s/' 2>/dev/null", tmpdir) == -1) { in cleanup_tmpdir() 417 if (rmdir(tmpdir) == -1) in cleanup_tmpdir() 418 fprintf(stderr, _("Failed to remove directory %s: %s\n"), tmpdir, strerror(errno)); in cleanup_tmpdir() 436 char *tmpdir = NULL; in create_tmpdir() local 469 if (asprintf(&tmpdir, "/tmp/.sandbox-%s-XXXXXX", pwd->pw_name) == -1) { in create_tmpdir() 471 tmpdir = NULL; in create_tmpdir() 474 if (mkdtemp(tmpdir) == NULL) { in create_tmpdir() 480 if (verify_directory(tmpdir, NULL, out_st) < 0) { in create_tmpdir() [all …]
|
/external/blktrace/btt/ |
D | bno_plot.py | 92 tmpdir = tempfile.mktemp() variable 93 os.mkdir(tmpdir) 97 t = '%s/%s' % (tmpdir, f) 109 fo = open('%s/plot.cmds' % tmpdir, 'w') 117 cmd = '/usr/bin/gnuplot %s/plot.cmds -' % tmpdir 122 os.chdir(tmpdir) 127 os.system('/bin/rm -rf ' + tmpdir)
|
/external/bison/djgpp/ |
D | subpipe.c | 70 char *tmpdir; in init_subpipe() local 73 tmpdir = getenv("TMPDIR"); in init_subpipe() 74 if (tmpdir == NULL) in init_subpipe() 75 tmpdir = getenv("TMP"); in init_subpipe() 76 if (tmpdir == NULL) in init_subpipe() 77 tmpdir = getenv("TEMP"); in init_subpipe() 78 if (access(tmpdir, D_OK)) in init_subpipe() 79 tmpdir = "."; in init_subpipe() 81 strcpy(tmp_file_name[0], tmpdir); in init_subpipe() 88 strcpy(tmp_file_name[1], tmpdir); in init_subpipe()
|
/external/autotest/client/bin/ |
D | local_host_unittest.py | 16 self.tmpdir = autotemp.tempdir(unique_id='localhost_unittest') 21 self.tmpdir.clean() 93 files = (os.path.join(self.tmpdir.name, 'file1'), 94 os.path.join(self.tmpdir.name, 'file2')) 102 host.list_files_glob(os.path.join(self.tmpdir.name, '*'))) 109 fname = os.path.join(self.tmpdir.name, 'file') 110 sname = os.path.join(self.tmpdir.name, 'sym') 125 fname = os.path.join(self.tmpdir.name, 'file') 126 sname = os.path.join(self.tmpdir.name, 'sym')
|
/external/autotest/client/site_tests/security_Minijail0/src/ |
D | mountns-enter.py | 14 tmpdir = tempfile.mkdtemp(prefix="newns-", dir="/tmp") variable 15 ret = subprocess.check_call(["mount", "tmpfs", tmpdir, "-t", "tmpfs"]) 16 test_file = os.path.join(tmpdir, "test") 25 subprocess.check_call("umount %s" % tmpdir, shell=True) 26 os.rmdir(tmpdir)
|
/external/chromium-trace/catapult/catapult_build/ |
D | run_dev_server_tests.py | 140 tmpdir = tempfile.mkdtemp() 141 zip_path = os.path.join(tmpdir, 'chrome.zip') 145 zf.extractall(path=tmpdir) 146 return tmpdir, version, download_url 205 tmpdir = None 242 tmpdir, version, download_url = DownloadChromium(channel) 246 tmpdir, platform_data['chromepath']) 253 os.path.join(tmpdir, platform_data['version_path'])) 260 path = os.path.join(tmpdir, path) 308 if tmpdir: [all …]
|
/external/elfutils/po/ |
D | Rules-quot | 18 tmpdir=`pwd`; \ 23 …| sed -f $$tmpdir/$$lang.insert-header | $(MSGCONV) -t UTF-8 | $(MSGFILTER) sed -f `echo $$lang | … 24 if cmp $$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \ 25 rm -f $$tmpdir/$$lang.new.po; \ 27 if mv -f $$tmpdir/$$lang.new.po $$lang.po; then \ 30 echo "creation of $$lang.po failed: cannot move $$tmpdir/$$lang.new.po to $$lang.po" 1>&2; \ 36 rm -f $$tmpdir/$$lang.new.po; \
|
/external/bison/po/ |
D | Rules-quot | 18 tmpdir=`pwd`; \ 23 …| sed -f $$tmpdir/$$lang.insert-header | $(MSGCONV) -t UTF-8 | $(MSGFILTER) sed -f `echo $$lang | … 24 if cmp $$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \ 25 rm -f $$tmpdir/$$lang.new.po; \ 27 if mv -f $$tmpdir/$$lang.new.po $$lang.po; then \ 30 echo "creation of $$lang.po failed: cannot move $$tmpdir/$$lang.new.po to $$lang.po" 1>&2; \ 36 rm -f $$tmpdir/$$lang.new.po; \
|
/external/libexif/po/ |
D | Rules-quot | 18 tmpdir=`pwd`; \ 23 …| sed -f $$tmpdir/$$lang.insert-header | $(MSGCONV) -t UTF-8 | $(MSGFILTER) sed -f `echo $$lang | … 24 if cmp $$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \ 25 rm -f $$tmpdir/$$lang.new.po; \ 27 if mv -f $$tmpdir/$$lang.new.po $$lang.po; then \ 30 echo "creation of $$lang.po failed: cannot move $$tmpdir/$$lang.new.po to $$lang.po" 1>&2; \ 36 rm -f $$tmpdir/$$lang.new.po; \
|
/external/e2fsprogs/po/ |
D | Rules-quot | 18 tmpdir=`pwd`; \ 23 …| sed -f $$tmpdir/$$lang.insert-header | $(MSGCONV) -t UTF-8 | $(MSGFILTER) sed -f `echo $$lang | … 24 if cmp $$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \ 25 rm -f $$tmpdir/$$lang.new.po; \ 27 if mv -f $$tmpdir/$$lang.new.po $$lang.po; then \ 30 echo "creation of $$lang.po failed: cannot move $$tmpdir/$$lang.new.po to $$lang.po" 1>&2; \ 36 rm -f $$tmpdir/$$lang.new.po; \
|
/external/bison/runtime-po/ |
D | Rules-quot | 18 tmpdir=`pwd`; \ 23 …| sed -f $$tmpdir/$$lang.insert-header | $(MSGCONV) -t UTF-8 | $(MSGFILTER) sed -f `echo $$lang | … 24 if cmp $$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \ 25 rm -f $$tmpdir/$$lang.new.po; \ 27 if mv -f $$tmpdir/$$lang.new.po $$lang.po; then \ 30 echo "creation of $$lang.po failed: cannot move $$tmpdir/$$lang.new.po to $$lang.po" 1>&2; \ 36 rm -f $$tmpdir/$$lang.new.po; \
|
/external/autotest/client/samples/ |
D | control.fs_options | 15 mountpoint=job.tmpdir) 18 #partition = job.partition('/dev/sdb1', job.tmpdir) 31 job.run_test('fsx', dir=job.tmpdir, tag=tag) 32 job.run_test('iozone', dir=job.tmpdir, iterations=iters, tag=tag) 33 job.run_test('dbench', iterations=iters, dir=job.tmpdir, tag=tag) 34 job.run_test('tiobench', dir=job.tmpdir, tag=tag)
|
/external/autotest/client/site_tests/security_SymlinkRestrictions/ |
D | security_SymlinkRestrictions.py | 122 tmpdir = tempfile.mkdtemp(prefix=prefix) 123 self._rmdir.append(tmpdir) 127 os.chmod(tmpdir, mode) 128 os.chown(tmpdir, uidone, 0) 131 drop = os.path.join(tmpdir, "remove.me") 156 target = os.path.join(tmpdir, 'target') 161 target_userone = os.path.join(tmpdir, 'target-%s' % (userone)) 167 target_usertwo = os.path.join(tmpdir, 'target-%s' % (usertwo)) 173 userone_symlink = os.path.join(tmpdir, '%s.symlink' % (userone)) 174 usertwo_symlink = os.path.join(tmpdir, '%s.symlink' % (usertwo)) [all …]
|
/external/autotest/site_utils/autoupdate/ |
D | full_release_test_test.py | 83 self.tmpdir = tempfile.mkdtemp('control') 89 shutil.rmtree(self.tmpdir) 100 '--dump_dir', self.tmpdir, 120 os.path.join(self.tmpdir, board, 'control.nmo_delta_%s' % src), 133 '--dump_dir', self.tmpdir, 152 os.path.join(self.tmpdir, board, 'control.npo_delta_%s' % src), 166 '--dump_dir', self.tmpdir, 186 os.path.join(self.tmpdir, board, 'control.npo_delta_%s' % src), 260 '--dump_dir', self.tmpdir, 279 os.path.join(self.tmpdir, board, [all …]
|