Tree @upstream/1.1.0h (Download .tar.gz)
- ..
- certs
- ct
- d2i-tests
- ocsp-tests
- recipes
- smime-certs
- ssl-tests
- aborttest.c
- afalgtest.c
- asynciotest.c
- asynctest.c
- bad_dtls_test.c
- bftest.c
- bio_enc_test.c
- bioprinttest.c
- bntest.c
- build.info
- CAss.cnf
- CAssdh.cnf
- CAssdsa.cnf
- CAssrsa.cnf
- casttest.c
- CAtsa.cnf
- cipherlist_test.c
- clienthellotest.c
- cms-examples.pl
- constant_time_test.c
- crltest.c
- ct_test.c
- d2i_test.c
- danetest.c
- danetest.in
- danetest.pem
- destest.c
- dhtest.c
- dsatest.c
- dtlstest.c
- dtlsv1listentest.c
- ecdsatest.c
- ectest.c
- enginetest.c
- evp_extra_test.c
- evp_test.c
- evptests.txt
- exdatatest.c
- exptest.c
- fatalerrtest.c
- generate_buildtest.pl
- generate_ssl_tests.pl
- gmdifftest.c
- handshake_helper.c
- handshake_helper.h
- heartbeat_test.c
- hmactest.c
- ideatest.c
- igetest.c
- md2test.c
- md4test.c
- md5test.c
- mdc2test.c
- memleaktest.c
- methtest.c
- ocspapitest.c
- P1ss.cnf
- P2ss.cnf
- p5_crpt2_test.c
- packettest.c
- pbelutest.c
- pkcs7-1.pem
- pkcs7.pem
- pkits-test.pl
- r160test.c
- randtest.c
- rc2test.c
- rc4test.c
- rc5test.c
- README
- README.ssltest.md
- rmdtest.c
- rsa_test.c
- run_tests.pl
- sanitytest.c
- secmemtest.c
- serverinfo.pem
- sha1test.c
- sha256t.c
- sha512t.c
- shibboleth.pfx
- shlibloadtest.c
- smcont.txt
- srptest.c
- ssl_test.c
- ssl_test.tmpl
- ssl_test_ctx.c
- ssl_test_ctx.h
- ssl_test_ctx_test.c
- ssl_test_ctx_test.conf
- sslapitest.c
- sslcorrupttest.c
- ssltest_old.c
- ssltestlib.c
- ssltestlib.h
- Sssdsa.cnf
- Sssrsa.cnf
- test.cnf
- testcrl.pem
- testdsa.pem
- testdsapub.pem
- testec-p256.pem
- testecpub-p256.pem
- testp7.pem
- testreq2.pem
- testrsa.pem
- testrsapub.pem
- testsid.pem
- testutil.c
- testutil.h
- testx509.pem
- threadstest.c
- Uss.cnf
- v3-cert1.pem
- v3-cert2.pem
- v3ext.c
- v3nametest.c
- verify_extra_test.c
- wp_test.c
- x509aux.c
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 | How to add recipes ================== For any test that you want to perform, you write a script located in test/recipes/, named {nn}-test_{name}.t, where {nn} is a two digit number and {name} is a unique name of your choice. Please note that if a test involves a new testing executable, you will need to do some additions in test/Makefile. More on this later. Naming conventions ================= A test executable is named test/{name}test.c A test recipe is named test/recipes/{nn}-test_{name}.t, where {nn} is a two digit number and {name} is a unique name of your choice. The number {nn} is (somewhat loosely) grouped as follows: 00-04 sanity, internal and essential API tests 05-09 individual symmetric cipher algorithms 10-14 math (bignum) 15-19 individual asymmetric cipher algorithms 20-24 openssl commands (some otherwise not tested) 25-29 certificate forms, generation and verification 30-35 engine and evp 60-79 APIs 70 PACKET layer 80-89 "larger" protocols (CA, CMS, OCSP, SSL, TSA) 90-99 misc A recipe that just runs a test executable ========================================= A script that just runs a program looks like this: #! /usr/bin/perl use OpenSSL::Test::Simple; simple_test("test_{name}", "{name}test", "{name}"); {name} is the unique name you have chosen for your test. The second argument to `simple_test' is the test executable, and `simple_test' expects it to be located in test/ For documentation on OpenSSL::Test::Simple, do `perldoc test/testlib/OpenSSL/Test/Simple.pm'. A recipe that runs a more complex test ====================================== For more complex tests, you will need to read up on Test::More and OpenSSL::Test. Test::More is normally preinstalled, do `man Test::More' for documentation. For OpenSSL::Test, do `perldoc test/testlib/OpenSSL/Test.pm'. A script to start from could be this: #! /usr/bin/perl use strict; use warnings; use OpenSSL::Test; setup("test_{name}"); plan tests => 2; # The number of tests being performed ok(test1, "test1"); ok(test2, "test1"); sub test1 { # test feature 1 } sub test2 { # test feature 2 } Changes to test/Makefile ======================== Whenever a new test involves a new test executable you need to do the following (at all times, replace {NAME} and {name} with the name of your test): * among the variables for test executables at the beginning, add a line like this: {NAME}TEST= {name}test * add `$({NAME}TEST)$(EXE_EXT)' to the assignment of EXE: * add `$({NAME}TEST).o' to the assignment of OBJ: * add `$({NAME}TEST).c' to the assignment of SRC: * add the following lines for building the executable: $({NAME}TEST)$(EXE_EXT): $({NAME}TEST).o $(DLIBCRYPTO) @target=$({NAME}TEST); $(BUILD_CMD) |
History of test @upstream/1.1.0h
- Update copyright year Matt Caswell 6 years ago
- Enhance ssltestlib's create_ssl_ctx_pair to take min and max proto version Richard Levitte 6 years ago
- Stop test/shlibloadtest.c from failing in a regression test Richard Levitte 6 years ago
- test/recipes/80-test_pkcs12.t: handle lack of Win32::API. Andy Polyakov 6 years ago
- test_ssl_old: avoid empty strings for flags Richard Levitte (commit: Matt Caswell) 6 years ago
- Add the SSL_OP_NO_RENEGOTIATION option to 1.1.0 Matt Caswell 6 years ago
- Don't break testing when runnins as root Richard Levitte 6 years ago
- Enable TLSProxy tests on Windows Richard Levitte 6 years ago
- Stop using unimplemented cipher classes. Bernd Edlinger 6 years ago
- Fix a gcc fallthru warning Bernd Edlinger 6 years ago
- Wrap more of ocspapitest.c in OPENSSL_NO_OCSP Benjamin Kaduk (commit: Ben Kaduk) 6 years ago
- Fix coverity-reported errors in ocspapitest Benjamin Kaduk (commit: Ben Kaduk) 6 years ago
- Add OCSP API test executable Benjamin Kaduk (commit: Ben Kaduk) 6 years ago
- Fix typo in comment Benjamin Kaduk 6 years ago
- Standardize syntax of sizeof(foo) Rich Salz 6 years ago
- Remove unicode characters from source Richard Levitte 6 years ago
- Fix the buffer sizing in the fatalerrtest Matt Caswell 6 years ago
- Add a test for CVE-2017-3737 Matt Caswell 6 years ago
- Avoid unnecessary MSYS2 conversion of some arguments Richard Levitte 6 years ago
- Consolidate the locations where we have our internal perl modules Richard Levitte 6 years ago
- Perl: Use our own globbing wrapper rather than File::Glob::glob Richard Levitte 6 years ago
- Spelling doc #3580 FdaSilvaYY (commit: Bernd Edlinger) 6 years ago
- afalg: Fix kernel version check Baptiste Jonglez (commit: Richard Levitte) 6 years ago
- Backport key redirection test from master branch Dr. Stephen Henson (commit: Richard Levitte) 6 years ago
- Skip ssl-tests/19-mac-then-encrypt.conf for no-tls1_2 Ben Kaduk 6 years ago
- Fix util/perl/OpenSSL/Test.pm input variable overwrite Richard Levitte 6 years ago
- Test mac-then-encrypt Emilia Kasper (commit: Richard Levitte) 6 years ago
- recipes/25-test_verify.t: reformat. Andy Polyakov 6 years ago
- Guard against DoS in name constraints handling. David Benjamin (commit: Andy Polyakov) 6 years ago
- Allow DH_set0_key with only private key. David Benjamin (commit: Bernd Edlinger) 6 years ago