Lines Matching defs:config
29 #include "engine/config.hpp"
32 # include "config.h"
43 #include "utils/config/tree.ipp"
46 namespace config = utils::config;
68 /// Checks that the default values of a config object match our expectations.
70 /// This fails the test case if any field of the input config object is not
73 /// \param config The configuration to validate.
75 validate_defaults(const config::tree& config)
79 config.lookup< config::string_node >("architecture"));
83 config.lookup< config::positive_int_node >("parallelism"));
87 config.lookup< config::string_node >("platform"));
89 ATF_REQUIRE(!config.is_set("unprivileged_user"));
91 ATF_REQUIRE(config.all_properties("test_suites").empty());
101 const config::tree user_config = engine::default_config();
109 config::tree user_config = engine::default_config();
112 config::error, "parallelism.*Must be a positive integer",
115 config::error, "parallelism.*Must be a positive integer",
123 atf::utils::create_file("config", "syntax(2)\n");
125 const config::tree user_config = engine::load_config(fs::path("config"));
136 "config",
144 const config::tree user_config = engine::load_config(fs::path("config"));
158 config::properties_map exp_test_suites;
168 atf::utils::create_file("config", "this syntax is invalid\n");
171 fs::path("config")));
178 atf::utils::create_file("config", "syntax(123)\n");
181 "Unsupported config version 123",
182 engine::load_config(fs::path("config")));