Home
last modified time | relevance | path

Searched refs:fixture (Results 1 – 25 of 30) sorted by relevance

12

/freebsd-14.2/crypto/openssl/test/
H A Dcmp_protect_test.c40 if (fixture != NULL) { in tear_down()
57 if (!TEST_ptr(fixture = OPENSSL_zalloc(sizeof(*fixture)))) in set_up()
64 return fixture; in set_up()
79 ossl_cmp_calc_protection(fixture->cmp_ctx, fixture->msg); in execute_calc_protection_fails_test()
89 ossl_cmp_calc_protection(fixture->cmp_ctx, fixture->msg); in execute_calc_protection_pbmac_test()
133 ossl_cmp_calc_protection(fixture->cmp_ctx, fixture->msg); in execute_calc_protection_signature_test()
152 fixture = NULL; in test_cmp_calc_protection_no_key_no_secret()
166 fixture = NULL; in test_cmp_calc_protection_pkey()
181 fixture = NULL; in test_cmp_calc_protection_pbmac()
339 X509_build_chain(fixture->cert, fixture->certs, NULL, in execute_cmp_build_cert_chain_test()
[all …]
H A Dcmp_msg_test.c43 OPENSSL_free(fixture); in tear_down()
52 if (!TEST_ptr(fixture = OPENSSL_zalloc(sizeof(*fixture)))) in set_up()
63 return fixture; in set_up()
97 EXECUTE_MSG_CREATION_TEST(ossl_cmp_error_new(fixture->cmp_ctx, fixture->si, in execute_errormsg_create_test()
127 (fixture->cmp_ctx, fixture->bodytype)); in execute_pkimessage_create_test()
159 fixture = NULL; in test_cmp_create_ir_protection_set()
176 fixture = NULL; in test_cmp_create_ir_protection_fails()
200 fixture = NULL; in test_cmp_create_cr()
214 fixture = NULL; in test_cmp_create_certreq_with_invalid_bodytype()
234 fixture = NULL; in test_cmp_create_p10cr()
[all …]
H A Dcmp_vfy_test.c47 OPENSSL_free(fixture); in tear_down()
57 if (!TEST_ptr(fixture = OPENSSL_zalloc(sizeof(*fixture)))) in set_up()
72 return fixture; in set_up()
111 ossl_cmp_verify_popo(fixture->cmp_ctx, fixture->msg, in execute_verify_popo_test()
161 fixture = NULL; in test_validate_msg_mac_alg_protection()
197 fixture = NULL; in test_validate_msg_mac_alg_protection_bad()
227 fixture = NULL; in test_validate_msg_signature_partial_chain()
262 fixture = NULL; in test_validate_msg_signature_srvcert()
298 fixture = NULL; in test_validate_msg_signature_sender_cert_untrusted()
312 fixture = NULL; in test_validate_msg_signature_sender_cert_trusted()
[all …]
H A Dct_test.c64 if (!TEST_ptr(fixture = OPENSSL_zalloc(sizeof(*fixture)))) in set_up()
72 return fixture; in set_up()
75 if (fixture != NULL) in set_up()
77 OPENSSL_free(fixture); in set_up()
84 if (fixture != NULL) { in tear_down()
88 OPENSSL_free(fixture); in tear_down()
237 sct_text_len = read_text_file(fixture->sct_dir, fixture->sct_text_file, in execute_cert_test()
317 if (!TEST_mem_eq(fixture->tls_sct_list, fixture->tls_sct_list_len, in execute_cert_test()
379 fixture->expected_sct_count = fixture->expected_valid_sct_count = 1; in test_verify_one_sct()
391 fixture->expected_sct_count = fixture->expected_valid_sct_count = 3; in test_verify_multiple_scts()
[all …]
H A Dcmp_hdr_test.c28 OPENSSL_free(fixture); in tear_down()
35 if (!TEST_ptr(fixture = OPENSSL_zalloc(sizeof(*fixture)))) in set_up()
42 return fixture; in set_up()
45 tear_down(fixture); in set_up()
63 fixture->expected = 1; in test_HDR_set_get_pvno()
85 if (!TEST_int_eq(ossl_cmp_hdr_init(fixture->cmp_ctx, fixture->hdr), in execute_HDR_get0_senderNonce_test()
103 fixture->expected = 1; in test_HDR_get0_senderNonce()
137 fixture->expected = 1; in test_HDR_set1_sender()
418 ossl_cmp_hdr_init(fixture->cmp_ctx, fixture->hdr))) in execute_HDR_init_test()
457 fixture = NULL; in test_HDR_init_with_ref()
[all …]
H A Dcmp_client_test.c53 OPENSSL_free(fixture); in tear_down()
62 if (!TEST_ptr(fixture = OPENSSL_zalloc(sizeof(*fixture)))) in set_up()
85 fixture->req_type = -1; in set_up()
86 return fixture; in set_up()
89 tear_down(fixture); in set_up()
193 ossl_cmp_mock_srv_set1_caPubsOut(fixture->srv_ctx, fixture->caPubs); in test_exec_IR_ses()
331 ctx = fixture->cmp_ctx; in test_exec_P10CR_ses()
337 fixture = NULL; in test_exec_P10CR_ses()
378 fixture->expected = 1; in test_try_certreq_poll()
403 fixture->expected = 1; in test_try_certreq_poll_abort()
[all …]
H A Dcmp_asn_test.c28 if (!TEST_ptr(fixture = OPENSSL_zalloc(sizeof(*fixture)))) in set_up()
31 return fixture; in set_up()
37 if (fixture->tgt_string != fixture->src_string) in tear_down()
40 OPENSSL_free(fixture); in tear_down()
74 fixture->expected = 1; in test_cmp_asn1_get_int()
95 fixture->expected = 1; in test_ASN1_OCTET_STRING_set()
100 tear_down(fixture); in test_ASN1_OCTET_STRING_set()
101 fixture = NULL; in test_ASN1_OCTET_STRING_set()
110 fixture->expected = 1; in test_ASN1_OCTET_STRING_set_tgt_is_src()
112 || !(fixture->tgt_string = fixture->src_string) in test_ASN1_OCTET_STRING_set_tgt_is_src()
[all …]
H A Dssl_test_ctx_test.c112 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()
118 OPENSSL_free(fixture); in set_up()
121 return fixture; in set_up()
142 SSL_TEST_CTX_free(fixture->expected_ctx); in tear_down()
143 OPENSSL_free(fixture); in tear_down()
154 fixture->test_section = "ssltest_default"; in test_empty_configuration()
163 fixture->test_section = "ssltest_good"; in test_good_configuration()
166 fixture->expected_ctx->app_data_size = 1024; in test_good_configuration()
[all …]
H A Dcmp_status_test.c24 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
54 if (!TEST_int_eq(fixture->pkistatus, status) in execute_PKISI_test()
61 || !TEST_mem_eq(fixture->text, strlen(fixture->text), in execute_PKISI_test()
65 if (!TEST_int_eq(fixture->pkifailure, in execute_PKISI_test()
[all …]
H A Dcipherlist_test.c33 if (fixture != NULL) { 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()
50 tear_down(fixture); in set_up()
53 return fixture; in set_up()
186 return fixture != NULL in execute_test()
209 tear_down(fixture); in test_default_cipherlist_explicit()
210 fixture = NULL; in test_default_cipherlist_explicit()
[all …]
H A Dcmp_server_test.c25 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()
40 return fixture; in set_up()
43 tear_down(fixture); in set_up()
64 OSSL_CMP_SRV_CTX *ctx = fixture->srv_ctx; in execute_test_handle_request()
115 fixture->req = request; in test_handle_request()
[all …]
H A Dkeymgmt_internal_test.c40 static void tear_down(FIXTURE *fixture) in tear_down() argument
42 if (fixture != NULL) { 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()
57 || !TEST_ptr(fixture->prov1 = OSSL_PROVIDER_load(fixture->ctx1, in set_up()
60 || !TEST_ptr(fixture->prov2 = OSSL_PROVIDER_load(fixture->ctx2, in set_up()
62 tear_down(fixture); in set_up()
[all …]
H A Dcmp_ctx_test.c28 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()
40 tear_down(fixture); in set_up()
44 return fixture; in set_up()
67 OSSL_CMP_CTX *ctx = fixture->ctx; in execute_CTX_reinit_test()
141 OSSL_CMP_CTX *ctx = fixture->ctx; in execute_CTX_print_errors_test()
341 CMP_CTX *ctx = fixture->ctx; \
[all …]
H A Dmodes_internal_test.c183 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 Dtestutil.h99 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);\
/freebsd-14.2/contrib/googletest/docs/
H A Dprimer.md92 *test fixture* class.
211 To create a fixture:
214 we'll want to access fixture members from sub-classes.
227 access objects and subroutines in the test fixture:
253 changes one test makes to the fixture do not affect other tests.
294 Now we'll write tests using `TEST_F()` and this fixture.
353 * Creates a test fixture object for the first test.
357 * Runs the test on the fixture object.
359 * Cleans up the fixture via `TearDown()`.
361 * Deletes the fixture.
[all …]
H A Dfaq.md218 ## Can I derive a test fixture from another?
229 in a base test fixture, then deriving from that base a separate fixture for each
231 tests using each derived fixture.
236 // Defines a base test fixture.
242 // Derives a fixture FooTest from BaseTest.
246 BaseTest::SetUp(); // Sets up the base fixture first.
252 BaseTest::TearDown(); // Remember to tear down the base fixture
259 // Tests that use the fixture FooTest.
311 call `TearDown()`, and then delete the test fixture object.
413 …ave several test suites which share the same test fixture logic, do I have to define a new test fi…
[all …]
H A Dsamples.md11 * Sample #3 uses a test fixture.
14 * Sample #5 puts shared testing logic in a base test fixture, and reuses it in
H A Dadvanced.md295 GTEST_SKIP() << "Skipping all tests for this fixture";
838 fixture, you must add the `::testing::Test::` prefix, as in:
876 > `TEST` body and the test fixture class.
1056 values. For convenience, you can just derive the fixture class from
1070 // You can implement all the usual fixture class members here.
1314 // To visit static members of the fixture, add the 'TestFixture::'
1347 First, define a fixture class template, as we did with typed tests:
1449 fixture as a friend to the class and define accessors in your fixture. Tests
1451 class via the accessors in the fixture. Note that even though your fixture
1454 fixture.
[all …]
H A Dgmock_faq.md232 fixture's set-up phase) and customize it with more specific rules later. If
/freebsd-14.2/contrib/googletest/docs/reference/
H A Dtesting.md39 Defines an individual test named *`TestName`* that uses the test fixture class
44 the name of a test fixture class—see
60 test fixture class *`TestFixtureName`*. The test suite name is
65 the name of a value-parameterized test fixture class—see
143 Defines a typed test suite based on the test fixture *`TestFixtureName`*. The
187 and `TestFixture` refers to the fixture class. See the following example:
196 // To visit static members of the fixture, add the 'TestFixture::'
200 // To refer to typedefs in the fixture, add the 'typename TestFixture::'
215 Defines a type-parameterized test suite based on the test fixture
238 and `TestFixture` refers to the fixture class. See [`TYPED_TEST`](#TYPED_TEST)
[all …]
/freebsd-14.2/contrib/googletest/googletest/test/
H A Dgoogletest-output-test-golden-lin.txt298 Expected failure #1, in the test fixture c'tor.
318 Expected failure #5, in the test fixture d'tor.
327 Expected failure #1, in the test fixture c'tor.
332 Expected failure #2, in the test fixture d'tor.
356 Expected failure #4, in the test fixture d'tor.
375 Expected failure #3, in the test fixture d'tor.
403 All tests in the same test suite must use the same test fixture
406 using two different test fixture classes. This can happen if
419 using two different test fixture classes. This can happen if
435 using two different test fixture classes. This can happen if
[all …]
/freebsd-14.2/crypto/openssl/util/
H A Dcheck-format-test-negatives.c424 TEST_FIXTURE *fixture) \
426 CTX *ctx = fixture->ctx; \
/freebsd-14.2/tests/
H A Dconftest.py53 @pytest.fixture(autouse=True, scope="session")
/freebsd-14.2/sys/contrib/device-tree/Bindings/arm/
H A Darm,integrator.yaml29 special metal fixture called Integrator/PP2, see ARM DUI 0169A.

12