FdaSilvaYY e5a5e3f3db Add checks on CRYPTO_set_ex_data return value hace 8 años
..
certs fbb82a60dc Move peer chain security checks into x509_vfy.c hace 8 años
ct 8c6afbc55c Verify SCT signatures hace 8 años
d2i-tests 2c7fe4dc9a Add ASN.1 INTEGER tests. hace 8 años
ocsp-tests 30c278aa6b Fix OCSP checking. hace 11 años
recipes d7295cd6d2 Add an async io test hace 8 años
smime-certs 75787fd833 Add X9.42 DH certificate to S/MIME test hace 11 años
ssl-tests a263f320eb Remove proxy tests. Add verify callback tests. hace 8 años
testlib 3732f12c66 testlib/OpenSSL/Test.pm: address 5.10 warnings. hace 8 años
CAss.cnf 5e355e0cff GH645: Fix typo: ctificates -> certificates hace 8 años
CAssdh.cnf 58964a4922 Import of old SSLeay release: SSLeay 0.9.0b hace 25 años
CAssdsa.cnf 58964a4922 Import of old SSLeay release: SSLeay 0.9.0b hace 25 años
CAssrsa.cnf 58964a4922 Import of old SSLeay release: SSLeay 0.9.0b hace 25 años
CAtsa.cnf 2cc7acd273 Use better defaults for TSA. hace 8 años
P1ss.cnf fec669388c Use 2K RSA and SHA256 in tests hace 9 años
P2ss.cnf fec669388c Use 2K RSA and SHA256 in tests hace 9 años
README 5ab4f893ce Add documentation for the new testing framework hace 8 años
README.ssltest.md a263f320eb Remove proxy tests. Add verify callback tests. hace 8 años
Sssdsa.cnf 58964a4922 Import of old SSLeay release: SSLeay 0.9.0b hace 25 años
Sssrsa.cnf 58964a4922 Import of old SSLeay release: SSLeay 0.9.0b hace 25 años
Uss.cnf cb0585c2cb Create DSA and ECDSA certificates. hace 8 años
aborttest.c 440e5d805f Copyright consolidation 02/10 hace 8 años
afalgtest.c 440e5d805f Copyright consolidation 02/10 hace 8 años
asynciotest.c d7295cd6d2 Add an async io test hace 8 años
asynctest.c 440e5d805f Copyright consolidation 02/10 hace 8 años
bftest.c 440e5d805f Copyright consolidation 02/10 hace 8 años
bntest.c 440e5d805f Copyright consolidation 02/10 hace 8 años
build.info d7295cd6d2 Add an async io test hace 8 años
casttest.c 440e5d805f Copyright consolidation 02/10 hace 8 años
cipherlist_test.c 5a22cf96a0 Replace cipherlist test hace 8 años
clienthellotest.c 440e5d805f Copyright consolidation 02/10 hace 8 años
cms-examples.pl e0a651945c Copyright consolidation: perl files hace 8 años
constant_time_test.c 440e5d805f Copyright consolidation 02/10 hace 8 años
ct_test.c 440e5d805f Copyright consolidation 02/10 hace 8 años
d2i_test.c 440e5d805f Copyright consolidation 02/10 hace 8 años
danetest.c e5a5e3f3db Add checks on CRYPTO_set_ex_data return value hace 8 años
danetest.in c0a445a9f2 Suppress DANE TLSA reflection when verification fails hace 8 años
danetest.pem 170b735820 DANE support for X509_verify_cert() hace 8 años
destest.c 440e5d805f Copyright consolidation 02/10 hace 8 años
dhtest.c 440e5d805f Copyright consolidation 02/10 hace 8 años
dsatest.c 440e5d805f Copyright consolidation 02/10 hace 8 años
dtlsv1listentest.c 440e5d805f Copyright consolidation 02/10 hace 8 años
ecdhtest.c 440e5d805f Copyright consolidation 02/10 hace 8 años
ecdhtest_cavs.h 440e5d805f Copyright consolidation 02/10 hace 8 años
ecdsatest.c 440e5d805f Copyright consolidation 02/10 hace 8 años
ectest.c 440e5d805f Copyright consolidation 02/10 hace 8 años
enginetest.c 440e5d805f Copyright consolidation 02/10 hace 8 años
evp_extra_test.c 440e5d805f Copyright consolidation 02/10 hace 8 años
evp_test.c 440e5d805f Copyright consolidation 02/10 hace 8 años
evptests.txt 1fab06a665 crypto/blake2: make lowest-level function handle multiple blocks.. hace 8 años
exdatatest.c 440e5d805f Copyright consolidation 02/10 hace 8 años
exptest.c 440e5d805f Copyright consolidation 02/10 hace 8 años
generate_ssl_tests.pl 6aa36e8e5a Add OpenSSL copyright to .pl files hace 8 años
gmdifftest.c 440e5d805f Copyright consolidation 02/10 hace 8 años
handshake_helper.c 440e5d805f Copyright consolidation 02/10 hace 8 años
handshake_helper.h 440e5d805f Copyright consolidation 02/10 hace 8 años
heartbeat_test.c 464175692f Simplify SSL BIO buffering logic hace 8 años
hmactest.c 440e5d805f Copyright consolidation 02/10 hace 8 años
ideatest.c 440e5d805f Copyright consolidation 02/10 hace 8 años
igetest.c 440e5d805f Copyright consolidation 02/10 hace 8 años
md2test.c 440e5d805f Copyright consolidation 02/10 hace 8 años
md4test.c 440e5d805f Copyright consolidation 02/10 hace 8 años
md5test.c 440e5d805f Copyright consolidation 02/10 hace 8 años
mdc2test.c 440e5d805f Copyright consolidation 02/10 hace 8 años
memleaktest.c 440e5d805f Copyright consolidation 02/10 hace 8 años
methtest.c 440e5d805f Copyright consolidation 02/10 hace 8 años
nptest.c 440e5d805f Copyright consolidation 02/10 hace 8 años
p5_crpt2_test.c 440e5d805f Copyright consolidation 02/10 hace 8 años
packettest.c 440e5d805f Copyright consolidation 02/10 hace 8 años
pbelutest.c 440e5d805f Copyright consolidation 02/10 hace 8 años
pkcs7-1.pem d02b48c63a Import of old SSLeay release: SSLeay 0.8.1b hace 25 años
pkcs7.pem d02b48c63a Import of old SSLeay release: SSLeay 0.8.1b hace 25 años
pkits-test.pl e0a651945c Copyright consolidation: perl files hace 8 años
r160test.c 440e5d805f Copyright consolidation 02/10 hace 8 años
randtest.c 440e5d805f Copyright consolidation 02/10 hace 8 años
rc2test.c 440e5d805f Copyright consolidation 02/10 hace 8 años
rc4test.c 440e5d805f Copyright consolidation 02/10 hace 8 años
rc5test.c 440e5d805f Copyright consolidation 02/10 hace 8 años
rmdtest.c 440e5d805f Copyright consolidation 02/10 hace 8 años
rsa_test.c 440e5d805f Copyright consolidation 02/10 hace 8 años
run_tests.pl 5a22cf96a0 Replace cipherlist test hace 8 años
secmemtest.c 440e5d805f Copyright consolidation 02/10 hace 8 años
serverinfo.pem c655f40ed2 Require ServerInfo PEMs to be named "BEGIN SERVERINFO FOR"... hace 10 años
sha1test.c 440e5d805f Copyright consolidation 02/10 hace 8 años
sha256t.c 440e5d805f Copyright consolidation 02/10 hace 8 años
sha512t.c 440e5d805f Copyright consolidation 02/10 hace 8 años
smcont.txt 7d7e640e0b Add extensive PCKS7 and CMS consistency test script. hace 16 años
srptest.c 440e5d805f Copyright consolidation 02/10 hace 8 años
ssl_test.c 440e5d805f Copyright consolidation 02/10 hace 8 años
ssl_test.tmpl 453dfd8d5e New SSL test framework hace 8 años
ssl_test_ctx.c 440e5d805f Copyright consolidation 02/10 hace 8 años
ssl_test_ctx.h 440e5d805f Copyright consolidation 02/10 hace 8 años
ssl_test_ctx_test.c 440e5d805f Copyright consolidation 02/10 hace 8 años
ssl_test_ctx_test.conf a263f320eb Remove proxy tests. Add verify callback tests. hace 8 años
ssltest_old.c 440e5d805f Copyright consolidation 02/10 hace 8 años
test.cnf fec669388c Use 2K RSA and SHA256 in tests hace 9 años
test_aesni 799379215e test_aesni: harmonize with AES-NI support at EVP layer. hace 12 años
test_padlock b066c3cd50 Update test/test_padlock script. hace 15 años
test_t4 c5d975a743 Add support for SPARC T4 DES opcode. hace 11 años
testcrl.pem d02b48c63a Import of old SSLeay release: SSLeay 0.8.1b hace 25 años
testdsa.pem 79a578b902 Add private/public key conversion tests hace 9 años
testdsapub.pem 79a578b902 Add private/public key conversion tests hace 9 años
testec-p256.pem 79a578b902 Add private/public key conversion tests hace 9 años
testecpub-p256.pem 79a578b902 Add private/public key conversion tests hace 9 años
testp7.pem dcb1ef5c22 Change PKCS#7 test data to take account of removal of hace 24 años
testreq2.pem d02b48c63a Import of old SSLeay release: SSLeay 0.8.1b hace 25 años
testrsa.pem d02b48c63a Import of old SSLeay release: SSLeay 0.8.1b hace 25 años
testrsapub.pem 79a578b902 Add private/public key conversion tests hace 9 años
testsid.pem 45f55f6a5b Remove SSLv2 support hace 9 años
testutil.c 440e5d805f Copyright consolidation 02/10 hace 8 años
testutil.h 440e5d805f Copyright consolidation 02/10 hace 8 años
testx509.pem d02b48c63a Import of old SSLeay release: SSLeay 0.8.1b hace 25 años
threadstest.c 440e5d805f Copyright consolidation 02/10 hace 8 años
times 8711efb498 Updates from 1.0.0-stable branch. hace 15 años
v3-cert1.pem d02b48c63a Import of old SSLeay release: SSLeay 0.8.1b hace 25 años
v3-cert2.pem d02b48c63a Import of old SSLeay release: SSLeay 0.8.1b hace 25 años
v3nametest.c 440e5d805f Copyright consolidation 02/10 hace 8 años
verify_extra_test.c 440e5d805f Copyright consolidation 02/10 hace 8 años
wp_test.c 440e5d805f Copyright consolidation 02/10 hace 8 años
x509aux.c fde2257f05 Fix i2d_X509_AUX, update docs and add tests hace 8 años

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 convetions
=================

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:

05 individual symmetric cipher algorithms
10 math (bignum)
15 individual asymmetric cipher algorithms
20 openssl enc
25 certificate forms, generation and verification
30 engine and evp
70 PACKET layer
80 "larger" protocols (CA, CMS, OCSP, SSL, TSA)
90 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)