/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/clang/tools/scan-build-py/tests/functional/cases/ |
D | test_from_cdb.py | 39 with libear.TemporaryDirectory() as tmpdir: 40 cdb = prepare_cdb('regular', tmpdir) 41 exit_code, reportdir = run_analyzer(tmpdir, cdb, []) 45 with libear.TemporaryDirectory() as tmpdir: 46 cdb = prepare_cdb('clean', tmpdir) 47 exit_code, reportdir = run_analyzer(tmpdir, cdb, []) 51 with libear.TemporaryDirectory() as tmpdir: 52 cdb = prepare_cdb('clean', tmpdir) 53 exit_code, reportdir = run_analyzer(tmpdir, cdb, ['--keep-empty']) 59 with libear.TemporaryDirectory() as tmpdir: [all …]
|
D | test_create_cdb.py | 17 def run_intercept(tmpdir, args): argument 18 result = os.path.join(tmpdir, 'cdb.json') 19 make = make_args(tmpdir) + args 31 with libear.TemporaryDirectory() as tmpdir: 32 result = self.run_intercept(tmpdir, ['build_regular']) 37 with libear.TemporaryDirectory() as tmpdir: 38 result = os.path.join(tmpdir, 'cdb.json') 39 make = make_args(tmpdir) + ['build_regular'] 47 with libear.TemporaryDirectory() as tmpdir: 48 result = self.run_intercept(tmpdir, ['-j', '4', 'build_regular']) [all …]
|
D | test_from_cmd.py | 25 with libear.TemporaryDirectory() as tmpdir: 26 make = make_args(tmpdir) + ['build_regular'] 27 outdir = self.run_analyzer(tmpdir, [], make) 31 with libear.TemporaryDirectory() as tmpdir: 32 make = make_args(tmpdir) + ['build_clean'] 33 outdir = self.run_analyzer(tmpdir, [], make) 37 with libear.TemporaryDirectory() as tmpdir: 38 make = make_args(tmpdir) + ['build_clean'] 39 outdir = self.run_analyzer(tmpdir, ['--keep-empty'], make) 50 with libear.TemporaryDirectory() as tmpdir: [all …]
|
/external/ltp/testcases/kernel/syscalls/mkdir/ |
D | mkdir09.c | 136 char tmpdir[MAXPATHLEN]; in runtest() local 141 sprintf(tmpdir, DIR_NAME, j); in runtest() 142 TEST(mkdir(tmpdir, MODE_RWX)); in runtest() 150 if (rmdir(tmpdir) < 0) { in runtest() 250 sprintf(tmpdir, DIR_NAME, j); in runtest() 251 if (rmdir(tmpdir) < 0) { in runtest() 330 char tmpdir[MAXPATHLEN]; in dochild1() local 334 sprintf(tmpdir, DIR_NAME, j); in dochild1() 335 TEST(mkdir(tmpdir, MODE_RWX)); in dochild1() 342 tmpdir, TEST_ERRNO); in dochild1() [all …]
|
/external/libcups/cups/ |
D | tempfile.c | 44 const char *tmpdir; /* TMPDIR environment var */ in cupsTempFd() local 60 if ((tmpdir = getenv("TEMP")) == NULL) in cupsTempFd() 63 tmpdir = tmppath; in cupsTempFd() 74 if ((tmpdir = getenv("TMPDIR")) != NULL && access(tmpdir, W_OK)) in cupsTempFd() 75 tmpdir = NULL; in cupsTempFd() 77 if (!tmpdir) in cupsTempFd() 80 tmpdir = tmppath; in cupsTempFd() 82 tmpdir = "/private/tmp"; /* This should never happen */ in cupsTempFd() 93 if ((tmpdir = getenv("TMPDIR")) == NULL) in cupsTempFd() 94 tmpdir = "/tmp"; in cupsTempFd() [all …]
|
/external/python/cpython2/Lib/distutils/tests/ |
D | test_archive_util.py | 61 tmpdir = self.mkdtemp() 62 self.write_file([tmpdir, 'file1'], 'xxx') 63 self.write_file([tmpdir, 'file2'], 'xxx') 64 os.mkdir(os.path.join(tmpdir, 'sub')) 65 self.write_file([tmpdir, 'sub', 'file3'], 'xxx') 68 unittest.skipUnless(splitdrive(tmpdir)[0] == splitdrive(tmpdir2)[0], 75 os.chdir(tmpdir) 88 os.chdir(tmpdir) 107 tmpdir = self.mkdtemp() 108 dist = os.path.join(tmpdir, 'dist') [all …]
|
D | test_dep_util.py | 15 tmpdir = self.mkdtemp() 16 new_file = os.path.join(tmpdir, 'new') 33 tmpdir = self.mkdtemp() 34 sources = os.path.join(tmpdir, 'sources') 35 targets = os.path.join(tmpdir, 'targets') 50 tmpdir = self.mkdtemp() 51 sources = os.path.join(tmpdir, 'sources')
|
/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/toolchain-utils/dejagnu/ |
D | chromeos.exp.in | 9 set tmpdir [board_info $board tmpdir] 12 local_exec "ssh -n $ssh_options root@$hostname sh -c 'mkdir -p $tmpdir'" \ 23 set tmpdir [board_info $board tmpdir] 26 verbose -log "Cleaning up - executing on board 'rm -fr $tmpdir' ..." 1 27 local_exec "ssh -n $ssh_options root@$hostname sh -c 'rm -fr $tmpdir'" \ 36 set tmpdir [board_info $board tmpdir] 40 verbose -log "scp -q $ssh_options $file root@$hostname:$tmpdir/" 41 set result [local_exec "scp -q $ssh_options $file root@$hostname:$tmpdir/" \ 44 verbose -log "failed to upload \'$file\' to \'$tmpdir/$destfile\'" 46 verbose -log "uploaded \"$file\' to remote board@\'$tmpdir/$destfile\'" [all …]
|
/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/autotest/client/bin/ |
D | local_host_unittest.py | 15 self.tmpdir = autotemp.tempdir(unique_id='localhost_unittest') 16 self.addCleanup(self.tmpdir.clean) 147 files = (os.path.join(self.tmpdir.name, 'file1'), 148 os.path.join(self.tmpdir.name, 'file2')) 156 host.list_files_glob(os.path.join(self.tmpdir.name, '*'))) 163 fname = os.path.join(self.tmpdir.name, 'file') 164 sname = os.path.join(self.tmpdir.name, 'sym') 179 fname = os.path.join(self.tmpdir.name, 'file') 180 sname = os.path.join(self.tmpdir.name, 'sym') 194 source_file = os.path.join(self.tmpdir.name, 'file') [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/ltp/testcases/network/stress/ssh/ |
D | ssh-stress | 63 tmpdir=$TST_TMPDIR 65 cat << EOD > $tmpdir/sshd_config 69 AuthorizedKeysFile $tmpdir/authorized_keys 74 PidFile $tmpdir/sshd.pid 77 $SSHD -f $tmpdir/sshd_config || \ 96 tst_rhost_run -c "cat ${rtmpdir}/id_rsa.pub" > $tmpdir/authorized_keys 100 test "$rc" && $rc $tmpdir/authorized_keys 102 chmod 700 $tmpdir 103 chmod 600 $tmpdir/*
|
/external/toolchain-utils/go/ |
D | go_target_exec | 21 tmpdir="$(target_tmpdir)" 22 target_cp ${binary} ${target}:${tmpdir}/a.out 26 targetdir="${tmpdir}" 30 targetdir="${tmpdir}/go/src/${PWD#${goroot}/src/}" 34 vars="GOROOT=${tmpdir}/go" 41 target_sh ${target} "cd ${targetdir} && ${vars} ${tmpdir}/a.out $*"
|
/external/clang/tools/scan-build-py/tests/unit/ |
D | test_libear.py | 15 with sut.TemporaryDirectory() as tmpdir: 16 self.assertTrue(os.path.isdir(tmpdir)) 17 dirname = tmpdir 24 with sut.TemporaryDirectory() as tmpdir: 25 self.assertTrue(os.path.isdir(tmpdir)) 26 dirname = tmpdir
|
/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/selinux/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/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/site_utils/lxc/ |
D | lxc_config_unittest.py | 38 with TempDir() as tmpdir: 42 'source': tempfile.mkdtemp(dir=tmpdir), 49 'source': tempfile.mkdtemp(dir=tmpdir), 69 with TempDir() as tmpdir: 70 src_dir = os.path.join(tmpdir, 'foobar') 171 tmpdir = tempfile.mkdtemp() 173 yield tmpdir 175 shutil.rmtree(tmpdir)
|
D | zygote.py | 89 tmpdir = None 92 tmpdir = tempfile.mkdtemp(dir=self.container_path, 95 autotest_tmp = os.path.join(tmpdir, 'autotest') 99 download_tmp = os.path.join(tmpdir, 101 lxc.download_extract(ssp_url, download_tmp, tmpdir) 108 if tmpdir is not None: 109 utils.run('sudo rm -rf %s' % tmpdir)
|
/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/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/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; \
|