Home
last modified time | relevance | path

Searched refs:test (Results 1 – 25 of 421) sorted by relevance

12345678910>>...17

/openssl/fuzz/
H A Dbuild.info147 …PROGRAMS{noinst}=asn1-test asn1parse-test bignum-test bndiv-test client-test conf-test crl-test se…
148 PROGRAMS{noinst}=punycode-test pem-test decoder-test hashtable-test acert-test
169 PROGRAMS{noinst}=quic-client-test quic-srtm-test quic-lcidm-test
189 SOURCE[bndiv-test]=bndiv.c test-corpus.c
202 SOURCE[cms-test]=cms.c test-corpus.c
206 SOURCE[conf-test]=conf.c test-corpus.c
210 SOURCE[crl-test]=crl.c test-corpus.c
214 SOURCE[ct-test]=ct.c test-corpus.c
226 SOURCE[pem-test]=pem.c test-corpus.c
238 SOURCE[acert-test]=acert.c test-corpus.c
[all …]
/openssl/test/
H A Dcmactest.c40 } test[] = { variable
148 || !TEST_false(CMAC_Update(ctx, test[0].data, test[0].data_len)) in test_cmac_bad()
156 || !TEST_true(CMAC_Update(ctx, test[0].data, test[0].data_len)) in test_cmac_bad()
197 if (!TEST_true(CMAC_Init(ctx, test[0].key, test[0].key_len, in test_cmac_run()
207 if (!TEST_true(CMAC_Init(ctx, test[1].key, test[1].key_len, in test_cmac_run()
244 if (!TEST_true(CMAC_Init(ctx, test[3].key, test[3].key_len, in test_cmac_run()
253 if (!TEST_true(CMAC_Init(ctx, test[4].key, test[4].key_len, in test_cmac_run()
262 if (!TEST_true(CMAC_Init(ctx, test[5].key, test[5].key_len, in test_cmac_run()
272 if (!TEST_true(CMAC_Init(ctx, test[6].key, test[6].key_len, in test_cmac_run()
283 if (!TEST_true(CMAC_Init(ctx, test[7].key, test[7].key_len, in test_cmac_run()
[all …]
H A Dgenerate_ssl_tests.pl54 foreach my $test (@ssltests::tests) {
55 $test->{"server"} = { (%ssltests::base_server, %{$test->{"server"}}) };
56 if (defined $test->{"server2"}) {
57 $test->{"server2"} = { (%ssltests::base_server, %{$test->{"server2"}}) };
65 $test->{"server2"} = { };
68 $test->{"resume_server"} = { (%ssltests::base_server, %{$test->{"resume_server"}}) };
76 $test->{"resume_server"} = { };
78 $test->{"client"} = { (%ssltests::base_client, %{$test->{"client"}}) };
80 $test->{"resume_client"} = { (%ssltests::base_client, %{$test->{"resume_client"}}) };
116 foreach my $test (@ssltests::tests) {
[all …]
H A Dhmactest.c41 } test[8] = { variable
92 ebcdic2ascii(test[0].data, test[0].data, test[0].data_len); in test_hmac_md5()
93 ebcdic2ascii(test[1].data, test[1].data, test[1].data_len); in test_hmac_md5()
94 ebcdic2ascii(test[2].key, test[2].key, test[2].key_len); in test_hmac_md5()
95 ebcdic2ascii(test[2].data, test[2].data, test[2].data_len); in test_hmac_md5()
99 test[idx].key, test[idx].key_len, in test_hmac_md5()
100 test[idx].data, test[idx].data_len, NULL, NULL), in test_hmac_md5()
116 || !TEST_false(HMAC_Update(ctx, test[4].data, test[4].data_len)) in test_hmac_bad()
147 || !TEST_true(HMAC_Update(ctx, test[4].data, test[4].data_len)) in test_hmac_run()
160 || !TEST_true(HMAC_Update(ctx, test[5].data, test[5].data_len)) in test_hmac_run()
[all …]
H A Dhexstr_test.c68 struct testdata *test = &tbl_testdata[test_index]; in test_hexstr_sep_to_from() local
70 if (!TEST_ptr(buf = ossl_hexstr2buf_sep(test->in, &len, test->sep)) in test_hexstr_sep_to_from()
71 || !TEST_mem_eq(buf, len, test->expected, test->expected_len) in test_hexstr_sep_to_from()
73 || !TEST_str_eq(out, test->in)) in test_hexstr_sep_to_from()
91 if (test->sep != '_') { in test_hexstr_to_from()
93 || !TEST_mem_eq(buf, len, test->expected, test->expected_len) in test_hexstr_to_from()
96 if (test->sep == ':') { in test_hexstr_to_from()
97 if (!TEST_str_eq(out, test->in)) in test_hexstr_to_from()
99 } else if (!TEST_str_ne(out, test->in)) { in test_hexstr_to_from()
121 && TEST_mem_eq(buf, len, test->expected, test->expected_len) in test_hexstr_ex_to_from()
[all …]
H A DREADME.md33 $ make test VF=1
38 $ make test VFP=1
101 $ make TESTS='-test_fuzz*' test
112 Run only test group 10:
114 $ make TESTS='10' test
118 $ make TESTS='-99' test
122 $ make TESTS='[89]? -90' test
150 $ make HARNESS_JOBS=4 test
155 Some tests use random numbers as part of the test. In some cases a test failure
161 When a test fails the test harness will display the seed used during the test
[all …]
H A DREADME-dev.md1 Guidelines for test developers
19 A test executable is named `test/{name}test.c`
21 A test recipe is named `test/recipes/{nn}-test_{name}.t`, where `{nn}` is a two
56 expects it to be located in `test/`
85 # test feature 1
90 # test feature 2
93 Changes to test/build.info
96 Whenever a new test involves a new test executable you need to do the
98 test):
104 basic test framework:
[all …]
H A DREADME.ssltest.md9 The precise test output can be dependent on the library configuration. The test
14 `test/ssl-tests/*.cnf` files.
18 Configuring the test
40 - Resume - test resumption
212 Adding a test to the test harness
215 1. Add a new test configuration to `test/ssl-tests`, following the examples of
222 $ cd test
253 Running a test manually
263 $ CTLOG_FILE=test/ct/log_list.cnf TEST_CERTS_DIR=test/certs test/ssl_test \
268 $ CTLOG_FILE=test/ct/log_list.cnf TEST_CERTS_DIR=test/certs \
[all …]
H A Dstrtoultest.c73 struct strtoul_test_entry *test = &strtoul_tests[idx]; in test_strtoul() local
78 err = OPENSSL_strtoul(test->input, &endptr, test->base, &val); in test_strtoul()
83 if (!TEST_int_eq(err, test->expect_err)) in test_strtoul()
88 if (!TEST_ptr_eq(endptr, &test->input[test->expect_endptr_offset])) in test_strtoul()
94 if (test->expect_err == 1) { in test_strtoul()
95 if (!TEST_ulong_eq(val, test->expect_val)) in test_strtoul()
H A Dsslbuffertest.c72 static int test_func(int test) in test_func() argument
107 if (test >= 1 && (!TEST_true(SSL_free_buffers(clientssl)) in test_func()
110 if (test >= 2 && (!TEST_true(SSL_alloc_buffers(clientssl)) in test_func()
117 if (test >= 4 && (!TEST_true(SSL_free_buffers(clientssl)) in test_func()
144 if (test >= 5 && (!TEST_true(SSL_free_buffers(serverssl)) in test_func()
199 static int test_free_buffers(int test) in test_free_buffers() argument
206 int i, pipeline = test > 3; in test_free_buffers()
213 test -= 4; in test_free_buffers()
242 if (test == 0) { in test_free_buffers()
267 switch(test) { in test_free_buffers()
[all …]
/openssl/test/recipes/
H A D25-test_d2i.t21 ok(run(test(["d2i_test", "X509", "decode",
25 ok(run(test(["d2i_test", "GENERAL_NAME", "decode",
29 ok(run(test(["d2i_test", "ASN1_ANY", "BIO",
38 ok(run(test(["d2i_test", "ASN1_ANY", "OK",
44 ok(run(test(["d2i_test", "ASN1_INTEGER", "decode",
50 ok(run(test(["d2i_test", "ASN1_INTEGER", "OK",
54 ok(run(test(["d2i_test", "ASN1_INTEGER", "OK",
58 ok(run(test(["d2i_test", "ASN1_INTEGER", "OK",
62 ok(run(test(["d2i_test", "ASN1_ANY", "OK",
66 ok(run(test(["d2i_test", "ASN1_ANY", "OK",
[all …]
H A D20-test_enc.t29 my $test = catfile(".", "p");
49 unless (ok(copy($testsrc, $test), "Copying $testsrc to $test")) {
59 my $cipherfile = "$test.$c.cipher";
60 my $clearfile = "$test.$c.clear";
64 $cipherfile = "$test.cipher";
65 $clearfile = "$test.clear";
70 ok(run(app([$cmd, @e, @prov, "-in", $test, "-out", $cipherfile]))
72 && compare_text($test,$clearfile) == 0, $t);
75 ok(run(app([$cmd, "enc", "-in", $test, "-aes256", "-pbkdf2", "-out",
79 && compare_text($test,"salted_default.clear") == 0,
[all …]
H A D80-test_ssl_old.t428 ok(run(test([@ssltest, "-bio_pair", "-ssl3"])),
442 ok(run(test([@ssltest, "-bio_pair"])),
465 ok(run(test([@ssltest, "-bio_pair", "-server_auth", @CA])),
477 ok(run(test([@ssltest, "-ipv4"])),
479 ok(run(test([@ssltest, "-ipv4", "-client_ktls"])),
481 ok(run(test([@ssltest, "-ipv4", "-server_ktls"])),
490 ok(run(test([@ssltest, "-ipv6"])),
492 ok(run(test([@ssltest, "-ipv6", "-client_ktls"])),
494 ok(run(test([@ssltest, "-ipv6", "-server_ktls"])),
579 ok(run(test([@ssltest, @exkeys, "-cipher",
[all …]
H A D90-test_includes.t22 ok(run(test(["conf_include_test", data_file("includes.cnf")])), "test directory includes");
23 ok(run(test(["conf_include_test", data_file("includes-file.cnf")])), "test file includes");
24 ok(run(test(["conf_include_test", data_file("includes-eq.cnf")])), "test includes with equal charac…
25 ok(run(test(["conf_include_test", data_file("includes-eq-ws.cnf")])), "test includes with equal and…
27 ok(run(test(["conf_include_test", data_file("vms-includes.cnf")])),
29 ok(run(test(["conf_include_test", data_file("vms-includes-file.cnf")])),
32 ok(run(test(["conf_include_test", "-f", data_file("includes-broken.cnf")])), "test broken includes"…
33 ok(run(test(["conf_include_test", "-f", data_file("incdir.cnf")])), "test includedir");
38 ok(run(test(["conf_include_test", "-providers", data_file("includes-prov-dir.cnf")])),
H A D30-test_pairwise_fail.t28 run(test(["fips_version_test", "-config", $provconf, ">=3.1.0"]),
34 ok(run(test(["pairwise_fail_test", "-config", $provconf,
42 ok(run(test(["pairwise_fail_test", "-config", $provconf,
48 ok(run(test(["pairwise_fail_test", "-config", $provconf,
56 ok(run(test(["pairwise_fail_test", "-config", $provconf,
62 ok(run(test(["pairwise_fail_test", "-config", $provconf,
71 run(test(["fips_version_test", "-config", $provconf, ">=3.3.0"]),
76 ok(run(test(["pairwise_fail_test", "-config", $provconf,
/openssl/
H A D.gitignore94 /test/sha256t
95 /test/sha512t
98 /test/*test
101 /test/fips_dhvs
103 /test/fips_dssvs
106 /test/fips_rngvs
109 /test/x509aux
110 /test/v3ext
111 /test/versions
114 /test/confdump
[all …]
/openssl/test/recipes/30-test_evp_data/
H A Devppkey_ecdsa_rfc6979.txt119 Input = "test"
124 Input = "test"
129 Input = "test"
136 Input = "test"
141 Input = "test"
146 Input = "test"
153 Input = "test"
158 Input = "test"
163 Input = "test"
170 Input = "test"
[all …]
/openssl/test/ssl-tests/
H A D13-fragmentation.cnf.in24 test => {
32 test => {
40 test => {
48 test => {
56 test => {
65 test => {
74 test => {
82 test => {
90 test => {
99 test => {
[all …]
H A D02-protocol-version.cnf704 [test-0]
729 [test-1]
754 [test-2]
779 [test-3]
804 [test-4]
828 [test-5]
854 [test-6]
880 [test-7]
906 [test-8]
932 [test-9]
[all …]
H A D03-custom_verify.cnf.in10 ## SSL test configurations
22 test => { "ExpectedResult" => "Success" },
34 test => {
49 test => {
63 test => {
77 test => { "ExpectedResult" => "Success" },
92 test => {
109 test => {
123 test => {
139 test => {
[all …]
H A D07-dtls-protocol-version.cnf90 [test-0]
117 [test-1]
143 [test-2]
171 [test-3]
199 [test-4]
226 [test-5]
254 [test-6]
280 [test-7]
306 [test-8]
333 [test-9]
[all …]
H A D09-alpn.cnf.in31 test => {
47 test => {
63 test => {
79 test => {
92 test => {
104 test => {
127 test => {
151 test => {
174 test => {
194 test => {
[all …]
H A D08-npn.cnf.in31 test => {
48 test => {
65 test => {
82 test => {
95 test => {
109 test => {
126 test => {
144 test => {
168 test => {
193 test => {
[all …]
H A D17-renegotiate.cnf.in26 test => {
39 test => {
53 test => {
66 test => {
85 test => {
104 test => {
121 test => {
142 test => {
161 test => {
180 test => {
[all …]
/openssl/test/recipes/80-test_cmp_http_data/
H A Dtest_enrollment.csv4 …,,BLANK,, -certout,_RESULT_DIR/test.certout_newkey.pem,, -out_trusted,root.crt,,BLANK,,BLANK,,,,-c…
48 …ypass,pass:,,,BLANK,,,,BLANK,, -sans,localhost test,BLANK,,BLANK,,BLANK,,BLANK,, -certout,_RESULT_…
53 …BLANK,,BLANK,, -certout,_RESULT_DIR/test.certout_sans_default.pem,, -out_trusted,root.crt,, -oldce…
69 …rusted,root.crt,,BLANK,,BLANK,,,,-cert,_RESULT_DIR/test.certout_newkey.pem,-untrusted,_RESULT_DIR/
70 …ed,root.crt,,BLANK,,BLANK,,,,-certout,_RESULT_DIR/test.certout_chainout.pem,,-chainout,_RESULT_DIR…
89 …,,BLANK,,BLANK,, -certout,_RESULT_DIR/test.certout_oldcert.pem,, -out_trusted,root.crt,, -oldcert,…
112test.certout_kur.pem,, -out_trusted,root.crt,, -oldcert,_RESULT_DIR/test.certout_newkey.pem,BLANK,…
114 …NK,,BLANK,,BLANK,, -certout,_RESULT_DIR/test.certout_kur1.pem,, -out_trusted,root.crt,, -oldcert,_…
116 …NK,,BLANK,,BLANK,, -certout,_RESULT_DIR/test.certout_kur3.pem,, -out_trusted,root.crt,, -oldcert,_…
117 …NK,,BLANK,,BLANK,, -certout,_RESULT_DIR/test.certout_kur4.pem,, -out_trusted,root.crt,, -oldcert,_…
[all …]

Completed in 87 milliseconds

12345678910>>...17