Home
last modified time | relevance | path

Searched refs:model (Results 1 – 25 of 1901) sorted by relevance

12345678910>>...77

/freebsd/contrib/kyua/model/
H A Dtest_result_test.cpp60 ATF_REQUIRE_EQ(expected, model::test_result(result_type).good()); \
82 model::test_result_broken,
84 model::test_result(model::test_result_broken, "The reason"));
87 model::test_result_expected_failure,
89 model::test_result(model::test_result_expected_failure, "The reason"));
92 model::test_result_failed,
94 model::test_result(model::test_result_failed, "The reason"));
97 model::test_result_passed,
99 model::test_result(model::test_result_passed));
102 model::test_result_skipped,
[all …]
H A Dtest_case_test.cpp49 const model::metadata md = model::metadata_builder() in ATF_TEST_CASE_BODY()
52 const model::test_case test_case("foo", md); in ATF_TEST_CASE_BODY()
62 const model::test_result result(model::test_result_skipped, in ATF_TEST_CASE_BODY()
64 const model::test_case test_case("__foo__", "Some description", result); in ATF_TEST_CASE_BODY()
68 const model::metadata exp_metadata = model::metadata_builder() in ATF_TEST_CASE_BODY()
79 const model::metadata overrides = model::metadata_builder() in ATF_TEST_CASE_BODY()
83 const model::test_case base_test_case("foo", overrides); in ATF_TEST_CASE_BODY()
85 const model::metadata defaults = model::metadata_builder() in ATF_TEST_CASE_BODY()
90 const model::test_case test_case = base_test_case.apply_metadata_defaults( in ATF_TEST_CASE_BODY()
93 const model::metadata expected = model::metadata_builder() in ATF_TEST_CASE_BODY()
[all …]
H A Dtest_program_test.cpp65 class lazy_test_program : public model::test_program {
73 model::test_cases_map _lazy_test_cases;
88 const model::metadata& metadata_, in lazy_test_program()
89 const model::test_cases_map& test_cases_) : in lazy_test_program()
91 metadata_, model::test_cases_map()), in lazy_test_program()
100 const model::test_cases_map&
123 const model::metadata tp_md = model::metadata_builder() in check_ctor_and_getters()
127 const model::metadata tc_md = model::metadata_builder() in check_ctor_and_getters()
133 model::test_cases_map_builder().add("foo", tc_md).build()); in check_ctor_and_getters()
144 const model::metadata exp_tc_md = model::metadata_builder() in check_ctor_and_getters()
[all …]
H A Dmetadata.cpp272 model::strings_set()); in set_defaults()
274 model::strings_set()); in set_defaults()
281 model::strings_set()); in set_defaults()
283 tree.set< paths_set_node >("required_files", model::paths_set()); in set_defaults()
285 tree.set< paths_set_node >("required_programs", model::paths_set()); in set_defaults()
326 throw model::error(F("Unknown metadata property %s") % key); in lookup_rw()
328 throw model::error(F("Invalid value for metadata property %s: %s") % in lookup_rw()
350 throw model::error(F("Unknown metadata property %s") % key); in set()
352 throw model::error(F("Invalid value for metadata property %s: %s") % in set()
362 struct model::metadata::impl : utils::noncopyable {
[all …]
H A Dtest_program.cpp52 struct model::test_program::impl : utils::noncopyable {
66 model::metadata md;
71 model::test_cases_map test_cases;
84 const model::metadata& md_, const model::test_cases_map& test_cases_) : in impl()
102 set_test_cases(const model::test_cases_map& test_cases_) in set_test_cases()
104 for (model::test_cases_map::const_iterator iter = test_cases_.begin(); in set_test_cases()
107 const model::test_case& test_case = (*iter).second; in set_test_cases()
113 test_cases.insert(model::test_cases_map::value_type( in set_test_cases()
129 model::test_program::test_program(const std::string& interface_name_, in test_program()
133 const model::metadata& md_, in test_program()
[all …]
H A Dtest_case.cpp45 struct model::test_case::impl : utils::noncopyable {
55 const model::metadata* md_defaults;
58 model::metadata md;
61 optional< model::test_result > fake_result;
71 const model::metadata* md_defaults_, in impl()
72 const model::metadata& md_, in impl()
73 const optional< model::test_result >& fake_result_) : in impl()
87 model::metadata
115 model::test_case::test_case(std::shared_ptr< impl > pimpl_) : in test_case()
125 model::test_case::test_case(const std::string& name_, in test_case()
[all …]
H A Dmetadata_test.cpp49 const model::metadata md = model::metadata_builder().build(); in ATF_TEST_CASE_BODY()
70 model::strings_set architectures; in ATF_TEST_CASE_BODY()
74 model::strings_set platforms; in ATF_TEST_CASE_BODY()
78 model::properties_map custom; in ATF_TEST_CASE_BODY()
82 model::strings_set configs; in ATF_TEST_CASE_BODY()
86 model::paths_set files; in ATF_TEST_CASE_BODY()
90 model::paths_set programs; in ATF_TEST_CASE_BODY()
94 const model::metadata md = model::metadata_builder() in ATF_TEST_CASE_BODY()
121 const model::metadata md1 = model::metadata_builder() in ATF_TEST_CASE_BODY()
126 const model::metadata md2 = model::metadata_builder(md1) in ATF_TEST_CASE_BODY()
[all …]
H A DMakefile.am.inc34 libmodel_a_SOURCES = model/context.cpp
35 libmodel_a_SOURCES += model/context.hpp
36 libmodel_a_SOURCES += model/context_fwd.hpp
37 libmodel_a_SOURCES += model/exceptions.cpp
38 libmodel_a_SOURCES += model/exceptions.hpp
39 libmodel_a_SOURCES += model/metadata.cpp
40 libmodel_a_SOURCES += model/metadata.hpp
41 libmodel_a_SOURCES += model/metadata_fwd.hpp
42 libmodel_a_SOURCES += model/test_case.cpp
43 libmodel_a_SOURCES += model/test_case.hpp
[all …]
H A Dtest_result.cpp38 const std::map<enum model::test_result_type,
39 const struct model::test_result_type_desc>
40 model::test_result_types =
79 model::test_result::test_result(const test_result_type type_, in test_result()
90 model::test_result_type
91 model::test_result::type(void) const in type()
101 model::test_result::reason(void) const in reason()
111 model::test_result::good(void) const in good()
123 model::test_result::operator==(const test_result& other) const in operator ==()
136 model::test_result::operator!=(const test_result& other) const in operator !=()
[all …]
/freebsd/sys/dev/mii/
H A Dmiidevs120 model AGERE ET1011 0x0001 ET1011 10/100/1000baseT PHY
121 model AGERE ET1011C 0x0004 ET1011C 10/100/1000baseT PHY
124 model ALTIMA ACXXX 0x0001 ACXXX 10/100 media interface
125 model ALTIMA AC101L 0x0012 AC101L 10/100 media interface
126 model ALTIMA AC101 0x0021 AC101 10/100 media interface
128 model ALTIMA Am79C875 0x0014 Am79C875 10/100 media interface
129 model ALTIMA Am79C874 0x0021 Am79C874 10/100 media interface
133 model yyAMD 79C972_10T 0x0001 Am79C972 internal 10BASE-T interface
134 model yyAMD 79c973phy 0x0036 Am79C973 internal 10/100 media interface
135 model yyAMD 79c901 0x0037 Am79C901 10BASE-T interface
[all …]
/freebsd/contrib/kyua/engine/
H A Datf_test.cpp76 static model::test_cases_map
86 model::metadata_builder().build(), user_config, handle); in list_one()
90 const model::test_cases_map test_cases = handle.list_tests( in list_one()
112 const model::test_cases_map test_cases = list_one( in check_list_one_fail()
116 const model::test_case& test_case = test_cases.begin()->second; in check_list_one_fail()
136 const model::test_result& exp_result, in run_one()
142 const model::test_program_ptr program(new scheduler::lazy_test_program( in run_one()
144 "the-suite", model::metadata_builder().build(), in run_one()
175 const model::test_cases_map test_cases = list_one( in ATF_TEST_CASE_BODY()
178 const model::test_cases_map exp_test_cases = model::test_cases_map_builder() in ATF_TEST_CASE_BODY()
[all …]
H A Drequirements_test.cpp52 const model::metadata md = model::metadata_builder().build(); in ATF_TEST_CASE_BODY()
61 const model::metadata md = model::metadata_builder() in ATF_TEST_CASE_BODY()
75 const model::metadata md = model::metadata_builder() in ATF_TEST_CASE_BODY()
90 const model::metadata md = model::metadata_builder() in ATF_TEST_CASE_BODY()
106 const model::metadata md = model::metadata_builder() in ATF_TEST_CASE_BODY()
123 const model::metadata md = model::metadata_builder() in ATF_TEST_CASE_BODY()
137 const model::metadata md = model::metadata_builder() in ATF_TEST_CASE_BODY()
152 const model::metadata md = model::metadata_builder() in ATF_TEST_CASE_BODY()
168 const model::metadata md = model::metadata_builder() in ATF_TEST_CASE_BODY()
185 const model::metadata md = model::metadata_builder() in ATF_TEST_CASE_BODY()
[all …]
H A Dtap.cpp71 static model::test_result
76 return model::test_result(model::test_result_failed, "Bailed out"); in tap_to_result()
80 return model::test_result(model::test_result_skipped, in tap_to_result()
86 return model::test_result(model::test_result_passed); in tap_to_result()
88 return model::test_result( in tap_to_result()
89 model::test_result_broken, in tap_to_result()
95 return model::test_result(model::test_result_failed, in tap_to_result()
112 const model::test_program& /* test_program */, in exec_list()
122 model::test_cases_map
128 return model::test_cases_map_builder().add("main").build(); in parse_list()
[all …]
H A Dtap_test.cpp86 const model::test_result& exp_result, in run_one()
87 const model::metadata& metadata = model::metadata_builder().build(), in run_one()
91 const model::test_program_ptr program = model::test_program_builder( in run_one()
118 const model::test_program program = model::test_program_builder( in ATF_TEST_CASE_BODY()
123 const model::test_cases_map test_cases = handle.list_tests( in ATF_TEST_CASE_BODY()
127 const model::test_cases_map exp_test_cases = model::test_cases_map_builder() in ATF_TEST_CASE_BODY()
136 const model::test_result exp_result(model::test_result_passed); in ATF_TEST_CASE_BODY()
144 const model::test_result exp_result(model::test_result_failed, in ATF_TEST_CASE_BODY()
153 const model::test_result exp_result( in ATF_TEST_CASE_BODY()
154 model::test_result_broken, in ATF_TEST_CASE_BODY()
[all …]
H A Dscheduler_test.cpp194 exec_print_params(const model::test_program& test_program, in exec_print_params()
221 exec_list(const model::test_program& test_program, in exec_list()
265 model::test_cases_map
288 model::test_cases_map_builder test_cases_builder; in parse_list()
312 exec_test(const model::test_program& test_program, in exec_test()
362 exec_cleanup(const model::test_program& /* test_program */, in exec_cleanup()
398 model::test_result
413 return model::test_result(model::test_result_broken, in compute_result()
423 return model::test_result( in compute_result()
424 model::test_result_broken, in compute_result()
[all …]
H A Dplain_test.cpp86 const model::test_result& exp_result, in run_one()
87 const model::metadata& metadata = model::metadata_builder().build(), in run_one()
91 const model::test_program_ptr program = model::test_program_builder( in run_one()
118 const model::test_program program = model::test_program_builder( in ATF_TEST_CASE_BODY()
123 const model::test_cases_map test_cases = handle.list_tests( in ATF_TEST_CASE_BODY()
127 const model::test_cases_map exp_test_cases = model::test_cases_map_builder() in ATF_TEST_CASE_BODY()
136 const model::test_result exp_result(model::test_result_passed); in ATF_TEST_CASE_BODY()
144 const model::test_result exp_result( in ATF_TEST_CASE_BODY()
145 model::test_result_failed, in ATF_TEST_CASE_BODY()
154 const model::test_result exp_result(model::test_result_broken, in ATF_TEST_CASE_BODY()
[all …]
H A Dscanner_test.cpp54 class mock_test_program : public model::test_program {
59 mutable model::test_cases_map _test_cases;
67 "unused-suite", model::metadata_builder().build(), in mock_test_program()
68 model::test_cases_map()), in mock_test_program()
76 const model::test_cases_map&
80 const model::metadata metadata = model::metadata_builder().build(); in test_cases()
81 const model::test_case tc1("one", metadata); in test_cases()
82 const model::test_case tc2("two", metadata); in test_cases()
83 _test_cases.insert(model::test_cases_map::value_type("one", tc1)); in test_cases()
84 _test_cases.insert(model::test_cases_map::value_type("two", tc2)); in test_cases()
[all …]
H A Datf_list_test.cpp53 const model::properties_map properties; in ATF_TEST_CASE_BODY()
54 const model::metadata md = engine::parse_atf_metadata(properties); in ATF_TEST_CASE_BODY()
56 const model::metadata exp_md = model::metadata_builder().build(); in ATF_TEST_CASE_BODY()
64 model::properties_map properties; in ATF_TEST_CASE_BODY()
78 const model::metadata md = engine::parse_atf_metadata(properties); in ATF_TEST_CASE_BODY()
80 const model::metadata exp_md = model::metadata_builder() in ATF_TEST_CASE_BODY()
107 model::properties_map properties; in ATF_TEST_CASE_BODY()
173 const model::test_cases_map tests = engine::parse_atf_list(input); in ATF_TEST_CASE_BODY()
175 const model::test_cases_map exp_tests = model::test_cases_map_builder() in ATF_TEST_CASE_BODY()
191 const model::test_cases_map tests = engine::parse_atf_list(input); in ATF_TEST_CASE_BODY()
[all …]
H A Dplain.cpp65 const model::test_program& /* test_program */, in exec_list()
75 model::test_cases_map
81 return model::test_cases_map_builder().add("main").build(); in parse_list()
96 const model::test_program& test_program, in exec_test()
123 model::test_result
131 return model::test_result(model::test_result_broken, in compute_result()
138 return model::test_result(model::test_result_passed); in compute_result()
140 return model::test_result( in compute_result()
141 model::test_result_failed, in compute_result()
145 return model::test_result( in compute_result()
[all …]
H A Dscheduler.cpp177 const model::test_program_ptr test_program;
186 exec_data(const model::test_program_ptr test_program_, in exec_data()
240 test_exec_data(const model::test_program_ptr test_program_, in test_exec_data()
248 const model::test_case& test_case = test_program->find(test_case_name); in test_exec_data()
268 model::test_result body_result;
278 cleanup_exec_data(const model::test_program_ptr test_program_, in cleanup_exec_data()
281 const model::test_result& body_result_) : in cleanup_exec_data()
302 model::test_result body_result;
312 execenv_exec_data(const model::test_program_ptr test_program_, in execenv_exec_data()
315 const model::test_result& body_result_) : in execenv_exec_data()
[all …]
H A Dscheduler.hpp99 virtual void exec_list(const model::test_program& test_program,
111 virtual model::test_cases_map parse_list(
127 virtual void exec_test(const model::test_program& test_program,
144 virtual void exec_cleanup(const model::test_program& test_program,
160 virtual model::test_result compute_result(
169 class lazy_test_program : public model::test_program {
178 const model::metadata&,
182 const model::test_cases_map& test_cases(void) const;
225 const model::test_program_ptr test_program(void) const;
227 const model::test_result& test_result(void) const;
[all …]
/freebsd/contrib/kyua/store/
H A Dschema_inttest.cpp90 const model::context context(root, environment); in check_action_1()
112 const model::context context(root, environment); in check_action_2()
116 const model::test_program test_program_1 = model::test_program_builder( in check_action_2()
121 const model::test_result result_1(model::test_result_passed); in check_action_2()
123 const model::test_program test_program_2 = model::test_program_builder( in check_action_2()
127 model::metadata_builder() in check_action_2()
130 .set_metadata(model::metadata_builder() in check_action_2()
134 const model::test_result result_2(model::test_result_failed, in check_action_2()
137 const model::test_program test_program_3 = model::test_program_builder( in check_action_2()
142 const model::test_result result_3(model::test_result_broken, in check_action_2()
[all …]
/freebsd/contrib/expat/examples/
H A Delement_declarations.c60 const XML_Content *model; member
66 stackPushMalloc(Stack *stackTop, const XML_Content *model, unsigned level) { in stackPushMalloc() argument
71 newStackTop->model = model; in stackPushMalloc()
121 dumpContentModelElement(const XML_Content *model, unsigned level, in dumpContentModelElement() argument
130 printf("[%u] type=%s(%d), quant=%s(%d)", (unsigned)(model - root), in dumpContentModelElement()
131 contentTypeName(model->type), model->type, in dumpContentModelElement()
132 contentQuantName(model->quant), model->quant); in dumpContentModelElement()
133 if (model->name) { in dumpContentModelElement()
134 printf(", name=\"%" XML_FMT_STR "\"", model->name); in dumpContentModelElement()
138 printf(", numchildren=%d", model->numchildren); in dumpContentModelElement()
[all …]
/freebsd/contrib/kyua/drivers/
H A Dreport_junit_test.cpp108 const model::context context(fs::path("/root"), env); in add_context()
124 const std::vector< model::test_result >& results, in add_tests()
127 model::test_program_builder test_program_builder( in add_tests()
131 model::metadata_builder builder; in add_tests()
139 const model::test_program test_program = test_program_builder.build(); in add_tests()
167 const model::test_program test_program = model::test_program_builder( in ATF_TEST_CASE_BODY()
189 const model::metadata metadata = model::metadata_builder().build(); in ATF_TEST_CASE_BODY()
202 const model::metadata metadata = model::metadata_builder() in ATF_TEST_CASE_BODY()
289 std::vector< model::test_result > results1; in ATF_TEST_CASE_BODY()
290 results1.push_back(model::test_result( in ATF_TEST_CASE_BODY()
[all …]
/freebsd/contrib/kyua/cli/
H A Dcmd_report.cpp109 model::test_result result;
122 const model::test_result& result_, in result_data()
134 std::map< model::test_result_type, std::vector< result_data > > _results;
162 print_context(const model::context& context) in print_context()
186 const model::test_case& test_case = in print_test_case_and_result()
188 const model::properties_map props = in print_test_case_and_result()
206 for (model::properties_map::const_iterator iter = props.begin(); in print_test_case_and_result()
236 count_results(const model::test_result_type type) in count_results()
238 const std::map< model::test_result_type, in count_results()
252 print_results(const model::test_result_type type, in print_results()
[all …]

12345678910>>...77