| /freebsd/contrib/kyua/engine/ |
| H A D | tap_parser_test.cpp | 53 static engine::tap_summary 60 return engine::parse_tap_output(fs::path("tap.txt")); in do_parse() 70 const engine::tap_summary summary = engine::tap_summary::new_bailed_out(); in ATF_TEST_CASE_BODY() 78 const engine::tap_summary summary = engine::tap_summary::new_results( in ATF_TEST_CASE_BODY() 79 engine::tap_plan(1, 5), 3, 2); in ATF_TEST_CASE_BODY() 81 ATF_REQUIRE_EQ(engine::tap_plan(1, 5), summary.plan()); in ATF_TEST_CASE_BODY() 90 const engine::tap_summary summary = engine::tap_summary::new_all_skipped( in ATF_TEST_CASE_BODY() 93 ATF_REQUIRE_EQ(engine::tap_plan(1, 0), summary.plan()); in ATF_TEST_CASE_BODY() 101 const engine::tap_summary bailed_out = in ATF_TEST_CASE_BODY() 102 engine::tap_summary::new_bailed_out(); in ATF_TEST_CASE_BODY() [all …]
|
| H A D | atf_result_test.cpp | 65 parse_ok_test(const engine::atf_result::types& exp_type, in parse_ok_test() 70 const engine::atf_result actual = engine::atf_result::parse(input); in parse_ok_test() 106 ATF_REQUIRE_THROW_RE(engine::format_error, reason_regexp, in parse_broken_test() 107 engine::atf_result::parse(input)); in parse_broken_test() 161 engine::atf_result::broken, none, "a b c", 164 engine::atf_result::broken, none, " ", 169 engine::atf_result::expected_death, none, "a b c", 172 engine::atf_result::expected_death, none, " ", 177 engine::atf_result::expected_exit, none, "any exit code", 180 engine::atf_result::expected_exit, optional< int >(712), [all …]
|
| H A D | scanner_test.cpp | 141 static std::set< engine::scan_result > 142 yield_all(engine::scanner& scanner) in yield_all() 144 std::set< engine::scan_result > results; in yield_all() 146 const optional< engine::scan_result > result = scanner.yield(); in yield_all() 163 const std::set< engine::test_filter > filters; in ATF_TEST_CASE_BODY() 165 engine::scanner scanner(test_programs, filters); in ATF_TEST_CASE_BODY() 181 const std::set< engine::test_filter > filters; in ATF_TEST_CASE_BODY() 183 std::set< engine::scan_result > exp_results; in ATF_TEST_CASE_BODY() 184 exp_results.insert(engine::scan_result(test_program, "lone_test")); in ATF_TEST_CASE_BODY() 186 engine::scanner scanner(test_programs, filters); in ATF_TEST_CASE_BODY() [all …]
|
| H A D | tap_parser.cpp | 49 const engine::tap_plan engine::all_skipped_plan(1, 0); 88 optional< engine::tap_plan >& out_plan, in try_parse_plan() 94 const engine::tap_plan plan( in try_parse_plan() 99 throw engine::format_error( in try_parse_plan() 107 if (plan != engine::all_skipped_plan) { in try_parse_plan() 108 throw engine::format_error(F("Skipped plan must be %s..%s") % in try_parse_plan() 109 engine::all_skipped_plan.first % in try_parse_plan() 110 engine::all_skipped_plan.second); in try_parse_plan() 117 throw engine::format_error(F("Found reversed plan %s..%s") % in try_parse_plan() 127 out_plan.get() == engine::all_skipped_plan); in try_parse_plan() [all …]
|
| H A D | filters_test.cpp | 47 inline engine::test_filter 50 return engine::test_filter(fs::path(test_program), test_case); in mkfilter() 60 const engine::test_filter filter(fs::path("foo/bar"), "baz"); in ATF_TEST_CASE_BODY() 69 const engine::test_filter filter(engine::test_filter::parse("foo")); in ATF_TEST_CASE_BODY() 79 engine::test_filter::parse("")); in ATF_TEST_CASE_BODY() 87 engine::test_filter::parse("/foo//bar")); in ATF_TEST_CASE_BODY() 95 engine::test_filter::parse(":foo")); in ATF_TEST_CASE_BODY() 103 engine::test_filter::parse("bar/baz:")); in ATF_TEST_CASE_BODY() 120 const engine::test_filter filter(fs::path("foo/bar"), "baz"); in ATF_TEST_CASE_BODY() 129 const engine::test_filter f(fs::path("foo/bar"), "baz"); in ATF_TEST_CASE_BODY() [all …]
|
| H A D | requirements_test.cpp | 53 ATF_REQUIRE(engine::check_reqs(md, engine::empty_config(), "", in ATF_TEST_CASE_BODY() 65 config::tree user_config = engine::default_config(); in ATF_TEST_CASE_BODY() 68 ATF_REQUIRE(engine::check_reqs(md, user_config, "", fs::path(".")).empty()); in ATF_TEST_CASE_BODY() 79 config::tree user_config = engine::default_config(); in ATF_TEST_CASE_BODY() 83 engine::check_reqs(md, user_config, "", fs::path("."))); in ATF_TEST_CASE_BODY() 96 config::tree user_config = engine::default_config(); in ATF_TEST_CASE_BODY() 99 ATF_REQUIRE(engine::check_reqs(md, user_config, "", fs::path(".")).empty()); in ATF_TEST_CASE_BODY() 112 config::tree user_config = engine::default_config(); in ATF_TEST_CASE_BODY() 116 engine::check_reqs(md, user_config, "", fs::path("."))); in ATF_TEST_CASE_BODY() 127 config::tree user_config = engine::default_config(); in ATF_TEST_CASE_BODY() [all …]
|
| H A D | googletest_result_test.cpp | 64 parse_ok_test(const engine::googletest_result::types& exp_type, in parse_ok_test() 68 const engine::googletest_result actual = in parse_ok_test() 69 engine::googletest_result::parse(input); in parse_ok_test() 99 engine::googletest_result::broken, "invalid output", 117 engine::googletest_result::disabled, disabled_context, 150 engine::googletest_result::failed, failed_context, 170 engine::googletest_result::skipped, 171 engine::bogus_googletest_skipped_nul_message.c_str(), 197 engine::googletest_result::skipped, skipped_with_reason_context, 215 engine::googletest_result::successful, NULL, [all …]
|
| H A D | filters.cpp | 51 engine::test_filter::test_filter(const fs::path& test_program_, in test_filter() 67 engine::test_filter 68 engine::test_filter::parse(const std::string& str) in parse() 110 engine::test_filter::str(void) const in str() 125 engine::test_filter::contains(const test_filter& other) const in contains() 142 engine::test_filter::matches_test_program(const fs::path& test_program_) const in matches_test_program() 162 engine::test_filter::matches_test_case(const fs::path& test_program_, in matches_test_case() 178 engine::test_filter::operator<(const test_filter& other) const in operator <() 192 engine::test_filter::operator==(const test_filter& other) const in operator ==() 204 engine::test_filter::operator!=(const test_filter& other) const in operator !=() [all …]
|
| H A D | googletest_result.cpp | 84 static engine::googletest_result 88 throw engine::format_error(F("%s cannot have a reason") % status); in parse_without_reason() 91 return engine::googletest_result(engine::googletest_result::skipped); in parse_without_reason() 94 return engine::googletest_result(engine::googletest_result::successful); in parse_without_reason() 109 static engine::googletest_result 112 using engine::googletest_result; in parse_with_reason() 155 engine::googletest_result::googletest_result(const types type_) : in googletest_result() 165 engine::googletest_result::googletest_result( in googletest_result() 186 engine::googletest_result 187 engine::googletest_result::parse(std::istream& input) in parse() [all …]
|
| H A D | atf_result.cpp | 107 static engine::atf_result 111 throw engine::format_error(F("%s cannot have a reason") % status); in parse_without_reason() 113 return engine::atf_result(engine::atf_result::passed); in parse_without_reason() 128 static engine::atf_result 131 using engine::atf_result; in parse_with_reason() 134 throw engine::format_error(F("%s must be followed by ': <reason>'") % in parse_with_reason() 181 static engine::atf_result 184 using engine::atf_result; in parse_with_reason_and_arg() 188 throw engine::format_error(F("Invalid format for '%s' test case " in parse_with_reason_and_arg() 197 throw engine::format_error(F("Mismatched '(' in %s") % rest); in parse_with_reason_and_arg() [all …]
|
| H A D | atf_list_test.cpp | 54 const model::metadata md = engine::parse_atf_metadata(properties); in ATF_TEST_CASE_BODY() 80 const model::metadata md = engine::parse_atf_metadata(properties); in ATF_TEST_CASE_BODY() 114 ATF_REQUIRE_THROW_RE(engine::format_error, "Unknown.*property.*'foobar'", in ATF_TEST_CASE_BODY() 115 engine::parse_atf_metadata(properties)); in ATF_TEST_CASE_BODY() 124 ATF_REQUIRE_THROW_RE(engine::format_error, "expecting Content-Type", in ATF_TEST_CASE_BODY() 125 engine::parse_atf_list(input)); in ATF_TEST_CASE_BODY() 136 ATF_REQUIRE_THROW_RE(engine::format_error, "expecting.*blank line", in ATF_TEST_CASE_BODY() 137 engine::parse_atf_list(input)); in ATF_TEST_CASE_BODY() 144 ATF_REQUIRE_THROW_RE(engine::format_error, "expecting.*blank line", in ATF_TEST_CASE_BODY() 145 engine::parse_atf_list(input)); in ATF_TEST_CASE_BODY() [all …]
|
| H A D | googletest_list_test.cpp | 55 ATF_REQUIRE_THROW_RE(engine::format_error, "No test cases", in ATF_TEST_CASE_BODY() 56 engine::parse_googletest_list(input1)); in ATF_TEST_CASE_BODY() 59 ATF_REQUIRE_THROW_RE(engine::format_error, in ATF_TEST_CASE_BODY() 61 engine::parse_googletest_list(input2)); in ATF_TEST_CASE_BODY() 69 ATF_REQUIRE_THROW_RE(engine::format_error, "No test cases", in ATF_TEST_CASE_BODY() 70 engine::parse_googletest_list(input1)); in ATF_TEST_CASE_BODY() 75 ATF_REQUIRE_THROW_RE(engine::format_error, "No test cases", in ATF_TEST_CASE_BODY() 76 engine::parse_googletest_list(input2)); in ATF_TEST_CASE_BODY() 84 ATF_REQUIRE_THROW_RE(engine::format_error, "No test cases", in ATF_TEST_CASE_BODY() 85 engine::parse_googletest_list(input)); in ATF_TEST_CASE_BODY() [all …]
|
| H A D | scanner.cpp | 72 struct engine::scanner::impl : utils::noncopyable { 80 engine::filters_state filters; 93 const std::set< engine::test_filter >& filters_) : in impl() 156 engine::scan_result 170 engine::scanner::scanner(const model::test_programs_vector& test_programs, in scanner() 171 const std::set< engine::test_filter >& filters) : in scanner() 178 engine::scanner::~scanner(void) in ~scanner() 187 optional< engine::scan_result > 188 engine::scanner::yield(void) in yield() 203 engine::scanner::done(void) in done() [all …]
|
| H A D | atf.cpp | 58 namespace execenv = engine::execenv; 92 engine::atf_interface::exec_list(const model::test_program& test_program, in exec_list() 129 engine::atf_interface::parse_list(const optional< process::status >& status, in parse_list() 138 throw engine::error("Test case list timed out"); in parse_list() 144 throw engine::error("Permission denied to run test program"); in parse_list() 146 throw engine::error("Cannot find test program"); in parse_list() 148 throw engine::error("Invalid test program format"); in parse_list() 150 throw engine::error("Test program did not exit cleanly"); in parse_list() 153 throw engine::error("Test program received signal"); in parse_list() 158 throw engine::load_error(stdout_path, "Cannot open file for read"); in parse_list() [all …]
|
| H A D | googletest.cpp | 101 engine::googletest_interface::exec_list( in exec_list() 134 engine::googletest_interface::parse_list( in parse_list() 140 throw engine::error("Test case list timed out"); in parse_list() 146 throw engine::error("Permission denied to run test program"); in parse_list() 148 throw engine::error("Cannot find test program"); in parse_list() 150 throw engine::error("Invalid test program format"); in parse_list() 152 throw engine::error("Test program did not exit cleanly; exited " in parse_list() 156 throw engine::error("Test program received signal"); in parse_list() 161 throw engine::load_error(stdout_path, "Cannot open file for read"); in parse_list() 178 engine::googletest_interface::exec_test( in exec_test() [all …]
|
| H A D | config_test.cpp | 101 const config::tree user_config = engine::default_config(); in ATF_TEST_CASE_BODY() 109 config::tree user_config = engine::default_config(); in ATF_TEST_CASE_BODY() 125 const config::tree user_config = engine::load_config(fs::path("config")); in ATF_TEST_CASE_BODY() 144 const config::tree user_config = engine::load_config(fs::path("config")); in ATF_TEST_CASE_BODY() 153 const passwd::user& user = user_config.lookup< engine::user_node >( in ATF_TEST_CASE_BODY() 170 ATF_REQUIRE_THROW(engine::load_error, engine::load_config( in ATF_TEST_CASE_BODY() 180 ATF_REQUIRE_THROW_RE(engine::load_error, in ATF_TEST_CASE_BODY() 182 engine::load_config(fs::path("config"))); in ATF_TEST_CASE_BODY() 189 ATF_REQUIRE_THROW_RE(engine::load_error, "Load of 'missing' failed", in ATF_TEST_CASE_BODY() 190 engine::load_config(fs::path("missing"))); in ATF_TEST_CASE_BODY()
|
| H A D | kyuafile_test.cpp | 52 namespace scheduler = engine::scheduler; 64 const engine::kyuafile suite = engine::kyuafile::load( in ATF_TEST_CASE_BODY() 109 const engine::kyuafile suite = engine::kyuafile::load( in ATF_TEST_CASE_BODY() 151 new engine::plain_interface()); in ATF_TEST_CASE_BODY() 169 const engine::kyuafile suite = engine::kyuafile::load( in ATF_TEST_CASE_BODY() 204 const engine::kyuafile suite = engine::kyuafile::load( in ATF_TEST_CASE_BODY() 254 const engine::kyuafile suite = engine::kyuafile::load( in ATF_TEST_CASE_BODY() 294 const engine::kyuafile suite = engine::kyuafile::load( in ATF_TEST_CASE_BODY() 339 const engine::kyuafile suite = engine::kyuafile::load( in ATF_TEST_CASE_BODY() 375 const engine::kyuafile suite = engine::kyuafile::load( in ATF_TEST_CASE_BODY() [all …]
|
| H A D | exceptions.cpp | 38 engine::error::error(const std::string& message) : in error() 45 engine::error::~error(void) throw() in ~error() 53 engine::format_error::format_error(const std::string& reason_) : in format_error() 60 engine::format_error::~format_error(void) throw() in ~format_error() 69 engine::load_error::load_error(const fs::path& file_, in load_error() 79 engine::load_error::~load_error(void) throw() in ~load_error()
|
| /freebsd/contrib/ofed/libibnetdisc/ |
| H A D | query_smp.c | 44 extern int mlnx_ext_port_info_err(smp_engine_t * engine, ibnd_smp_t * smp, 47 static void queue_smp(smp_engine_t * engine, ibnd_smp_t * smp) in queue_smp() argument 50 if (!engine->smp_queue_head) { in queue_smp() 51 engine->smp_queue_head = smp; in queue_smp() 52 engine->smp_queue_tail = smp; in queue_smp() 54 engine->smp_queue_tail->qnext = smp; in queue_smp() 55 engine->smp_queue_tail = smp; in queue_smp() 59 static ibnd_smp_t *get_smp(smp_engine_t * engine) in get_smp() argument 61 ibnd_smp_t *head = engine->smp_queue_head; in get_smp() 62 ibnd_smp_t *tail = engine->smp_queue_tail; in get_smp() [all …]
|
| H A D | ibnetdisc.c | 64 static int query_node_info(smp_engine_t * engine, ib_portid_t * portid, 66 static int query_port_info(smp_engine_t * engine, ib_portid_t * portid, 70 static int recv_switch_info(smp_engine_t * engine, ibnd_smp_t * smp, in recv_switch_info() argument 81 static int query_switch_info(smp_engine_t * engine, ib_portid_t * portid, in query_switch_info() argument 85 return issue_smp(engine, portid, IB_ATTR_SWITCH_INFO, 0, in query_switch_info() 98 static int retract_dpath(smp_engine_t * engine, ib_portid_t * portid) in retract_dpath() argument 100 ibnd_scan_t *scan = engine->user_data; in retract_dpath() 118 static int extend_dpath(smp_engine_t * engine, ib_portid_t * portid, in extend_dpath() argument 121 ibnd_scan_t *scan = engine->user_data; in extend_dpath() 147 static int recv_node_desc(smp_engine_t * engine, ibnd_smp_t * smp, in recv_node_desc() argument [all …]
|
| /freebsd/contrib/bearssl/src/ssl/ |
| H A D | ssl_io.c | 30 br_ssl_engine_context *engine, in br_sslio_init() argument 38 ctx->engine = engine; in br_sslio_init() 57 state = br_ssl_engine_current_state(ctx->engine); in run_until() 71 buf = br_ssl_engine_sendrec_buf(ctx->engine, &len); in run_until() 81 if (!ctx->engine->shutdown_recv) { in run_until() 83 ctx->engine, BR_ERR_IO); in run_until() 88 br_ssl_engine_sendrec_ack(ctx->engine, wlen); in run_until() 122 buf = br_ssl_engine_recvrec_buf(ctx->engine, &len); in run_until() 125 br_ssl_engine_fail(ctx->engine, BR_ERR_IO); in run_until() 129 br_ssl_engine_recvrec_ack(ctx->engine, rlen); in run_until() [all …]
|
| /freebsd/crypto/openssl/providers/common/ |
| H A D | provider_util.c | 30 ENGINE_finish(pc->engine); in ossl_prov_cipher_reset() 32 pc->engine = NULL; in ossl_prov_cipher_reset() 40 if (src->engine != NULL && !ENGINE_init(src->engine)) { in ossl_prov_cipher_copy() 45 dst->engine = src->engine; in ossl_prov_cipher_copy() 52 ENGINE **engine) in load_common() argument 65 ENGINE_finish(*engine); in load_common() 67 *engine = NULL; in load_common() 75 *engine = ENGINE_by_id(p->data); in load_common() 76 if (*engine == NULL) in load_common() 79 if (!ENGINE_init(*engine)) { in load_common() [all …]
|
| /freebsd/crypto/openssl/doc/man1/ |
| H A D | openssl-engine.pod.in | 6 openssl-engine - load and query engines 10 B<openssl engine> 21 [I<engine> ...] 28 of the specified I<engine>s. 42 Provides information about each specified engine. The first flag lists 49 Lists the capabilities of each engine. 53 Tests if each specified engine is available, and displays the answer. 57 Displays an error trace for any unavailable engine. 64 The B<-pre> command is given to the engine before it is loaded and 65 the B<-post> command is given after the engine is loaded. [all …]
|
| /freebsd/contrib/kyua/drivers/ |
| H A D | debug_test.cpp | 48 namespace scheduler = engine::scheduler; 66 drivers::debug_test::drive(engine::debugger_ptr debugger, in drive() 69 const engine::test_filter& filter, in drive() 76 const engine::kyuafile kyuafile = engine::kyuafile::load( in drive() 78 std::set< engine::test_filter > filters; in drive() 81 engine::scanner scanner(kyuafile.test_programs(), filters); in drive() 82 optional< engine::scan_result > match; in drive() 112 return result(engine::test_filter( in drive()
|
| /freebsd/crypto/openssl/crypto/dh/ |
| H A D | dh_lib.c | 29 static DH *dh_new_intern(ENGINE *engine, OSSL_LIB_CTX *libctx); 43 ENGINE_finish(dh->engine); in DH_set_method() 44 dh->engine = NULL; in DH_set_method() 63 DH *DH_new_method(ENGINE *engine) in DH_new_method() argument 65 return dh_new_intern(engine, NULL); in DH_new_method() 74 static DH *dh_new_intern(ENGINE *engine, OSSL_LIB_CTX *libctx) in dh_new_intern() argument 98 if (engine) { in dh_new_intern() 99 if (!ENGINE_init(engine)) { in dh_new_intern() 103 ret->engine = engine; in dh_new_intern() 105 ret->engine = ENGINE_get_default_DH(); in dh_new_intern() [all …]
|