/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/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/llvm-project/clang/tools/scan-build-py/tests/functional/cases/ |
D | test_from_cdb.py | 38 with libear.TemporaryDirectory() as tmpdir: 39 cdb = prepare_cdb('regular', tmpdir) 40 exit_code, reportdir = run_analyzer(tmpdir, cdb, []) 44 with libear.TemporaryDirectory() as tmpdir: 45 cdb = prepare_cdb('clean', tmpdir) 46 exit_code, reportdir = run_analyzer(tmpdir, cdb, []) 50 with libear.TemporaryDirectory() as tmpdir: 51 cdb = prepare_cdb('clean', tmpdir) 52 exit_code, reportdir = run_analyzer(tmpdir, cdb, ['--keep-empty']) 58 with libear.TemporaryDirectory() as tmpdir: [all …]
|
D | test_create_cdb.py | 16 def run_intercept(tmpdir, args): argument 17 result = os.path.join(tmpdir, 'cdb.json') 18 make = make_args(tmpdir) + args 30 with libear.TemporaryDirectory() as tmpdir: 31 result = self.run_intercept(tmpdir, ['build_regular']) 36 with libear.TemporaryDirectory() as tmpdir: 37 result = os.path.join(tmpdir, 'cdb.json') 38 make = make_args(tmpdir) + ['build_regular'] 46 with libear.TemporaryDirectory() as tmpdir: 47 result = self.run_intercept(tmpdir, ['-j', '4', 'build_regular']) [all …]
|
D | test_from_cmd.py | 24 with libear.TemporaryDirectory() as tmpdir: 25 make = make_args(tmpdir) + ['build_regular'] 26 outdir = self.run_analyzer(tmpdir, [], make) 30 with libear.TemporaryDirectory() as tmpdir: 31 make = make_args(tmpdir) + ['build_clean'] 32 outdir = self.run_analyzer(tmpdir, [], make) 36 with libear.TemporaryDirectory() as tmpdir: 37 make = make_args(tmpdir) + ['build_clean'] 38 outdir = self.run_analyzer(tmpdir, ['--keep-empty'], make) 49 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/libxkbcommon/test/ |
D | context.c | 101 char *tmpdir = strdup(template); in maketmpdir() local 103 tmpdir = mkdtemp(tmpdir); in maketmpdir() 104 assert(tmpdir != NULL); in maketmpdir() 106 dirnames[ndirs++] = tmpdir; in maketmpdir() 108 return tmpdir; in maketmpdir() 129 const char *tmpdir; in test_config_root_include_path() local 137 tmpdir = maketmpdir(); in test_config_root_include_path() 138 setenv("XKB_CONFIG_ROOT", tmpdir, 1); in test_config_root_include_path() 147 assert(strcmp(context_path, tmpdir) == 0); in test_config_root_include_path() 196 const char *tmpdir; in test_xkbdir_include_path() local [all …]
|
/external/tpm2-tss/test/integration/ |
D | main-fapi.c | 78 char *tmpdir = mkdtemp(template); in main() local 79 if (!tmpdir) { in main() 97 tmpdir, tmpdir, tmpdir); in main() 113 tmpdir, tmpdir, tmpdir, in main() 131 tmpdir, tmpdir, tmpdir, in main() 149 tmpdir, tmpdir, tmpdir, in main() 167 tmpdir, tmpdir, tmpdir, in main() 183 tmpdir, tmpdir, tmpdir, in main() 192 size = asprintf(&system_dir, "%s/system_dir/", tmpdir); in main() 214 size = asprintf(&config_path, "%s/fapi-config.json", tmpdir); in main() [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/libcups/cups/ |
D | tempfile.c | 40 const char *tmpdir; /* TMPDIR environment var */ in cupsTempFd() local 56 if ((tmpdir = getenv("TEMP")) == NULL) in cupsTempFd() 59 tmpdir = tmppath; in cupsTempFd() 70 if ((tmpdir = getenv("TMPDIR")) != NULL && access(tmpdir, W_OK)) in cupsTempFd() 71 tmpdir = NULL; in cupsTempFd() 73 if (!tmpdir) in cupsTempFd() 76 tmpdir = tmppath; in cupsTempFd() 78 tmpdir = "/private/tmp"; /* This should never happen */ in cupsTempFd() 89 if ((tmpdir = getenv("TMPDIR")) == NULL) in cupsTempFd() 90 tmpdir = "/tmp"; in cupsTempFd() [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/tensorflow/tensorflow/python/data/experimental/kernel_tests/ |
D | snapshot_test.py | 46 tmpdir = self.get_temp_dir() 47 tmpdir = os.path.join(tmpdir, "snapshot") 48 os.mkdir(tmpdir) 49 self._snapshot_dir = tmpdir 414 tmpdir = self.get_temp_dir() 415 tmpdir = os.path.join(tmpdir, "snapshot") 416 os.mkdir(tmpdir) 417 self.snapshot_dir = tmpdir 467 tmpdir = self.snapshot_dir 470 dataset = dataset.apply(snapshot.legacy_snapshot(tmpdir)) [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/ltp/testcases/kernel/syscalls/getcwd/ |
D | getcwd02.c | 47 char *tmpdir = "/tmp"; in get_tmpdir_path() local 49 if (dir_exists(tmpdir)) in get_tmpdir_path() 53 tmpdir = getenv("TMPDIR"); in get_tmpdir_path() 54 if (!tmpdir) in get_tmpdir_path() 57 if (tmpdir[0] != '/') in get_tmpdir_path() 60 if (!dir_exists(tmpdir)) in get_tmpdir_path() 61 tst_brk(TBROK | TERRNO, "TMPDIR '%s' doesn't exist", tmpdir); in get_tmpdir_path() 64 return tmpdir; in get_tmpdir_path() 95 const char *tmpdir = get_tmpdir_path(); in setup() local 97 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 | 43 def test_fill_document(tmpdir): argument 44 tmpdir = str(tmpdir) 45 testDocPath = os.path.join(tmpdir, "test.designspace") 46 masterPath1 = os.path.join(tmpdir, "masters", "masterTest1.ufo") 47 masterPath2 = os.path.join(tmpdir, "masters", "masterTest2.ufo") 48 instancePath1 = os.path.join(tmpdir, "instances", "instanceTest1.ufo") 49 instancePath2 = os.path.join(tmpdir, "instances", "instanceTest2.ufo") 191 def test_unicodes(tmpdir): argument 192 tmpdir = str(tmpdir) 193 testDocPath = os.path.join(tmpdir, "testUnicodes.designspace") [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/fonttools/Tests/cu2qu/ |
D | cli_test.py | 21 def test_paths(tmpdir): argument 24 new_path = tmpdir / path.basename 44 def test_single_input_output_file(self, tmpdir): argument 46 output_path = tmpdir / input_path.basename 51 def test_multiple_inputs_output_dir(self, tmpdir): argument 52 output_dir = tmpdir / "output_dir" 66 def test_copytree(self, mode, tmpdir): argument 67 output_dir = tmpdir / "output_dir" 70 output_dir_2 = tmpdir / "output_dir_2" 76 def test_multiprocessing(self, tmpdir, test_paths): argument
|
/external/llvm-project/clang-tools-extra/clang-tidy/tool/ |
D | run-clang-tidy.py | 82 def get_tidy_invocation(f, clang_tidy_binary, checks, tmpdir, build_path, argument 93 if tmpdir is not None: 97 (handle, name) = tempfile.mkstemp(suffix='.yaml', dir=tmpdir) 113 def merge_replacement_files(tmpdir, mergefile): argument 119 for replacefile in glob.iglob(os.path.join(tmpdir, '*.yaml')): 149 def apply_fixes(args, tmpdir): argument 156 invocation.append(tmpdir) 160 def run_tidy(args, tmpdir, build_path, queue, lock, failed_files): argument 165 tmpdir, build_path, args.header_filter, 274 tmpdir = None [all …]
|