/external/python/setuptools/setuptools/tests/ |
D | test_config.py | 19 def fake_env(tmpdir, setup_cfg, setup_py=None): argument 27 tmpdir.join('setup.py').write(setup_py) 28 config = tmpdir.join('setup.cfg') 31 package_dir, init_file = make_package_dir('fake_package', tmpdir) 46 def get_dist(tmpdir, kwargs_initial=None, parse=True): argument 49 with tmpdir.as_cwd(): 66 def test_basic(self, tmpdir): argument 68 tmpdir, 81 def test_no_config(self, tmpdir): argument 83 read_configuration('%s' % tmpdir.join('setup.cfg')) [all …]
|
D | test_install_scripts.py | 37 def test_sys_executable_escaping_unix(self, tmpdir, monkeypatch): argument 44 with tmpdir.as_cwd(): 45 self._run_install_scripts(str(tmpdir)) 46 with io.open(str(tmpdir.join('foo')), 'r') as f: 51 def test_sys_executable_escaping_win32(self, tmpdir, monkeypatch): argument 58 with tmpdir.as_cwd(): 59 self._run_install_scripts(str(tmpdir)) 60 with io.open(str(tmpdir.join('foo-script.py')), 'r') as f: 65 def test_executable_with_spaces_escaping_unix(self, tmpdir): argument 71 with tmpdir.as_cwd(): [all …]
|
D | test_windows_wrappers.py | 36 def create_script(cls, tmpdir): argument 47 with (tmpdir / cls.script_name).open('w') as f: 51 with (tmpdir / cls.wrapper_name).open('wb') as f: 71 def test_basic(self, tmpdir): argument 91 self.create_script(tmpdir) 93 str(tmpdir / 'foo.exe'), 111 def test_with_options(self, tmpdir): argument 122 self.create_script(tmpdir) 134 with (tmpdir / 'foo-script.py').open('w') as f: 136 cmd = [str(tmpdir / 'foo.exe')] [all …]
|
D | test_namespaces.py | 19 def test_mixed_site_and_non_site(self, tmpdir): argument 26 pkg_A = namespaces.build_namespace_package(tmpdir, 'myns.pkgA') 27 pkg_B = namespaces.build_namespace_package(tmpdir, 'myns.pkgB') 28 site_packages = tmpdir / 'site-packages' 29 path_packages = tmpdir / 'path-packages' 60 def test_pkg_resources_import(self, tmpdir): argument 65 pkg = namespaces.build_namespace_package(tmpdir, 'myns.pkgA') 66 target = tmpdir / 'packages' 86 def test_namespace_package_installed_and_cwd(self, tmpdir): argument 91 pkg_A = namespaces.build_namespace_package(tmpdir, 'myns.pkgA') [all …]
|
/external/antlr/tool/src/test/java/org/antlr/test/ |
D | TestCompositeGrammars.java | 55 mkdir(tmpdir); in testDelegatorInvokesDelegateRule() 56 writeFile(tmpdir, "S.g", slave); in testDelegatorInvokesDelegateRule() 75 mkdir(tmpdir); in testDelegatorInvokesDelegateRuleWithArgs() 76 writeFile(tmpdir, "S.g", slave); in testDelegatorInvokesDelegateRuleWithArgs() 95 mkdir(tmpdir); in testDelegatorInvokesDelegateRuleWithReturnStruct() 96 writeFile(tmpdir, "S.g", slave); in testDelegatorInvokesDelegateRuleWithReturnStruct() 115 mkdir(tmpdir); in testDelegatorAccessesDelegateMembers() 116 writeFile(tmpdir, "S.g", slave); in testDelegatorAccessesDelegateMembers() 132 mkdir(tmpdir); in testDelegatorInvokesFirstVersionOfDelegateRule() 133 writeFile(tmpdir, "S.g", slave); in testDelegatorInvokesFirstVersionOfDelegateRule() [all …]
|
/external/autotest/venv/lucifer/ |
D | leasing_unittest.py | 29 def test_obtain_lease(tmpdir): argument 35 path = _make_lease(tmpdir, 124) 42 def test_obtain_lease_succesfully_removes_file(tmpdir): argument 44 path = _make_lease(tmpdir, 124) 51 def test_obtain_lease_with_error_removes_files(tmpdir): argument 53 path = _make_lease(tmpdir, 124) 61 def test_Lease_expired(tmpdir, end_time): argument 63 _make_lease(tmpdir, 123) 64 path = _make_lease(tmpdir, 124) 66 leases = _leases_dict(str(tmpdir)) [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/python/cpython3/Lib/test/ |
D | test_zipapp.py | 20 tmpdir = tempfile.TemporaryDirectory() 21 self.addCleanup(tmpdir.cleanup) 22 self.tmpdir = pathlib.Path(tmpdir.name) 26 source = self.tmpdir / 'source' 29 target = self.tmpdir / 'source.pyz' 35 source = self.tmpdir / 'source' 38 target = self.tmpdir / 'source.pyz' 44 source = self.tmpdir / 'source' 62 source = self.tmpdir / 'source' 67 target = self.tmpdir / 'source.pyz' [all …]
|
/external/freetype/builds/cmake/ |
D | testbuild.sh | 37 tmpdir=/tmp/freetype-cmake-testbuild 38 rm -rf $tmpdir 39 mkdir -p $tmpdir 55 -DCMAKE_INSTALL_PREFIX=$tmpdir/out" 58 -B$tmpdir/ftb \ 61 (set -x; cmake --build $tmpdir/ftb \ 65 (set -x; cmake $tmpdir/ftb \ 67 (set -x; cmake --build $tmpdir/ftb \ 75 cat >$tmpdir/CMakeLists.txt << END 91 cat >$tmpdir/main.c << END [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/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 …]
|
/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/ltp/testcases/kernel/syscalls/getcwd/ |
D | getcwd02.c | 59 char *tmpdir = "/tmp"; in get_tmpdir_path() local 61 if (dir_exists(tmpdir)) in get_tmpdir_path() 65 tmpdir = getenv("TMPDIR"); in get_tmpdir_path() 66 if (!tmpdir) in get_tmpdir_path() 69 if (tmpdir[0] != '/') in get_tmpdir_path() 72 if (!dir_exists(tmpdir)) in get_tmpdir_path() 73 tst_brk(TBROK | TERRNO, "TMPDIR '%s' doesn't exist", tmpdir); in get_tmpdir_path() 76 return tmpdir; in get_tmpdir_path() 107 const char *tmpdir = get_tmpdir_path(); in setup() local 109 SAFE_CHDIR(tmpdir); in setup() [all …]
|
/external/python/cpython3/Lib/distutils/tests/ |
D | test_archive_util.py | 67 tmpdir = self._create_files() 68 self._make_tarball(tmpdir, name, '.tar.gz') 70 self._make_tarball(tmpdir, name, '.tar', compress=None) 74 tmpdir = self._create_files() 75 self._make_tarball(tmpdir, 'archive', '.tar.gz', compress='gzip') 79 tmpdir = self._create_files() 80 self._make_tarball(tmpdir, 'archive', '.tar.bz2', compress='bzip2') 84 tmpdir = self._create_files() 85 self._make_tarball(tmpdir, 'archive', '.tar.xz', compress='xz') 104 def _make_tarball(self, tmpdir, target_name, suffix, **kwargs): argument [all …]
|
/external/fonttools/Tests/designspaceLib/ |
D | designspace_test.py | 46 def test_fill_document(tmpdir): argument 47 tmpdir = str(tmpdir) 48 testDocPath = os.path.join(tmpdir, "test.designspace") 49 masterPath1 = os.path.join(tmpdir, "masters", "masterTest1.ufo") 50 masterPath2 = os.path.join(tmpdir, "masters", "masterTest2.ufo") 51 instancePath1 = os.path.join(tmpdir, "instances", "instanceTest1.ufo") 52 instancePath2 = os.path.join(tmpdir, "instances", "instanceTest2.ufo") 193 def test_unicodes(tmpdir): argument 194 tmpdir = str(tmpdir) 195 testDocPath = os.path.join(tmpdir, "testUnicodes.designspace") [all …]
|
/external/u-boot/test/py/tests/ |
D | test_vboot.py | 57 '-o %s%s' % (dtc_args, datadir, dts, tmpdir, dtb)) 76 ['sb load hostfs - 100 %stest.fit' % tmpdir, 105 util.run_and_log(cons, [mkimage, '-F', '-k', tmpdir, '-K', dtb, 146 util.run_and_log(cons, [fit_check_sign, '-f', fit, '-k', tmpdir, 166 tmpdir = cons.config.result_dir + '/' 167 tmp = tmpdir + 'vboot.tmp' 169 fit = '%stest.fit' % tmpdir 172 dtc_args = '-I dts -O dtb -i %s' % tmpdir 173 dtb = '%ssandbox-u-boot.dtb' % tmpdir 181 '2>/dev/null' % (tmpdir, public_exponent)) [all …]
|
/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/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/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/fonttools/Tests/ttx/ |
D | ttx_test.py | 340 def test_options_d_goodpath(tmpdir): argument 341 temp_dir_path = str(tmpdir) 529 def test_ttcompile_otf_compile_default(tmpdir): argument 532 outotf = tmpdir.join("TestOTF.ttx") 555 def test_ttcompile_otf_to_woff_without_zopfli(tmpdir): argument 557 outwoff = tmpdir.join("TestOTF.woff") 582 def test_ttcompile_otf_to_woff_with_zopfli(tmpdir): argument 584 outwoff = tmpdir.join("TestOTF.woff") 610 def test_ttcompile_otf_to_woff2(tmpdir): argument 612 outwoff2 = tmpdir.join("TestTTF.woff2") [all …]
|
/external/ltp/testcases/network/stress/ssh/ |
D | ssh-stress | 62 tmpdir=$TST_TMPDIR 64 cat << EOD > $tmpdir/sshd_config 68 AuthorizedKeysFile $tmpdir/authorized_keys 73 PidFile $tmpdir/sshd.pid 76 $SSHD -f $tmpdir/sshd_config || \ 95 tst_rhost_run -c "cat ${rtmpdir}/id_rsa.pub" > $tmpdir/authorized_keys 99 test "$rc" && $rc $tmpdir/authorized_keys 101 chmod 700 $tmpdir 102 chmod 600 $tmpdir/*
|
/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/golang-protobuf/ |
D | regenerate.sh | 6 tmpdir=$(mktemp -d -t regen-wkt.XXXXXX) 8 mkdir -p $tmpdir/bin 9 PATH=$tmpdir/bin:$PATH 10 GOBIN=$tmpdir/bin go install ./protoc-gen-go 44 protoc --go_out=paths=source_relative:$tmpdir google/protobuf/$p.proto 45 cp $tmpdir/google/protobuf/$p.pb.go ptypes/$p 51 protoc --go_out=paths=source_relative:$tmpdir google/protobuf/descriptor.proto 52 cp $tmpdir/google/protobuf/descriptor.pb.go protoc-gen-go/descriptor
|