Home
last modified time | relevance | path

Searched +full:env +full:- +full:paths (Results 1 – 25 of 1091) sorted by relevance

12345678910>>...44

/aosp_15_r20/external/bazel-skylib/tests/
H A Dpaths_tests.bzl7 # http://www.apache.org/licenses/LICENSE-2.0
15 """Unit tests for paths.bzl."""
17 load("//lib:paths.bzl", "paths")
21 """Unit tests for paths.basename."""
22 env = unittest.begin(ctx)
25 asserts.equals(env, "", paths.basename(""))
26 asserts.equals(env, "", paths.basename("/"))
27 asserts.equals(env, "bar", paths.basename("foo///bar"))
30 asserts.equals(env, "foo", paths.basename("foo"))
31 asserts.equals(env, "foo", paths.basename("/foo"))
[all …]
/aosp_15_r20/external/python/setuptools/setuptools/tests/
Dtest_egg_info.py50 def _extract_mv_version(pkg_info_lines: List[str]) -> Tuple[int, int]:
55 def env(self): member in TestEggInfo
56 with contexts.tempdir(prefix='setuptools-test.') as env_dir:
57 env = Environment(env_dir)
59 subs = 'home', 'lib', 'scripts', 'data', 'egg-base'
60 env.paths = dict(
64 list(map(os.mkdir, env.paths.values()))
66 env.paths['home']: {
69 egg-base = %(egg-base)s
70 """ % env.paths)
[all …]
/aosp_15_r20/build/bazel/rules/cc/
H A Dcc_proto_test.bzl7 http://www.apache.org/licenses/LICENSE-2.0
16 load("@bazel_skylib//lib:paths.bzl", "paths")
23 RUNFILES = "_middlemen/external_Sprotobuf_Sbin_Saprotoc_Saprotoc-runfiles"
35 if cmd[i].startswith("-I"):
36 sets.insert(search_paths, cmd[i].lstrip("- I"))
41 env = analysistest.begin(ctx)
42 target_under_test = analysistest.target_under_test(env)
43 actions = analysistest.target_actions(env)
45 local_file_output_path = paths.join(
63 env,
[all …]
H A Dcc_hidl_library_test.bzl7 http://www.apache.org/licenses/LICENSE-2.0
16 load("@bazel_skylib//lib:paths.bzl", "paths")
24 HIDL_GEN = "prebuilts/build-tools/linux-x86/bin/hidl-gen"
67 env = analysistest.begin(ctx)
68 actions = analysistest.target_actions(env)
69 package_root = paths.dirname(ctx.build_file_path)
72 env,
80 env,
82 paths.join(package_root, SRC_TYPE_NAME_1),
83 paths.join(package_root, SRC_INTERFACE_NAME_1),
[all …]
H A Drscript_to_cpp_test.bzl5 http://www.apache.org/licenses/LICENSE-2.0
14 load("@bazel_skylib//lib:paths.bzl", "paths")
28 env = analysistest.begin(ctx)
29 actions = analysistest.target_actions(env)
32 asserts.true(env, len(args) >= 6)
33 expected_output_path = paths.join(
34 analysistest.target_bin_dir_path(env),
38 env,
39 get_arg_value(args, "-o"),
41 "Argument -o not found or had unexpected value. Expected {} got {}"
[all …]
H A Dcc_aidl_library_test.bzl7 # http://www.apache.org/licenses/LICENSE-2.0
16 load("@bazel_skylib//lib:paths.bzl", "paths")
29 env = analysistest.begin(ctx)
30 actions = analysistest.target_actions(env)
32 env,
36 cc_aidl_code_gen_target = analysistest.target_under_test(env)
41 aidl_input_path_template = paths.join(
53 env,
59 output_path = paths.join(
67 paths.join(output_path, "a/b/BpA.h"),
[all …]
/aosp_15_r20/build/bazel/rules/abi/
H A Dabi_dump_test.bzl7 # http://www.apache.org/licenses/LICENSE-2.0
15 load("@bazel_skylib//lib:paths.bzl", "paths")
23 ABI_LINKER = "prebuilts/clang-tools/linux-x86/bin/header-abi-linker"
24 ABI_DIFF = "prebuilts/clang-tools/linux-x86/bin/header-abi-diff"
29 REF_DUMPS_HOME = "build/bazel/rules/abi/abi-dumps"
43 env = analysistest.begin(ctx)
44 bin_home = analysistest.target_bin_dir_path(env)
45 bazel_out_base = paths.join(bin_home, ctx.label.package)
47 actions = analysistest.target_actions(env)
51 env,
[all …]
/aosp_15_r20/build/make/tools/ide_query/
H A Dide_query.go8 * http://www.apache.org/licenses/LICENSE-2.0
40 // Env contains information about the current environment.
41 type Env struct { struct
49 // Input format: <product_name>-<release_type>-<build_variant>
65 parts := strings.Split(s, "-")
67 …return fmt.Errorf("invalid lunch target: %q, must have form <product_name>-<release_type>-<build_v…
79 return fmt.Sprintf("%s-%s-%s", l.Product, l.Release, l.Variant)
83 var env Env
84 env.OutDir = strings.TrimSuffix(os.Getenv("OUT_DIR"), "/")
85 env.RepoDir = os.Getenv("ANDROID_BUILD_TOP")
[all …]
/aosp_15_r20/build/bazel/rules/aidl/
H A Daidl_library_test.bzl7 http://www.apache.org/licenses/LICENSE-2.0
16 load("@bazel_skylib//lib:paths.bzl", "paths")
23 env = analysistest.begin(ctx)
24 target_under_test = analysistest.target_under_test(env)
27 env,
34paths.join(ctx.genfiles_dir.path, PACKAGE_ROOT, "_virtual_imports", "include_dirs_transitivity"),
35paths.join(ctx.genfiles_dir.path, PACKAGE_ROOT, "_virtual_imports", "include_dirs_transitivity_dep…
40 return analysistest.end(env)
68 env = analysistest.begin(ctx)
69 target_under_test = analysistest.target_under_test(env)
[all …]
H A Daidl_interface_test.bzl7 http://www.apache.org/licenses/LICENSE-2.0
17 load("@bazel_skylib//lib:paths.bzl", "paths")
25 env = analysistest.begin(ctx)
26 actions = analysistest.target_actions(env)
28 env,
32 cc_aidl_code_gen_target = analysistest.target_under_test(env)
34 # output_path: <bazel-bin>/<package-dir>/<cc_aidl_library-labelname>_aidl_code_gen
35 # Since cc_aidl_library-label is unique among cpp and ndk backends,
37 output_path = paths.join(
45 paths.join(output_path, "aidl/b/BpFoo.h"),
[all …]
/aosp_15_r20/prebuilts/go/linux-x86/src/cmd/go/testdata/script/
Dbuild_trimpath.txt3 # If GOROOT is set, 'go build -trimpath' bakes that into the resulting
5 env GOROOT=
8 env GO111MODULE=on
9 mkdir $WORK/a/src/paths $WORK/b/src/paths
10 cp paths.go $WORK/a/src/paths
11 cp paths.go $WORK/b/src/paths
12 cp overlay.json $WORK/a/src/paths
13 cp overlay.json $WORK/b/src/paths
14 cp go.mod $WORK/a/src/paths/
15 cp go.mod $WORK/b/src/paths/
[all …]
/aosp_15_r20/tools/asuite/atest/integration_tests/
H A Dsnapshot.py1 #!/usr/bin/env python3
9 # http://www.apache.org/licenses/LICENSE-2.0
20 - Take snapshots of a directory, including or excluding specified paths.
21 - Preserve environment variables.
22 - Restore the directory state from previously taken snapshots, managing file and
38 """Ensures thread-safe execution of the wrapped function."""
77 # pylint: disable=too-many-arguments
85 env: Optional[dict[str, str]] = None,
87 ) -> None:
93 include_paths: A list of relative paths to include in the snapshot.
[all …]
H A Dsplit_build_test_script.py1 #!/usr/bin/env python3
9 # http://www.apache.org/licenses/LICENSE-2.0
49 # Env key for the storage tar path.
52 # Env key for the repo root
71 def __init__(self, env, repo_root, config, objs): argument
72 self._env = env
77 def get_device_serial_args_or_empty(self) -> str:
79 # TODO: b/336839543 - Remove this method when we deprecate the support to
82 return ' -s ' + self._config.device_serial
92 def get_device_serial(self) -> str:
[all …]
/aosp_15_r20/external/python/cpython3/Lib/test/
Dtest_embed.py55 env = dict(os.environ)
57 for key in list(env):
59 del env[key]
60 return env
85 def run_embedded_interpreter(self, *args, env=None, argument
91 if env is not None and MS_WINDOWS:
94 env = env.copy()
95 env['SYSTEMROOT'] = os.environ['SYSTEMROOT']
101 env=env,
110 print(f"--- {cmd} failed ---")
[all …]
/aosp_15_r20/development/scripts/
H A Dupdate_crate_tests.py1 #!/usr/bin/env python3
9 # http://www.apache.org/licenses/LICENSE-2.0
24 $ lunch aosp_arm64-eng
53 "ring_test_tests_digest_tests": [{"test-timeout": "600000"}],
54 "ring_test_src_lib": [{"test-timeout": "100000"}],
58 # "presubmit-rust" runs arm64 device tests on physical devices.
61 "presubmit-rust",
87 "libtrusty-rs-tests",
88 "terminal-size_test_src_lib",
95 "//external/libchromeos-rs",
[all …]
/aosp_15_r20/prebuilts/cmake/linux-x86/share/cmake-3.22/Modules/
DFindSDL_sound.cmake1 # Distributed under the OSI-approved BSD 3-Clause License. See accompanying
6 -------------
27 SDL_SOUND_VERSION_STRING, human-readable string containing the
75 would correspond to the ./configure --prefix=$SDLDIR used in building
81 to modify the search paths.
90 ENV SDLSOUNDDIR
91 ENV SDLDIR
93 # path suffixes to search inside ENV{SDLDIR}
100 ENV SDLSOUNDDIR
101 ENV SDLDIR
[all …]
/aosp_15_r20/build/bazel/rules/tradefed/
H A Dtradefed_test.bzl7 # http://www.apache.org/licenses/LICENSE-2.0
15 load("@bazel_skylib//lib:paths.bzl", "paths")
21 "//build/bazel/rules/test_common:paths.bzl",
27 env = analysistest.begin(ctx)
28 actions = analysistest.target_actions(env)
36 expected_output = get_output_and_package_dir_based_path(env, expected_output)
38 env,
43 return analysistest.end(env)
81 "result-reporters.xml",
82 paths.join(name, "testcases", target + ".config"),
[all …]
/aosp_15_r20/external/rust/android-crates-io/crates/which/src/
Dlib.rs25 use std::env;
56 pub fn which<T: AsRef<OsStr>>(binary_name: T) -> Result<path::PathBuf> { in which()
64 /// Does not resolve relative paths.
80 pub fn which_global<T: AsRef<OsStr>>(binary_name: T) -> Result<path::PathBuf> { in which_global()
84 /// Find all binaries with `binary_name` using `cwd` to resolve relative paths.
85 pub fn which_all<T: AsRef<OsStr>>(binary_name: T) -> Result<impl Iterator<Item = path::PathBuf>> { in which_all()
86 let cwd = env::current_dir().ok(); in which_all()
92 finder.find(binary_name, env::var_os("PATH"), cwd, binary_checker) in which_all()
98 ) -> Result<impl Iterator<Item = path::PathBuf>> { in which_all_global()
105 env::var_os("PATH"), in which_all_global()
[all …]
/aosp_15_r20/external/pigweed/pw_presubmit/py/pw_presubmit/
H A Dpresubmit_context.py7 # https://www.apache.org/licenses/LICENSE-2.0
41 import pw_cli.env
62 def load(env: dict[str, str] | None = None) -> FormatOptions:
63 config = pw_env_setup.config_file.load(env=env)
71 def filter_paths(self, paths: Iterable[Path]) -> tuple[Path, ...]:
72 root = Path(pw_cli.env.pigweed_environment().PW_PROJECT_ROOT)
73 relpaths = [x.relative_to(root) for x in paths]
80 def get_buildbucket_info(bbid) -> dict[str, Any]:
85 ['bb', 'get', '-json', '-p', f'{bbid}'], text=True
95 round: The zero-indexed round number.
[all …]
/aosp_15_r20/prebuilts/rust/linux-x86/1.80.1/lib/rustlib/src/rust/library/std/src/
H A Denv.rs11 #![stable(feature = "env", since = "1.0.0")]
26 /// # Platform-specific behavior
31 /// [currently]: crate::io#platform-specific-behavior
44 /// use std::env;
46 /// fn main() -> std::io::Result<()> {
47 /// let path = env::current_dir()?;
55 #[stable(feature = "env", since = "1.0.0")]
56 pub fn current_dir() -> io::Result<PathBuf> { in current_dir()
62 /// # Platform-specific behavior
69 /// [currently]: crate::io#platform-specific-behavior
[all …]
/aosp_15_r20/prebuilts/rust/linux-musl-x86/1.80.1/lib/rustlib/src/rust/library/std/src/
H A Denv.rs11 #![stable(feature = "env", since = "1.0.0")]
26 /// # Platform-specific behavior
31 /// [currently]: crate::io#platform-specific-behavior
44 /// use std::env;
46 /// fn main() -> std::io::Result<()> {
47 /// let path = env::current_dir()?;
55 #[stable(feature = "env", since = "1.0.0")]
56 pub fn current_dir() -> io::Result<PathBuf> { in current_dir()
62 /// # Platform-specific behavior
69 /// [currently]: crate::io#platform-specific-behavior
[all …]
/aosp_15_r20/prebuilts/rust/linux-musl-x86/1.81.0/lib/rustlib/src/rust/library/std/src/
H A Denv.rs11 #![stable(feature = "env", since = "1.0.0")]
26 /// # Platform-specific behavior
31 /// [currently]: crate::io#platform-specific-behavior
44 /// use std::env;
46 /// fn main() -> std::io::Result<()> {
47 /// let path = env::current_dir()?;
55 #[stable(feature = "env", since = "1.0.0")]
56 pub fn current_dir() -> io::Result<PathBuf> { in current_dir()
62 /// # Platform-specific behavior
69 /// [currently]: crate::io#platform-specific-behavior
[all …]
/aosp_15_r20/prebuilts/rust/linux-x86/1.81.0.u1/lib/rustlib/src/rust/library/std/src/
H A Denv.rs11 #![stable(feature = "env", since = "1.0.0")]
26 /// # Platform-specific behavior
31 /// [currently]: crate::io#platform-specific-behavior
44 /// use std::env;
46 /// fn main() -> std::io::Result<()> {
47 /// let path = env::current_dir()?;
55 #[stable(feature = "env", since = "1.0.0")]
56 pub fn current_dir() -> io::Result<PathBuf> { in current_dir()
62 /// # Platform-specific behavior
69 /// [currently]: crate::io#platform-specific-behavior
[all …]
/aosp_15_r20/prebuilts/rust/linux-x86/1.81.0/lib/rustlib/src/rust/library/std/src/
H A Denv.rs11 #![stable(feature = "env", since = "1.0.0")]
26 /// # Platform-specific behavior
31 /// [currently]: crate::io#platform-specific-behavior
44 /// use std::env;
46 /// fn main() -> std::io::Result<()> {
47 /// let path = env::current_dir()?;
55 #[stable(feature = "env", since = "1.0.0")]
56 pub fn current_dir() -> io::Result<PathBuf> { in current_dir()
62 /// # Platform-specific behavior
69 /// [currently]: crate::io#platform-specific-behavior
[all …]
/aosp_15_r20/external/bazelbuild-rules_cc/cc/private/toolchain/
H A Dwindows_cc_configure.bzl1 # pylint: disable=g-bad-file-header
8 # http://www.apache.org/licenses/LICENSE-2.0
35 if len(value) == 1 or value[-1] != "\"":
37 value = value[1:-1]
40 if value[-1] == "\\":
66 msys_root = tokens[0][:len(tokens[0]) - len("usr/bin")]
68 msys_root = tokens[0][:len(tokens[0]) - len("bin")]
75 …for tool in ["ar", "compat-ld", "cpp", "dwp", "gcc", "gcov", "ld", "nm", "objcopy", "objdump", "st…
85 """Get System root path on Windows, default is C:\\Windows. Doesn't %-escape the result."""
95 def _add_system_root(repository_ctx, env):
[all …]

12345678910>>...44