Lines Matching refs:config
35 #include "config.hpp"
69 namespace config {
123 ATF_REQUIRE_EQ(tools::config::get(v->lc), test_value);
125 ATF_REQUIRE(tools::config::get(v->lc) != test_value);
136 set_md_var("descr", "Tests the config::get function");
143 tools::config::__reinit();
145 ATF_REQUIRE(tools::config::get(v->lc) != test_value);
150 if (!tools::config::get(v->lc).empty()) {
152 tools::config::__reinit();
154 ATF_REQUIRE(tools::config::get(v->lc).empty());
156 ATF_REQUIRE(!tools::config::get(v->lc).empty());
164 tools::config::__reinit();
172 set_md_var("descr", "Tests the config::get_all function");
176 tools::config::__reinit();
179 std::map< std::string, std::string > vars = tools::config::get_all();
188 set_md_var("descr", "Tests the config::has function");
192 tools::config::__reinit();
196 ATF_REQUIRE(tools::config::has(v->lc));
200 ATF_REQUIRE(!tools::config::has(v->uc));
203 ATF_REQUIRE(!tools::config::has("foo"));
204 ATF_REQUIRE(!tools::config::has("BAR"));
205 ATF_REQUIRE(!tools::config::has("atf_foo"));
206 ATF_REQUIRE(!tools::config::has("ATF_BAR"));
207 ATF_REQUIRE(!tools::config::has("atf_shel"));
208 ATF_REQUIRE(!tools::config::has("atf_shells"));