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

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)