Home
last modified time | relevance | path

Searched refs:tmpdir (Results 1 – 25 of 289) sorted by relevance

12345678910>>...12

/external/antlr/antlr-3.4/tool/src/test/java/org/antlr/test/
DTestCompositeGrammars.java53 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 …]
DBaseTest.java69 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/
Dtest_from_cdb.py39 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 …]
Dtest_create_cdb.py17 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 …]
Dtest_from_cmd.py25 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/
Dmkdir09.c136 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/
Dtempfile.c44 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/
Dtest_archive_util.py61 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 …]
Dtest_dep_util.py15 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/
Dmktemp.c31 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/
Dchromeos.exp.in9 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/
Dbtreplay.py11 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/
Dlocal_host_unittest.py15 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/
Dbuild-rpm20 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/
Dssh-stress63 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/
Dgo_target_exec21 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/
Dtest_libear.py15 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/
Dbno_plot.py92 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/
Dseunshare.c381 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/
Dsubpipe.c70 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/
Dlxc_config_unittest.py38 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)
Dzygote.py89 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/
Dmountns-enter.py14 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/
DRules-quot18 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/
DRules-quot18 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; \

12345678910>>...12