Home
last modified time | relevance | path

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

12345678910>>...16

/external/python/setuptools/setuptools/tests/config/
Dtest_setupcfg.py32 tmpdir, setup_cfg, setup_py=None, encoding='ascii', package_path='fake_package' argument
38 tmpdir.join('setup.py').write(setup_py)
39 config = tmpdir.join('setup.cfg')
42 package_dir, init_file = make_package_dir(package_path, tmpdir)
58 def get_dist(tmpdir, kwargs_initial=None, parse=True): argument
61 with tmpdir.as_cwd():
77 def test_basic(self, tmpdir): argument
79 tmpdir,
92 def test_no_config(self, tmpdir): argument
94 read_configuration('%s' % tmpdir.join('setup.cfg'))
[all …]
/external/perfetto/src/traced/probes/power/
Dlinux_power_sysfs_data_source_unittest.cc25 base::TmpDirTree tmpdir; in TEST() local
28 tmpdir.AddDir("BAT0"); in TEST()
29 tmpdir.AddFile("BAT0/type", "Battery\n"); in TEST()
30 tmpdir.AddFile("BAT0/present", "1\n"); in TEST()
31 tmpdir.AddFile("BAT0/capacity", "95\n"); // 95 percent. in TEST()
32 tmpdir.AddFile("BAT0/charge_now", "3074000\n"); // 3074000 µAh. in TEST()
33 tmpdir.AddFile("BAT0/current_now", "245000\n"); // 245000 µA. in TEST()
34 tmpdir.AddFile("BAT0/current_avg", "240000\n"); // 240000 µA. in TEST()
37 new LinuxPowerSysfsDataSource::BatteryInfo(tmpdir.path().c_str())); in TEST()
47 base::TmpDirTree tmpdir; in TEST() local
[all …]
/external/antlr/tool/src/test/java/org/antlr/test/
DTestCompositeGrammars.java55 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/
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/python/cpython3/Lib/test/
Dtest_zipapp.py20 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/
Dcontext.c101 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/
Dmain-fapi.c78 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/
Dtestbuild.sh37 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/python/setuptools/setuptools/tests/
Dtest_install_scripts.py37 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
72 with tmpdir.as_cwd():
[all …]
Dtest_namespaces.py16 def test_mixed_site_and_non_site(self, tmpdir): argument
23 pkg_A = namespaces.build_namespace_package(tmpdir, 'myns.pkgA')
24 pkg_B = namespaces.build_namespace_package(tmpdir, 'myns.pkgB')
25 site_packages = tmpdir / 'site-packages'
26 path_packages = tmpdir / 'path-packages'
55 def test_pkg_resources_import(self, tmpdir): argument
60 pkg = namespaces.build_namespace_package(tmpdir, 'myns.pkgA')
61 target = tmpdir / 'packages'
80 def test_namespace_package_installed_and_cwd(self, tmpdir): argument
85 pkg_A = namespaces.build_namespace_package(tmpdir, 'myns.pkgA')
[all …]
Dtest_windows_wrappers.py35 def create_script(cls, tmpdir): argument
46 with (tmpdir / cls.script_name).open('w') as f:
50 with (tmpdir / cls.wrapper_name).open('wb') as f:
80 def test_basic(self, tmpdir): argument
100 self.create_script(tmpdir)
102 str(tmpdir / 'foo.exe'),
121 def test_with_options(self, tmpdir): argument
132 self.create_script(tmpdir)
144 with (tmpdir / 'foo-script.py').open('w') as f:
146 cmd = [str(tmpdir / 'foo.exe')]
[all …]
/external/liburing/test/
Dacross-fork.c87 static int verify_file(const char *tmpdir, const char *fname, const char* expect) in verify_file() argument
95 fd = open_tempfile(tmpdir, fname); in verify_file()
114 static void cleanup(const char *tmpdir) in cleanup() argument
120 snprintf(buf, sizeof(buf), "%s/%s", tmpdir, "shared"); in cleanup()
123 snprintf(buf, sizeof(buf), "%s/%s", tmpdir, "parent1"); in cleanup()
126 snprintf(buf, sizeof(buf), "%s/%s", tmpdir, "parent2"); in cleanup()
129 snprintf(buf, sizeof(buf), "%s/%s", tmpdir, "child"); in cleanup()
132 rmdir(tmpdir); in cleanup()
138 char tmpdir[] = "forktmpXXXXXX"; in main() local
163 if (mkdtemp(tmpdir) == NULL) { in main()
[all …]
/external/libcups/cups/
Dtempfile.c40 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/
Dmkdir09.c37 char tmpdir[MAXPATHLEN]; in test1() local
41 sprintf(tmpdir, DIR_NAME, j); in test1()
42 TST_EXP_FAIL_SILENT(mkdir(tmpdir, MODE_RWX), EEXIST); in test1()
57 char tmpdir[MAXPATHLEN]; in test2() local
61 sprintf(tmpdir, DIR_NAME, j); in test2()
62 TST_EXP_FAIL_SILENT(rmdir(tmpdir), ENOENT); in test2()
77 char tmpdir[MAXPATHLEN]; in test3() local
81 sprintf(tmpdir, DIR_NAME_GROUP, j, child_num / NCHILD); in test3()
82 TST_EXP_PASS_SILENT(mkdir(tmpdir, MODE_RWX)); in test3()
87 sprintf(tmpdir, DIR_NAME_GROUP, j, child_num / NCHILD); in test3()
[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 …]
/external/python/setuptools/setuptools/_distutils/tests/
Dtest_archive_util.py65 tmpdir = self._create_files()
66 self._make_tarball(tmpdir, name, '.tar.gz')
68 self._make_tarball(tmpdir, name, '.tar', compress=None)
72 tmpdir = self._create_files()
73 self._make_tarball(tmpdir, 'archive', '.tar.gz', compress='gzip')
77 tmpdir = self._create_files()
78 self._make_tarball(tmpdir, 'archive', '.tar.bz2', compress='bzip2')
82 tmpdir = self._create_files()
83 self._make_tarball(tmpdir, 'archive', '.tar.xz', compress='xz')
102 def _make_tarball(self, tmpdir, target_name, suffix, **kwargs): argument
[all …]
/external/python/cpython3/Lib/distutils/tests/
Dtest_archive_util.py69 tmpdir = self._create_files()
70 self._make_tarball(tmpdir, name, '.tar.gz')
72 self._make_tarball(tmpdir, name, '.tar', compress=None)
76 tmpdir = self._create_files()
77 self._make_tarball(tmpdir, 'archive', '.tar.gz', compress='gzip')
81 tmpdir = self._create_files()
82 self._make_tarball(tmpdir, 'archive', '.tar.bz2', compress='bzip2')
86 tmpdir = self._create_files()
87 self._make_tarball(tmpdir, 'archive', '.tar.xz', compress='xz')
106 def _make_tarball(self, tmpdir, target_name, suffix, **kwargs): argument
[all …]
/external/tensorflow/tensorflow/python/data/kernel_tests/
Dsnapshot_test.py55 tmpdir = self.get_temp_dir()
56 tmpdir = os.path.join(tmpdir, "snapshot")
57 os.mkdir(tmpdir)
58 self._snapshot_dir = tmpdir
431 tmpdir = self.get_temp_dir()
432 tmpdir = os.path.join(tmpdir, "snapshot")
433 os.mkdir(tmpdir)
434 self.snapshot_dir = tmpdir
481 tmpdir = self.snapshot_dir
484 dataset = dataset.apply(snapshot.legacy_snapshot(tmpdir))
[all …]
/external/python/google-auth-library-python/tests/
Dtest__default.py161 def test_load_credentials_from_file_invalid_json(tmpdir): argument
162 jsonfile = tmpdir.join("invalid.json")
171 def test_load_credentials_from_file_invalid_type(tmpdir): argument
172 jsonfile = tmpdir.join("invalid.json")
187 def test_load_credentials_from_file_no_type(tmpdir): argument
197 def test_load_credentials_from_file_authorized_user_bad_format(tmpdir): argument
198 filename = tmpdir.join("authorized_user_bad.json")
269 def test_load_credentials_from_file_service_account_bad_format(tmpdir): argument
270 filename = tmpdir.join("serivce_account_bad.json")
282 get_project_id, tmpdir argument
[all …]
/external/armnn/python/pyarmnn/test/
Dtest_setup.py15 def _setup_armnn(tmpdir): argument
16 includes = str(os.path.join(tmpdir, 'include'))
17 libs = str(os.path.join(tmpdir, 'lib'))
50 def test_find_armnn(tmpdir): argument
57 assert [os.path.join(tmpdir, 'lib')] == lib_paths
58 assert [os.path.join(tmpdir, 'include')] == armnn_includes
61 def test_find_armnn_default_path(tmpdir): argument
67 assert [os.path.join(tmpdir, 'lib')] == lib_paths
68 assert [os.path.join(tmpdir, 'include')] == armnn_includes
71 def test_not_find_armnn(tmpdir): argument
[all …]
/external/fonttools/Tests/designspaceLib/
Ddesignspace_test.py56 def test_fill_document(tmpdir): argument
57 tmpdir = str(tmpdir)
58 testDocPath = os.path.join(tmpdir, "test_v4.designspace")
59 testDocPath5 = os.path.join(tmpdir, "test_v5.designspace")
60 masterPath1 = os.path.join(tmpdir, "masters", "masterTest1.ufo")
61 masterPath2 = os.path.join(tmpdir, "masters", "masterTest2.ufo")
62 instancePath1 = os.path.join(tmpdir, "instances", "instanceTest1.ufo")
63 instancePath2 = os.path.join(tmpdir, "instances", "instanceTest2.ufo")
214 def test_unicodes(tmpdir): argument
215 tmpdir = str(tmpdir)
[all …]
/external/toolchain-utils/rust_tools/
Drust_uprev_test.py87 tmpdir = Path(t)
88 ebuild = tmpdir / "test-1.3.4.ebuild"
90 (tmpdir / "test-1.2.3.ebuild").touch()
92 tmpdir, "test", rust_uprev.RustVersion(1, 3, 4)
98 tmpdir = Path(t)
99 ebuild = tmpdir / "test-1.2.3.ebuild"
101 result = rust_uprev.find_ebuild_path(tmpdir, "test")
106 tmpdir = Path(t)
107 ebuild = tmpdir / "test-1.3.4-r3.ebuild"
109 (tmpdir / "test-1.2.3.ebuild").touch()
[all …]
/external/autotest/client/bin/
Dlocal_host_unittest.py16 self.tmpdir = autotemp.tempdir(unique_id='localhost_unittest')
17 self.addCleanup(self.tmpdir.clean)
148 files = (os.path.join(self.tmpdir.name, 'file1'),
149 os.path.join(self.tmpdir.name, 'file2'))
157 host.list_files_glob(os.path.join(self.tmpdir.name, '*')))
161 host.list_files_glob(os.path.join(self.tmpdir.name, '*')))
168 fname = os.path.join(self.tmpdir.name, 'file')
169 sname = os.path.join(self.tmpdir.name, 'sym')
187 fname = os.path.join(self.tmpdir.name, 'file')
188 sname = os.path.join(self.tmpdir.name, 'sym')
[all …]

12345678910>>...16