Matt Caswell f4764841dc Update copyright year 5 年之前
..
certs c2c2c7b3f1 Limit scope of CN name constraints 6 年之前
ct 8c6afbc55c Verify SCT signatures 8 年之前
d2i-tests e9fcdd2e69 add test for CVE-2016-7053 8 年之前
ocsp-tests bfb10f970f Fix OCSP_basic_verify() cert chain construction in case bs->certs is NULL 7 年之前
recipes f4764841dc Update copyright year 5 年之前
smime-certs 3b8986d39d Add alternative CMS P-256 cert 7 年之前
ssl-tests f520f134d1 Update copyright year 6 年之前
CAss.cnf a7be5759cf RT3809: basicConstraints is critical 8 年之前
CAssdh.cnf 58964a4922 Import of old SSLeay release: SSLeay 0.9.0b 26 年之前
CAssdsa.cnf 58964a4922 Import of old SSLeay release: SSLeay 0.9.0b 26 年之前
CAssrsa.cnf 58964a4922 Import of old SSLeay release: SSLeay 0.9.0b 26 年之前
CAtsa.cnf 2cc7acd273 Use better defaults for TSA. 9 年之前
P1ss.cnf fec669388c Use 2K RSA and SHA256 in tests 9 年之前
P2ss.cnf fec669388c Use 2K RSA and SHA256 in tests 9 年之前
README 6c80afbd6c test/README: clarify test number groups 8 年之前
README.ssltest.md 75f12d7cbf Add new ssl_test option. 8 年之前
Sssdsa.cnf 58964a4922 Import of old SSLeay release: SSLeay 0.9.0b 26 年之前
Sssrsa.cnf 58964a4922 Import of old SSLeay release: SSLeay 0.9.0b 26 年之前
Uss.cnf cb0585c2cb Create DSA and ECDSA certificates. 9 年之前
aborttest.c 440e5d805f Copyright consolidation 02/10 8 年之前
afalgtest.c 0d9fece7d4 afalg: Fix kernel version check 7 年之前
asynciotest.c f520f134d1 Update copyright year 6 年之前
asynctest.c 4c8b3b5c5a asynctest: don't depend on apps 7 年之前
bad_dtls_test.c fae00c9321 Remove unicode characters from source 7 年之前
bftest.c a836f9fa95 Standardize syntax of sizeof(foo) 7 年之前
bio_enc_test.c 61884b8140 Fix bio_enc_test 8 年之前
bioprinttest.c 6b4a77f56e Whitespace cleanup in apps 8 年之前
bntest.c c4e901dbdb Test for constant-time flag leakage in BN_CTX 5 年之前
build.info b7fc0784c4 [test] unit test for field_inv function pointer in EC_METHOD 5 年之前
casttest.c 440e5d805f Copyright consolidation 02/10 8 年之前
cipherlist_test.c d33726b92e To avoid SWEET32 attack, move 3DES to weak 8 年之前
clienthellotest.c f520f134d1 Update copyright year 6 年之前
cms-examples.pl e0a651945c Copyright consolidation: perl files 8 年之前
constant_time_test.c 440e5d805f Copyright consolidation 02/10 8 年之前
crltest.c ff7256e759 GH2176: Add X509_VERIFY_PARAM_get_time 8 年之前
ct_test.c a8e613cc51 Update copyright year 6 年之前
d2i_test.c a836f9fa95 Standardize syntax of sizeof(foo) 7 年之前
danetest.c 3aa62f3951 Fix some -Wshadow warnings 7 年之前
danetest.in 5ae4ceb92c Perform DANE-EE(3) name checks by default 8 年之前
danetest.pem 170b735820 DANE support for X509_verify_cert() 9 年之前
destest.c 6025001707 spelling fixes, just comments and readme. 8 年之前
dhtest.c a836f9fa95 Standardize syntax of sizeof(foo) 7 年之前
dsatest.c a836f9fa95 Standardize syntax of sizeof(foo) 7 年之前
dtlstest.c f520f134d1 Update copyright year 6 年之前
dtlsv1listentest.c 65e2d67254 Simplify and rename SSL_set_rbio() and SSL_set_wbio() 8 年之前
ec_internal_test.c b7fc0784c4 [test] unit test for field_inv function pointer in EC_METHOD 5 年之前
ecdsatest.c 6025001707 spelling fixes, just comments and readme. 8 年之前
ectest.c a836f9fa95 Standardize syntax of sizeof(foo) 7 年之前
enginetest.c 20fe5052ba Backport key redirection test from master branch 7 年之前
errtest.c 1ae891c6b1 Save and restore the Windows error around TlsGetValue. 6 年之前
evp_extra_test.c 374804bd09 Key zeroization fix for EVP_SealInit. 6 年之前
evp_test.c 6244f53177 Update copyright year 6 年之前
exdatatest.c 8ab4fed9bd Fix ex_data and session_dup issues 7 年之前
exptest.c 0aa0e13a6a Fix typo in comment 7 年之前
fatalerrtest.c f520f134d1 Update copyright year 6 年之前
generate_buildtest.pl 5cdad22f3e Move the building of test/buildtest_*. to be done unconditionally 8 年之前
generate_ssl_tests.pl 470a601705 Consolidate the locations where we have our internal perl modules 7 年之前
gmdifftest.c 440e5d805f Copyright consolidation 02/10 8 年之前
handshake_helper.c f520f134d1 Update copyright year 6 年之前
handshake_helper.h 75f12d7cbf Add new ssl_test option. 8 年之前
heartbeat_test.c 464175692f Simplify SSL BIO buffering logic 8 年之前
hmactest.c 8a3c000c8f Fix hmac test case 6 8 年之前
ideatest.c 440e5d805f Copyright consolidation 02/10 8 年之前
igetest.c a836f9fa95 Standardize syntax of sizeof(foo) 7 年之前
md2test.c d166ed8c11 check return values for EVP_Digest*() APIs 8 年之前
md4test.c d166ed8c11 check return values for EVP_Digest*() APIs 8 年之前
md5test.c d166ed8c11 check return values for EVP_Digest*() APIs 8 年之前
mdc2test.c d166ed8c11 check return values for EVP_Digest*() APIs 8 年之前
memleaktest.c 440e5d805f Copyright consolidation 02/10 8 年之前
methtest.c 440e5d805f Copyright consolidation 02/10 8 年之前
ocspapitest.c c24470d036 Wrap more of ocspapitest.c in OPENSSL_NO_OCSP 7 年之前
p5_crpt2_test.c 93b8981d89 Useless includes 8 年之前
packettest.c 440e5d805f Copyright consolidation 02/10 8 年之前
pbelutest.c 440e5d805f Copyright consolidation 02/10 8 年之前
pkcs7-1.pem d02b48c63a Import of old SSLeay release: SSLeay 0.8.1b 26 年之前
pkcs7.pem d02b48c63a Import of old SSLeay release: SSLeay 0.8.1b 26 年之前
pkits-test.pl e0a651945c Copyright consolidation: perl files 8 年之前
r160test.c 440e5d805f Copyright consolidation 02/10 8 年之前
randtest.c 440e5d805f Copyright consolidation 02/10 8 年之前
rc2test.c 440e5d805f Copyright consolidation 02/10 8 年之前
rc4test.c 440e5d805f Copyright consolidation 02/10 8 年之前
rc5test.c 440e5d805f Copyright consolidation 02/10 8 年之前
rmdtest.c d166ed8c11 check return values for EVP_Digest*() APIs 8 年之前
rsa_complex.c 55b1542ca5 Add a compile time test to verify that openssl/rsa.h and complex.h can 6 年之前
rsa_test.c a836f9fa95 Standardize syntax of sizeof(foo) 7 年之前
run_tests.pl 470a601705 Consolidate the locations where we have our internal perl modules 7 年之前
sanitytest.c a836f9fa95 Standardize syntax of sizeof(foo) 7 年之前
secmemtest.c a8e613cc51 Update copyright year 6 年之前
serverinfo.pem c655f40ed2 Require ServerInfo PEMs to be named "BEGIN SERVERINFO FOR"... 11 年之前
sha1test.c d166ed8c11 check return values for EVP_Digest*() APIs 8 年之前
sha256t.c d166ed8c11 check return values for EVP_Digest*() APIs 8 年之前
sha512t.c d166ed8c11 check return values for EVP_Digest*() APIs 8 年之前
shibboleth.pfx 70bf33d182 Add PKCS#12 UTF-8 interoperability test. 8 年之前
shlibloadtest.c 867dc5441a Fix a gcc-8 warning -Wcast-function-type 6 年之前
smcont.txt 382bb0b294 test/smcont.txt: trigger assertion in bio_enc.c. 8 年之前
srptest.c 25a127bde9 Add SRP test vectors from RFC5054 8 年之前
ssl_test.c f520f134d1 Update copyright year 6 年之前
ssl_test.tmpl f4941736a9 test/ssl_test.tmpl: make it work with elderly perl. 8 年之前
ssl_test_ctx.c d52c9b58a6 Fix a mem leak in ssl_test_ctx.c 8 年之前
ssl_test_ctx.h 9c5a691d57 Provide a test for the Encrypt-Then-Mac renegotiation crash 8 年之前
ssl_test_ctx_test.c 062ed73f58 Add some CertStatus tests 8 年之前
ssl_test_ctx_test.conf 6dc9974547 Port multi-buffer tests 8 年之前
sslapitest.c d2118367ad Add a test for SSL_pending() 6 年之前
sslcorrupttest.c f520f134d1 Update copyright year 6 年之前
ssltest_old.c f520f134d1 Update copyright year 6 年之前
ssltestlib.c f520f134d1 Update copyright year 6 年之前
ssltestlib.h f520f134d1 Update copyright year 6 年之前
test.cnf fec669388c Use 2K RSA and SHA256 in tests 9 年之前
testcrl.pem d02b48c63a Import of old SSLeay release: SSLeay 0.8.1b 26 年之前
testdsa.pem 79a578b902 Add private/public key conversion tests 9 年之前
testdsapub.pem 79a578b902 Add private/public key conversion tests 9 年之前
testec-p256.pem 79a578b902 Add private/public key conversion tests 9 年之前
testecpub-p256.pem 79a578b902 Add private/public key conversion tests 9 年之前
testp7.pem dcb1ef5c22 Change PKCS#7 test data to take account of removal of 24 年之前
testreq2.pem d02b48c63a Import of old SSLeay release: SSLeay 0.8.1b 26 年之前
testrsa.pem d02b48c63a Import of old SSLeay release: SSLeay 0.8.1b 26 年之前
testrsapub.pem 79a578b902 Add private/public key conversion tests 9 年之前
testsid.pem 45f55f6a5b Remove SSLv2 support 10 年之前
testutil.c ce2cdac278 SSL test framework: port NPN and ALPN tests 8 年之前
testutil.h 4c3376ec27 Add -Wundef to strict-warnings 7 年之前
testx509.pem d02b48c63a Import of old SSLeay release: SSLeay 0.8.1b 26 年之前
threadstest.c f1f5ee17b6 include/openssl: don't include <windows.h> in public headers. 8 年之前
v3-cert1.pem d02b48c63a Import of old SSLeay release: SSLeay 0.8.1b 26 年之前
v3-cert2.pem d02b48c63a Import of old SSLeay release: SSLeay 0.8.1b 26 年之前
v3ext.c e417070c9f Add some accessor API's 8 年之前
v3nametest.c 440e5d805f Copyright consolidation 02/10 8 年之前
verify_extra_test.c 6244f53177 Update copyright year 6 年之前
versions.c cde87deafa Refuse to run test_cipherlist unless shared library matches build 6 年之前
wp_test.c eeac54ef6d crypto/cryptlib.c: omit OPENSSL_ia32cap_loc(). 8 年之前
x509_dup_cert_test.c f96d3c1fc6 Avoid errors when loading a cert multiple times. 6 年之前
x509_time_test.c 6244f53177 Update copyright year 6 年之前
x509aux.c 2178c52a8b test/x509aux.c: Fix argv loop 8 年之前

README

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)