| /netbsd-src/crypto/external/bsd/openssl/dist/test/ |
| H A D | cmp_protect_test.c | 38 static void tear_down(CMP_PROTECT_TEST_FIXTURE *fixture) in tear_down() argument 40 if (fixture != NULL) { in tear_down() 41 OSSL_CMP_CTX_free(fixture->cmp_ctx); in tear_down() 42 OSSL_CMP_MSG_free(fixture->msg); in tear_down() 43 OSSL_CMP_PKISI_free(fixture->si); in tear_down() 45 OPENSSL_free(fixture->mem); in tear_down() 46 sk_X509_free(fixture->certs); in tear_down() 47 sk_X509_free(fixture->chain); in tear_down() 49 OPENSSL_free(fixture); in tear_down() 55 CMP_PROTECT_TEST_FIXTURE *fixture; in set_up() local [all …]
|
| H A D | cmp_msg_test.c | 38 static void tear_down(CMP_MSG_TEST_FIXTURE *fixture) in tear_down() argument 40 OSSL_CMP_CTX_free(fixture->cmp_ctx); in tear_down() 41 OSSL_CMP_MSG_free(fixture->msg); in tear_down() 42 OSSL_CMP_PKISI_free(fixture->si); in tear_down() 43 OPENSSL_free(fixture); in tear_down() 50 CMP_MSG_TEST_FIXTURE *fixture; in set_up() local 52 if (!TEST_ptr(fixture = OPENSSL_zalloc(sizeof(*fixture)))) in set_up() 54 fixture->test_case_name = test_case_name; in set_up() 56 if (!TEST_ptr(fixture->cmp_ctx = OSSL_CMP_CTX_new(libctx, NULL)) in set_up() 57 || !TEST_true(SET_OPT_UNPROTECTED_SEND(fixture->cmp_ctx, 1)) in set_up() [all …]
|
| H A D | cmp_vfy_test.c | 43 static void tear_down(CMP_VFY_TEST_FIXTURE *fixture) in tear_down() argument 45 OSSL_CMP_MSG_free(fixture->msg); in tear_down() 46 OSSL_CMP_CTX_free(fixture->cmp_ctx); in tear_down() 47 OPENSSL_free(fixture); in tear_down() 55 CMP_VFY_TEST_FIXTURE *fixture; in set_up() local 57 if (!TEST_ptr(fixture = OPENSSL_zalloc(sizeof(*fixture)))) in set_up() 61 fixture->test_case_name = test_case_name; in set_up() 63 || !TEST_ptr(fixture->cmp_ctx = OSSL_CMP_CTX_new(libctx, NULL)) in set_up() 64 || !OSSL_CMP_CTX_set0_trustedStore(fixture->cmp_ctx, ts) in set_up() 65 || !OSSL_CMP_CTX_set_log_cb(fixture->cmp_ctx, print_to_bio_out)) { in set_up() [all …]
|
| H A D | ct_test.c | 62 CT_TEST_FIXTURE *fixture = NULL; in set_up() local 64 if (!TEST_ptr(fixture = OPENSSL_zalloc(sizeof(*fixture)))) in set_up() 66 fixture->test_case_name = test_case_name; in set_up() 67 fixture->epoch_time_in_ms = 1580335307000ULL; /* Wed 29 Jan 2020 10:01:47 PM UTC */ in set_up() 68 if (!TEST_ptr(fixture->ctlog_store = CTLOG_STORE_new()) in set_up() 70 CTLOG_STORE_load_default_file(fixture->ctlog_store), 1)) in set_up() 72 return fixture; in set_up() 75 if (fixture != NULL) in set_up() 76 CTLOG_STORE_free(fixture->ctlog_store); in set_up() 77 OPENSSL_free(fixture); in set_up() [all …]
|
| H A D | cmp_hdr_test.c | 24 static void tear_down(CMP_HDR_TEST_FIXTURE *fixture) in tear_down() argument 26 OSSL_CMP_PKIHEADER_free(fixture->hdr); in tear_down() 27 OSSL_CMP_CTX_free(fixture->cmp_ctx); in tear_down() 28 OPENSSL_free(fixture); in tear_down() 33 CMP_HDR_TEST_FIXTURE *fixture; in set_up() local 35 if (!TEST_ptr(fixture = OPENSSL_zalloc(sizeof(*fixture)))) in set_up() 37 fixture->test_case_name = test_case_name; in set_up() 38 if (!TEST_ptr(fixture->cmp_ctx = OSSL_CMP_CTX_new(NULL, NULL))) in set_up() 40 if (!TEST_ptr(fixture->hdr = OSSL_CMP_PKIHEADER_new())) in set_up() 42 return fixture; in set_up() [all …]
|
| H A D | cmp_client_test.c | 48 static void tear_down(CMP_SES_TEST_FIXTURE *fixture) in tear_down() argument 50 OSSL_CMP_CTX_free(fixture->cmp_ctx); in tear_down() 51 ossl_cmp_mock_srv_free(fixture->srv_ctx); in tear_down() 52 sk_X509_free(fixture->caPubs); in tear_down() 53 OPENSSL_free(fixture); in tear_down() 58 CMP_SES_TEST_FIXTURE *fixture; in set_up() local 62 if (!TEST_ptr(fixture = OPENSSL_zalloc(sizeof(*fixture)))) in set_up() 64 fixture->test_case_name = test_case_name; in set_up() 65 if (!TEST_ptr(fixture->srv_ctx = ossl_cmp_mock_srv_new(libctx, NULL)) in set_up() 66 || !OSSL_CMP_SRV_CTX_set_accept_unprotected(fixture->srv_ctx, 1) in set_up() [all …]
|
| H A D | cmp_asn_test.c | 26 CMP_ASN_TEST_FIXTURE *fixture; in set_up() local 28 if (!TEST_ptr(fixture = OPENSSL_zalloc(sizeof(*fixture)))) in set_up() 30 fixture->test_case_name = test_case_name; in set_up() 31 return fixture; in set_up() 34 static void tear_down(CMP_ASN_TEST_FIXTURE *fixture) in tear_down() argument 36 ASN1_OCTET_STRING_free(fixture->src_string); in tear_down() 37 if (fixture->tgt_string != fixture->src_string) in tear_down() 38 ASN1_OCTET_STRING_free(fixture->tgt_string); in tear_down() 40 OPENSSL_free(fixture); in tear_down() 43 static int execute_cmp_asn1_get_int_test(CMP_ASN_TEST_FIXTURE *fixture) in execute_cmp_asn1_get_int_test() argument [all …]
|
| H A D | ssl_test_ctx_test.c | 112 SSL_TEST_CTX_TEST_FIXTURE *fixture; in set_up() local 114 if (!TEST_ptr(fixture = OPENSSL_zalloc(sizeof(*fixture)))) in set_up() 116 fixture->test_case_name = test_case_name; in set_up() 117 if (!TEST_ptr(fixture->expected_ctx = SSL_TEST_CTX_new(NULL))) { in set_up() 118 OPENSSL_free(fixture); in set_up() 121 return fixture; in set_up() 124 static int execute_test(SSL_TEST_CTX_TEST_FIXTURE *fixture) in execute_test() argument 129 if (!TEST_ptr(ctx = SSL_TEST_CTX_create(conf, fixture->test_section, in execute_test() 130 fixture->expected_ctx->libctx)) in execute_test() 131 || !testctx_eq(ctx, fixture->expected_ctx)) in execute_test() [all …]
|
| H A D | cmp_status_test.c | 24 CMP_STATUS_TEST_FIXTURE *fixture; in set_up() local 26 if (!TEST_ptr(fixture = OPENSSL_zalloc(sizeof(*fixture)))) in set_up() 28 fixture->test_case_name = test_case_name; in set_up() 29 return fixture; in set_up() 32 static void tear_down(CMP_STATUS_TEST_FIXTURE *fixture) in tear_down() argument 34 OPENSSL_free(fixture); in tear_down() 41 static int execute_PKISI_test(CMP_STATUS_TEST_FIXTURE *fixture) in execute_PKISI_test() argument 48 if (!TEST_ptr(si = OSSL_CMP_STATUSINFO_new(fixture->pkistatus, in execute_PKISI_test() 49 fixture->pkifailure, in execute_PKISI_test() 50 fixture->text))) in execute_PKISI_test() [all …]
|
| H A D | cipherlist_test.c | 31 static void tear_down(CIPHERLIST_TEST_FIXTURE *fixture) in tear_down() argument 33 if (fixture != NULL) { in tear_down() 34 SSL_CTX_free(fixture->server); in tear_down() 35 SSL_CTX_free(fixture->client); in tear_down() 36 fixture->server = fixture->client = NULL; in tear_down() 37 OPENSSL_free(fixture); in tear_down() 43 CIPHERLIST_TEST_FIXTURE *fixture; in set_up() local 45 if (!TEST_ptr(fixture = OPENSSL_zalloc(sizeof(*fixture)))) in set_up() 47 fixture->test_case_name = test_case_name; in set_up() 48 if (!TEST_ptr(fixture->server = SSL_CTX_new(TLS_server_method())) in set_up() [all …]
|
| H A D | cmp_server_test.c | 25 static void tear_down(CMP_SRV_TEST_FIXTURE *fixture) in tear_down() argument 27 OSSL_CMP_SRV_CTX_free(fixture->srv_ctx); in tear_down() 28 OPENSSL_free(fixture); in tear_down() 33 CMP_SRV_TEST_FIXTURE *fixture; in set_up() local 35 if (!TEST_ptr(fixture = OPENSSL_zalloc(sizeof(*fixture)))) in set_up() 37 fixture->test_case_name = test_case_name; in set_up() 38 if (!TEST_ptr(fixture->srv_ctx = OSSL_CMP_SRV_CTX_new(libctx, NULL))) in set_up() 40 return fixture; in set_up() 43 tear_down(fixture); in set_up() 62 static int execute_test_handle_request(CMP_SRV_TEST_FIXTURE *fixture) in execute_test_handle_request() argument [all …]
|
| H A D | keymgmt_internal_test.c | 40 static void tear_down(FIXTURE *fixture) in tear_down() argument 42 if (fixture != NULL) { in tear_down() 43 OSSL_PROVIDER_unload(fixture->prov1); in tear_down() 44 OSSL_PROVIDER_unload(fixture->prov2); in tear_down() 45 OSSL_LIB_CTX_free(fixture->ctx1); in tear_down() 46 OSSL_LIB_CTX_free(fixture->ctx2); in tear_down() 47 OPENSSL_free(fixture); in tear_down() 53 FIXTURE *fixture; in set_up() local 55 if (!TEST_ptr(fixture = OPENSSL_zalloc(sizeof(*fixture))) in set_up() 56 || !TEST_ptr(fixture->ctx1 = OSSL_LIB_CTX_new()) in set_up() [all …]
|
| H A D | cmp_ctx_test.c | 26 static void tear_down(OSSL_CMP_CTX_TEST_FIXTURE *fixture) in tear_down() argument 28 if (fixture != NULL) in tear_down() 29 OSSL_CMP_CTX_free(fixture->ctx); in tear_down() 30 OPENSSL_free(fixture); in tear_down() 35 OSSL_CMP_CTX_TEST_FIXTURE *fixture; in set_up() local 37 if (!TEST_ptr(fixture = OPENSSL_zalloc(sizeof(*fixture)))) in set_up() 39 if (!TEST_ptr(fixture->ctx = OSSL_CMP_CTX_new(NULL, NULL))) { in set_up() 40 tear_down(fixture); in set_up() 43 fixture->test_case_name = test_case_name; in set_up() 44 return fixture; in set_up() [all …]
|
| H A D | modes_internal_test.c | 183 static int execute_cts128(const CTS128_FIXTURE *fixture, int num) in execute_cts128() argument 197 TEST_info("%s_vector_%lu", fixture->case_name, (unsigned long)len); in execute_cts128() 199 tail = fixture->last_blocks_correction(orig_vector, vector, len); in execute_cts128() 203 if (!TEST_size_t_eq(fixture->encrypt_block(test_input, ciphertext, len, in execute_cts128() 212 size = fixture->decrypt_block(ciphertext, cleartext, len, in execute_cts128() 222 if (!TEST_size_t_eq(fixture->encrypt_stream(test_input, ciphertext, len, in execute_cts128() 232 if (!TEST_size_t_eq(fixture->decrypt_stream(ciphertext, cleartext, len, in execute_cts128()
|
| H A D | testutil.h | 99 TEST_FIXTURE_TYPE *fixture = set_up(TEST_CASE_NAME); \ 102 if (fixture == NULL) \ 107 if (fixture != NULL) {\ 108 result = execute_func(fixture);\ 109 tear_down(fixture);\
|
| /netbsd-src/crypto/external/bsd/openssl.old/dist/test/ |
| H A D | ct_test.c | 61 CT_TEST_FIXTURE *fixture = NULL; in set_up() local 63 if (!TEST_ptr(fixture = OPENSSL_zalloc(sizeof(*fixture)))) in set_up() 65 fixture->test_case_name = test_case_name; in set_up() 66 fixture->epoch_time_in_ms = 1580335307000ULL; /* Wed 29 Jan 2020 10:01:47 PM UTC */ in set_up() 67 if (!TEST_ptr(fixture->ctlog_store = CTLOG_STORE_new()) in set_up() 69 CTLOG_STORE_load_default_file(fixture->ctlog_store), 1)) in set_up() 71 return fixture; in set_up() 74 if (fixture != NULL) in set_up() 75 CTLOG_STORE_free(fixture->ctlog_store); in set_up() 76 OPENSSL_free(fixture); in set_up() [all …]
|
| H A D | ssl_test_ctx_test.c | 112 SSL_TEST_CTX_TEST_FIXTURE *fixture; in set_up() local 114 if (!TEST_ptr(fixture = OPENSSL_zalloc(sizeof(*fixture)))) in set_up() 116 fixture->test_case_name = test_case_name; in set_up() 117 if (!TEST_ptr(fixture->expected_ctx = SSL_TEST_CTX_new())) { in set_up() 118 OPENSSL_free(fixture); in set_up() 121 return fixture; in set_up() 124 static int execute_test(SSL_TEST_CTX_TEST_FIXTURE *fixture) in execute_test() argument 129 if (!TEST_ptr(ctx = SSL_TEST_CTX_create(conf, fixture->test_section)) in execute_test() 130 || !testctx_eq(ctx, fixture->expected_ctx)) in execute_test() 139 static void tear_down(SSL_TEST_CTX_TEST_FIXTURE *fixture) in tear_down() argument [all …]
|
| H A D | cipherlist_test.c | 31 static void tear_down(CIPHERLIST_TEST_FIXTURE *fixture) in tear_down() argument 33 if (fixture != NULL) { in tear_down() 34 SSL_CTX_free(fixture->server); in tear_down() 35 SSL_CTX_free(fixture->client); in tear_down() 36 fixture->server = fixture->client = NULL; in tear_down() 37 OPENSSL_free(fixture); in tear_down() 43 CIPHERLIST_TEST_FIXTURE *fixture; in set_up() local 45 if (!TEST_ptr(fixture = OPENSSL_zalloc(sizeof(*fixture)))) in set_up() 47 fixture->test_case_name = test_case_name; in set_up() 48 if (!TEST_ptr(fixture->server = SSL_CTX_new(TLS_server_method())) in set_up() [all …]
|
| H A D | modes_internal_test.c | 177 static int execute_cts128(const CTS128_FIXTURE *fixture, int num) in execute_cts128() argument 191 TEST_info("%s_vector_%lu", fixture->case_name, (unsigned long)len); in execute_cts128() 193 tail = fixture->last_blocks_correction(orig_vector, vector, len); in execute_cts128() 197 if (!TEST_size_t_eq(fixture->encrypt_block(test_input, ciphertext, len, in execute_cts128() 206 size = fixture->decrypt_block(ciphertext, cleartext, len, in execute_cts128() 216 if (!TEST_size_t_eq(fixture->encrypt_stream(test_input, ciphertext, len, in execute_cts128() 226 if (!TEST_size_t_eq(fixture->decrypt_stream(ciphertext, cleartext, len, in execute_cts128()
|
| H A D | testutil.h | 95 TEST_FIXTURE_TYPE *fixture = set_up(TEST_CASE_NAME); \ 99 if (fixture != NULL) {\ 100 result = execute_func(fixture);\ 101 tear_down(fixture);\
|
| /netbsd-src/external/mit/libuv/dist/test/ |
| H A D | test-fs-copyfile.c | 36 static const char fixture[] = "test/fixtures/load_error.node"; variable 137 r = uv_fs_copyfile(NULL, &req, fixture, dst, 0, NULL); in TEST_IMPL() 149 r = uv_fs_copyfile(NULL, &req, fixture, dst, 0, NULL); in TEST_IMPL() 154 r = uv_fs_copyfile(NULL, &req, fixture, dst, UV_FS_COPYFILE_EXCL, NULL); in TEST_IMPL() 174 r = uv_fs_copyfile(loop, &req, fixture, dst, 0, handle_result); in TEST_IMPL() 182 r = uv_fs_copyfile(loop, &req, fixture, dst, -1, fail_cb); in TEST_IMPL() 188 r = uv_fs_copyfile(NULL, &req, fixture, dst, UV_FS_COPYFILE_FICLONE, NULL); in TEST_IMPL() 194 r = uv_fs_copyfile(NULL, &req, fixture, dst, UV_FS_COPYFILE_FICLONE_FORCE, in TEST_IMPL() 206 r = uv_fs_copyfile(NULL, &req, fixture, dst, 0, NULL); in TEST_IMPL()
|
| /netbsd-src/external/mpl/bind/dist/bin/tests/system/statschannel/ |
| H A D | conftest.py | 17 @pytest.fixture(scope="module")
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/M68k/ |
| H A D | M68kInstrInfo.td | 538 // vt: Type of data this fixture refers to
|
| /netbsd-src/external/apache2/llvm/dist/libcxx/utils/google-benchmark/ |
| H A D | README.md | 637 Also you can create templated fixture by using the following macros:
|
| /netbsd-src/external/apache2/llvm/dist/llvm/utils/benchmark/ |
| H A D | README.md | 605 Also you can create templated fixture by using the following macros:
|