Home
last modified time | relevance | path

Searched refs:env_var (Results 1 – 25 of 31) sorted by relevance

12

/third_party/benchmark/src/
Dcommandlineflags.cc115 std::string env_var; in FlagToEnvVar() local
117 env_var += static_cast<char>(::toupper(flag_str.c_str()[i])); in FlagToEnvVar()
119 return env_var; in FlagToEnvVar()
125 const std::string env_var = FlagToEnvVar(flag); in BoolFromEnv() local
126 const char* const value_str = getenv(env_var.c_str()); in BoolFromEnv()
131 const std::string env_var = FlagToEnvVar(flag); in Int32FromEnv() local
132 const char* const value_str = getenv(env_var.c_str()); in Int32FromEnv()
135 !ParseInt32(std::string("Environment variable ") + env_var, value_str, in Int32FromEnv()
143 const std::string env_var = FlagToEnvVar(flag); in DoubleFromEnv() local
144 const char* const value_str = getenv(env_var.c_str()); in DoubleFromEnv()
[all …]
/third_party/googletest/googletest/test/
Dgoogletest-env-var-test.py53 def SetEnvVar(env_var, value): argument
57 environ[env_var] = value
58 elif env_var in environ:
59 del environ[env_var]
74 env_var = 'GTEST_' + flag.upper()
75 SetEnvVar(env_var, test_val)
77 SetEnvVar(env_var, None)
Dgoogletest-throw-on-failure-test.py56 def SetEnvVar(env_var, value): argument
61 env_var = env_var.upper()
63 os.environ[env_var] = value
64 elif env_var in os.environ:
65 del os.environ[env_var]
Dgoogletest-color-test.py44 def SetEnvVar(env_var, value): argument
48 os.environ[env_var] = value
49 elif env_var in os.environ:
50 del os.environ[env_var]
Dgtest_test_utils.py62 def SetEnvVar(env_var, value): argument
66 environ[env_var] = value
67 elif env_var in environ:
68 del environ[env_var]
Dgoogletest-failfast-unittest.py80 def SetEnvVar(env_var, value): argument
84 environ[env_var] = value
85 elif env_var in environ:
86 del environ[env_var]
Dgoogletest-filter-unittest.py174 def SetEnvVar(env_var, value): argument
178 environ[env_var] = value
179 elif env_var in environ:
180 del environ[env_var]
/third_party/python/Lib/test/
Dtest_c_locale_coercion.py261 for env_var in ("LANG", "LC_CTYPE"):
266 if env_var == "LANG" and locale_to_set == "UTF-8":
269 with self.subTest(env_var=env_var,
272 var_dict[env_var] = locale_to_set
348 for env_var in ("LANG", "LC_CTYPE"):
349 with self.subTest(env_var=env_var,
353 var_dict[env_var] = locale_to_set
Dtest_cmd_line.py734 def check_pythonmalloc(self, env_var, name): argument
738 if env_var is not None:
739 env['PYTHONMALLOC'] = env_var
773 for env_var, name in tests:
774 with self.subTest(env_var=env_var, name=name):
775 self.check_pythonmalloc(env_var, name)
/third_party/python/Lib/zoneinfo/
D_tzpath.py20 env_var = os.environ.get("PYTHONTZPATH", None)
21 if env_var is not None:
22 base_tzpath = _parse_python_tzpath(env_var)
31 def _parse_python_tzpath(env_var): argument
32 if not env_var:
35 raw_tzpath = env_var.split(os.pathsep)
/third_party/vulkan-loader/tests/
Dloader_envvar_tests.cpp52 …_icd(TestICDDetails(TEST_ICD_PATH_EXPORT_NONE).set_discovery_type(ManifestDiscoveryType::env_var)); in TEST()
64 …(TestICDDetails(TEST_ICD_PATH_EXPORT_ICD_GIPA).set_discovery_type(ManifestDiscoveryType::env_var)); in TEST()
76 …T_ICD_PATH_EXPORT_NEGOTIATE_INTERFACE_VERSION).set_discovery_type(ManifestDiscoveryType::env_var)); in TEST()
85 …dd_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2).set_discovery_type(ManifestDiscoveryType::env_var)); in TEST()
97 .set_discovery_type(ManifestDiscoveryType::env_var) in TEST()
109 …_icd(TestICDDetails(TEST_ICD_PATH_EXPORT_NONE).set_discovery_type(ManifestDiscoveryType::env_var)); in TEST()
124 …_icd(TestICDDetails(TEST_ICD_PATH_EXPORT_NONE).set_discovery_type(ManifestDiscoveryType::env_var)); in TEST()
238 …_icd(TestICDDetails(TEST_ICD_PATH_EXPORT_NONE).set_discovery_type(ManifestDiscoveryType::env_var)); in TEST()
271 .set_discovery_type(ManifestDiscoveryType::env_var)); in TEST()
/third_party/mesa3d/src/mesa/main/
Dversion.c66 const char *env_var = (api == API_OPENGL_CORE || api == API_OPENGL_COMPAT) in get_gl_override() local
91 version_str = os_get_option(env_var); in get_gl_override()
99 env_var, version_str); in get_gl_override()
111 env_var, version_str); in get_gl_override()
229 const char *env_var = "MESA_GLSL_VERSION_OVERRIDE"; in _mesa_override_glsl_version() local
233 version = getenv(env_var); in _mesa_override_glsl_version()
240 fprintf(stderr, "error: invalid value for %s: %s\n", env_var, version); in _mesa_override_glsl_version()
/third_party/googletest/googletest/src/
Dgtest-port.cc1312 Message env_var; in FlagToEnvVar() local
1314 env_var << ToUpper(full_flag.c_str()[i]); in FlagToEnvVar()
1317 return env_var.GetString(); in FlagToEnvVar()
1369 const std::string env_var = FlagToEnvVar(flag); in BoolFromGTestEnv()
1370 const char* const string_value = posix::GetEnv(env_var.c_str()); in BoolFromGTestEnv()
1383 const std::string env_var = FlagToEnvVar(flag); in Int32FromGTestEnv()
1384 const char* const string_value = posix::GetEnv(env_var.c_str()); in Int32FromGTestEnv()
1391 if (!ParseInt32(Message() << "Environment variable " << env_var, in Int32FromGTestEnv()
1426 const std::string env_var = FlagToEnvVar(flag); in StringFromGTestEnv()
1427 const char* const value = posix::GetEnv(env_var.c_str()); in StringFromGTestEnv()
Dgtest-internal-inl.h275 GTEST_API_ int32_t Int32FromEnvOrDie(const char* env_var, int32_t default_val);
/third_party/mesa3d/src/gtest/src/
Dgtest-port.cc1278 Message env_var; in FlagToEnvVar() local
1280 env_var << ToUpper(full_flag.c_str()[i]); in FlagToEnvVar()
1283 return env_var.GetString(); in FlagToEnvVar()
1335 const std::string env_var = FlagToEnvVar(flag); in BoolFromGTestEnv()
1336 const char* const string_value = posix::GetEnv(env_var.c_str()); in BoolFromGTestEnv()
1349 const std::string env_var = FlagToEnvVar(flag); in Int32FromGTestEnv()
1350 const char* const string_value = posix::GetEnv(env_var.c_str()); in Int32FromGTestEnv()
1357 if (!ParseInt32(Message() << "Environment variable " << env_var, in Int32FromGTestEnv()
1392 const std::string env_var = FlagToEnvVar(flag); in StringFromGTestEnv()
1393 const char* const value = posix::GetEnv(env_var.c_str()); in StringFromGTestEnv()
Dgtest-internal-inl.h266 GTEST_API_ Int32 Int32FromEnvOrDie(const char* env_var, Int32 default_val);
/third_party/libuv/src/win/
Dutil.c230 WCHAR drive_letter, env_var[4]; in uv_chdir() local
309 env_var[0] = L'='; in uv_chdir()
310 env_var[1] = drive_letter; in uv_chdir()
311 env_var[2] = L':'; in uv_chdir()
312 env_var[3] = L'\0'; in uv_chdir()
314 SetEnvironmentVariableW(env_var, utf16_buffer); in uv_chdir()
/third_party/gstreamer/gstreamer/gst/
Dgstplugin.c1530 gchar env_var[256]; in gst_plugin_ext_dep_get_env_vars_hash() local
1544 g_strlcpy (env_var, *e, sizeof (env_var)); in gst_plugin_ext_dep_get_env_vars_hash()
1545 g_strdelimit (env_var, "/\\", '\0'); in gst_plugin_ext_dep_get_env_vars_hash()
1547 if ((val = g_getenv (env_var))) in gst_plugin_ext_dep_get_env_vars_hash()
/third_party/vulkan-loader/tests/framework/
Dtest_environment.cpp210 if (icd_details.discovery_type == ManifestDiscoveryType::env_var || in add_icd()
235 case (ManifestDiscoveryType::env_var): in add_icd()
285 case (ManifestDiscoveryType::env_var): in add_layer_impl()
Dtest_environment.h309 env_var, // use the corresponding env-var for it enumerator
/third_party/gn/src/gn/
Drust_project_writer.cc342 for (const auto& env_var : target->config_values().rustenv()) { in AddTarget() local
344 env_var, "=", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL); in AddTarget()
/third_party/gstreamer/gstreamer/libs/gst/check/
Dgstcheck.c1153 gst_check_func_is_in_list (const gchar * env_var, const gchar * func_name) in gst_check_func_is_in_list() argument
1159 gst_checks = g_getenv (env_var); in gst_check_func_is_in_list()
/third_party/rust/crates/clap/clap_derive/src/
Ditem.rs1214 fn from_env(ident: Ident, env_var: &str) -> Option<Self> { in from_env()
1215 let mut lit = match env::var(env_var) { in from_env()
1225 note = "`{}` environment variable is not set", env_var; in from_env()
/third_party/cef/tools/distrib/gtest/
Dgtest-all.cc663 GTEST_API_ int32_t Int32FromEnvOrDie(const char* env_var, int32_t default_val);
11640 Message env_var; in FlagToEnvVar() local
11642 env_var << ToUpper(full_flag.c_str()[i]); in FlagToEnvVar()
11645 return env_var.GetString(); in FlagToEnvVar()
11697 const std::string env_var = FlagToEnvVar(flag); in BoolFromGTestEnv()
11698 const char* const string_value = posix::GetEnv(env_var.c_str()); in BoolFromGTestEnv()
11711 const std::string env_var = FlagToEnvVar(flag); in Int32FromGTestEnv()
11712 const char* const string_value = posix::GetEnv(env_var.c_str()); in Int32FromGTestEnv()
11719 if (!ParseInt32(Message() << "Environment variable " << env_var, in Int32FromGTestEnv()
11754 const std::string env_var = FlagToEnvVar(flag); in StringFromGTestEnv()
[all …]
/third_party/icu/icu4c/source/test/cintltst/
Dcloctst.c6993 char *env_var = getenv("LANG"); in TestCDefaultLocale() local
6994 if (env_var == NULL) { in TestCDefaultLocale()
6998 …if ((strcmp(env_var, "C") == 0 || strcmp(env_var, "C.UTF-8") == 0) && strcmp(defaultLocale, "en_US… in TestCDefaultLocale()
6999 … log_err("The default locale for LANG=%s should be en_US_POSIX, not %s\n", env_var, defaultLocale); in TestCDefaultLocale()

12