Lines Matching +full:- +full:tools +full:-

48 namespace impl = tools;
56 has_program(const tools::fs::path& program) in has_program()
61 found = tools::fs::is_executable(program); in has_program()
68 const std::vector< std::string > dirs = tools::text::split( in has_program()
69 tools::env::get("PATH"), ":"); in has_program()
72 const tools::fs::path& p = tools::fs::path(*iter) / program; in has_program()
73 if (tools::fs::is_executable(p)) in has_program()
85 const std::vector< std::string > v = tools::text::split(arches, " "); in check_arch()
89 if ((*iter) == tools::config::get("atf_arch")) in check_arch()
103 const std::vector< std::string > v = tools::text::split(variables, " "); in check_config()
117 const std::vector< std::string > v = tools::text::split(progs, " "); in check_files()
120 const tools::fs::path file(*iter); in check_files()
124 if (!tools::fs::exists(file)) in check_files()
134 const std::vector< std::string > v = tools::text::split(machines, " "); in check_machine()
138 if ((*iter) == tools::config::get("atf_machine")) in check_machine()
152 const int64_t needed = tools::text::to_bytes(raw_memory); in check_memory()
157 NULL, 0) == -1) { in check_memory()
163 return "Not enough memory; needed " + tools::text::to_string(needed) + in check_memory()
164 ", available " + tools::text::to_string(available); in check_memory()
173 const std::vector< std::string > v = tools::text::split(progs, " "); in check_progs()
176 if (!has_program(tools::fs::path(*iter))) in check_progs()
187 if (!tools::user::is_root()) in check_user()
192 if (tools::user::is_root()) { in check_user()
194 "unprivileged-user"); in check_user()
197 "'unprivileged-user' configuration variable is not set"; in check_user()
201 (void)tools::user::get_user_ids(unprivileged_user); in check_user()
227 assert(!value.empty()); // Enforced by application/X-atf-tp parser. in check_requirements()
245 // application/X-atf-tp parser. in check_requirements()
260 return std::make_pair(-1, -1); in get_required_user()
263 if (tools::user::is_root()) { in get_required_user()
265 "unprivileged-user"); in get_required_user()
267 return tools::user::get_user_ids((*iter).second); in get_required_user()
272 return std::make_pair(-1, -1); in get_required_user()
275 return std::make_pair(-1, -1); in get_required_user()