Home
last modified time | relevance | path

Searched refs:env_var (Results 1 – 25 of 39) 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/boost/libs/proto/test/
Denv_var.cpp192 …BOOST_MPL_ASSERT((boost::is_same<proto::result_of::env_var<env0_type, proto::data_type>::type, pro… in test_result_of_env_var()
193 …BOOST_MPL_ASSERT((boost::is_same<proto::result_of::env_var<env0_type &, proto::data_type>::type, p… in test_result_of_env_var()
194 …BOOST_MPL_ASSERT((boost::is_same<proto::result_of::env_var<env0_type const &, proto::data_type>::t… in test_result_of_env_var()
197 …BOOST_MPL_ASSERT((boost::is_same<proto::result_of::env_var<env1_type, proto::data_type>::type, int… in test_result_of_env_var()
198 …BOOST_MPL_ASSERT((boost::is_same<proto::result_of::env_var<env1_type &, proto::data_type>::type, i… in test_result_of_env_var()
199 …BOOST_MPL_ASSERT((boost::is_same<proto::result_of::env_var<env1_type const &, proto::data_type>::t… in test_result_of_env_var()
202 …BOOST_MPL_ASSERT((boost::is_same<proto::result_of::env_var<env2_type, proto::data_type>::type, int… in test_result_of_env_var()
203 …BOOST_MPL_ASSERT((boost::is_same<proto::result_of::env_var<env2_type &, proto::data_type>::type, i… in test_result_of_env_var()
204 …BOOST_MPL_ASSERT((boost::is_same<proto::result_of::env_var<env2_type const &, proto::data_type>::t… in test_result_of_env_var()
207 …BOOST_MPL_ASSERT((boost::is_same<proto::result_of::env_var<env3_type, proto::data_type>::type, dou… in test_result_of_env_var()
[all …]
DJamfile.v232 [ run env_var.cpp ]
/third_party/json/benchmarks/thirdparty/benchmark/src/
Dcommandlineflags.cc84 std::string env_var; in FlagToEnvVar() local
86 env_var += static_cast<char>(::toupper(flag_str.c_str()[i])); in FlagToEnvVar()
88 return "BENCHMARK_" + env_var; in FlagToEnvVar()
96 const std::string env_var = FlagToEnvVar(flag); in BoolFromEnv() local
97 const char* const string_value = getenv(env_var.c_str()); in BoolFromEnv()
106 const std::string env_var = FlagToEnvVar(flag); in Int32FromEnv() local
107 const char* const string_value = getenv(env_var.c_str()); in Int32FromEnv()
114 if (!ParseInt32(std::string("Environment variable ") + env_var, string_value, in Int32FromEnv()
126 const std::string env_var = FlagToEnvVar(flag); in StringFromEnv() local
127 const char* const value = getenv(env_var.c_str()); in StringFromEnv()
/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/boost/libs/program_options/example/
Denv_options.cpp11 std::string mapper(std::string env_var) in mapper() argument
14 std::transform(env_var.begin(), env_var.end(), env_var.begin(), ::toupper); in mapper()
16 if (env_var == "PATH") return "path"; in mapper()
17 if (env_var == "EXAMPLE_VERBOSE") return "verbosity"; in mapper()
Doptions_heirarchy.cpp228 std::string EnvironmentMapper(std::string env_var) in EnvironmentMapper() argument
231 std::transform(env_var.begin(), env_var.end(), env_var.begin(), ::toupper); in EnvironmentMapper()
233 auto entry = env_to_option.find(env_var); in EnvironmentMapper()
/third_party/boost/boost/proto/transform/
Denv.hpp307 struct env_var struct
308 : detail::poly_function<env_var<Key> >
327 struct env_var<data_type> struct
328 : detail::poly_function<env_var<data_type> >
371 struct env_var struct
372 : BOOST_PROTO_RESULT_OF<functional::env_var<Key>(Env)>
407 …typename proto::result_of::env_var<Env &, Key>::type env_var(Env &e BOOST_PROTO_DISABLE_IF_IS_CONS… in env_var() function
409 return functional::env_var<Key>()(e); in env_var()
413 typename proto::result_of::env_var<Env const &, Key>::type env_var(Env const &e) in env_var() function
415 return functional::env_var<Key>()(e); in env_var()
[all …]
Dwhen.hpp190 , proto::result_of::env_var<Data, transforms_type>
191 , proto::result_of::env_var<Data, data_type>
/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/boost/boost/test/impl/
Dunit_test_parameters.ipp112 rt::env_var = "BOOST_TEST_AUTO_START_DBG",
130 rt::env_var = "BOOST_TEST_BREAK_EXEC_PATH"
146 rt::env_var = "BOOST_TEST_BUILD_INFO",
159 rt::env_var = "BOOST_TEST_CATCH_SYSTEM_ERRORS",
184 rt::env_var = "BOOST_TEST_COLOR_OUTPUT",
198 rt::env_var = "BOOST_TEST_DETECT_FP_EXCEPTIONS",
210 rt::env_var = "BOOST_TEST_DETECT_MEMORY_LEAK",
229 rt::env_var = "BOOST_TEST_LIST_CONTENT",
257 rt::env_var = "BOOST_TEST_LIST_LABELS",
269 rt::env_var = "BOOST_TEST_LOG_FORMAT",
[all …]
/third_party/boost/boost/compute/detail/
Dgetenv.hpp20 inline const char* getenv(const char *env_var) in getenv() argument
26 return std::getenv(env_var); in getenv()
/third_party/boost/libs/compute/include/boost/compute/detail/
Dgetenv.hpp20 inline const char* getenv(const char *env_var) in getenv() argument
26 return std::getenv(env_var); in getenv()
/third_party/mesa3d/src/mesa/main/
Dversion.c64 const char *env_var = (api == API_OPENGL_CORE || api == API_OPENGL_COMPAT) in get_gl_override() local
89 version_str = os_get_option(env_var); in get_gl_override()
97 env_var, version_str); in get_gl_override()
109 env_var, version_str); in get_gl_override()
227 const char *env_var = "MESA_GLSL_VERSION_OVERRIDE"; in _mesa_override_glsl_version() local
231 version = getenv(env_var); in _mesa_override_glsl_version()
238 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()
/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()
/third_party/boost/boost/test/utils/runtime/
Dmodifier.hpp48 auto const& env_var = unit_test::static_constant<nfp::typed_keyword<cstring,struct env_var_… variable
65 nfp::typed_keyword<cstring,struct env_var_t> env_var;
/third_party/boost/libs/test/test/utils-ts/
Druntime-param-test.cpp159 rt::env_var = "E2" in BOOST_AUTO_TEST_CASE()
171 rt::env_var = "E4" in BOOST_AUTO_TEST_CASE()
183 rt::env_var = "E5" in BOOST_AUTO_TEST_CASE()
196 rt::env_var = "E6", in BOOST_AUTO_TEST_CASE()
942 rt::parameter<int> p1( "P1", rt::env_var = "P1VAR"); in BOOST_AUTO_TEST_CASE()
945 rt::option p2( "P2", rt::env_var = "P2VAR"); in BOOST_AUTO_TEST_CASE()

12