Richard Levitte 0340edcf67 Remove 00-test_checkexes.t, as it has lost its relevance %!s(int64=8) %!d(string=hai) anos
..
Attic 71a4f2832c Remove old testing scripts out of the way. %!s(int64=8) %!d(string=hai) anos
certs c0a445a9f2 Suppress DANE TLSA reflection when verification fails %!s(int64=8) %!d(string=hai) anos
ocsp-tests 30c278aa6b Fix OCSP checking. %!s(int64=11) %!d(string=hai) anos
recipes 0340edcf67 Remove 00-test_checkexes.t, as it has lost its relevance %!s(int64=8) %!d(string=hai) anos
smime-certs 75787fd833 Add X9.42 DH certificate to S/MIME test %!s(int64=11) %!d(string=hai) anos
testlib b843cdb105 Rethink logging of test recipes %!s(int64=8) %!d(string=hai) anos
CAss.cnf 5e355e0cff GH645: Fix typo: ctificates -> certificates %!s(int64=8) %!d(string=hai) anos
CAssdh.cnf 58964a4922 Import of old SSLeay release: SSLeay 0.9.0b %!s(int64=25) %!d(string=hai) anos
CAssdsa.cnf 58964a4922 Import of old SSLeay release: SSLeay 0.9.0b %!s(int64=25) %!d(string=hai) anos
CAssrsa.cnf 58964a4922 Import of old SSLeay release: SSLeay 0.9.0b %!s(int64=25) %!d(string=hai) anos
CAtsa.cnf 2cc7acd273 Use better defaults for TSA. %!s(int64=8) %!d(string=hai) anos
Makefile.in c86ddbe613 Enhance and clear the support of linker flags %!s(int64=8) %!d(string=hai) anos
P1ss.cnf fec669388c Use 2K RSA and SHA256 in tests %!s(int64=9) %!d(string=hai) anos
P2ss.cnf fec669388c Use 2K RSA and SHA256 in tests %!s(int64=9) %!d(string=hai) anos
README 5ab4f893ce Add documentation for the new testing framework %!s(int64=8) %!d(string=hai) anos
Sssdsa.cnf 58964a4922 Import of old SSLeay release: SSLeay 0.9.0b %!s(int64=25) %!d(string=hai) anos
Sssrsa.cnf 58964a4922 Import of old SSLeay release: SSLeay 0.9.0b %!s(int64=25) %!d(string=hai) anos
Uss.cnf cb0585c2cb Create DSA and ECDSA certificates. %!s(int64=8) %!d(string=hai) anos
asynctest.c 7b9f8f7f03 Auto init/deinit libcrypto %!s(int64=8) %!d(string=hai) anos
bftest.c 349807608f Remove /* foo.c */ comments %!s(int64=8) %!d(string=hai) anos
bntest.c 8793f012f1 Clean up the tests for auto-init/de-init %!s(int64=8) %!d(string=hai) anos
build.info 5caef3b502 Add inclusion directory crypto/include for BN compilations %!s(int64=8) %!d(string=hai) anos
casttest.c 349807608f Remove /* foo.c */ comments %!s(int64=8) %!d(string=hai) anos
clienthellotest.c 8793f012f1 Clean up the tests for auto-init/de-init %!s(int64=8) %!d(string=hai) anos
cms-examples.pl 4a954b56c9 Use "cont" consistently in cms-examples.pl %!s(int64=16) %!d(string=hai) anos
constant_time_test.c 349807608f Remove /* foo.c */ comments %!s(int64=8) %!d(string=hai) anos
danetest.c 8793f012f1 Clean up the tests for auto-init/de-init %!s(int64=8) %!d(string=hai) anos
danetest.in c0a445a9f2 Suppress DANE TLSA reflection when verification fails %!s(int64=8) %!d(string=hai) anos
danetest.pem 170b735820 DANE support for X509_verify_cert() %!s(int64=8) %!d(string=hai) anos
destest.c 349807608f Remove /* foo.c */ comments %!s(int64=8) %!d(string=hai) anos
dhtest.c e729aac19d Add a test for small subgroup attacks on DH/DHE %!s(int64=8) %!d(string=hai) anos
dsatest.c 8793f012f1 Clean up the tests for auto-init/de-init %!s(int64=8) %!d(string=hai) anos
dtlsv1listentest.c e314c34073 fix warnings on 32 bit builds %!s(int64=8) %!d(string=hai) anos
dummytest.c 7644a9aef8 Rename some BUF_xxx to OPENSSL_xxx %!s(int64=8) %!d(string=hai) anos
ecdhtest.c 8793f012f1 Clean up the tests for auto-init/de-init %!s(int64=8) %!d(string=hai) anos
ecdsatest.c 8793f012f1 Clean up the tests for auto-init/de-init %!s(int64=8) %!d(string=hai) anos
ectest.c 8793f012f1 Clean up the tests for auto-init/de-init %!s(int64=8) %!d(string=hai) anos
enginetest.c 8793f012f1 Clean up the tests for auto-init/de-init %!s(int64=8) %!d(string=hai) anos
evp_extra_test.c 8793f012f1 Clean up the tests for auto-init/de-init %!s(int64=8) %!d(string=hai) anos
evp_test.c 8793f012f1 Clean up the tests for auto-init/de-init %!s(int64=8) %!d(string=hai) anos
evptests.txt a98c648e40 x86[_64] assembly pack: add ChaCha20 and Poly1305 modules. %!s(int64=8) %!d(string=hai) anos
exdatatest.c e6390acac9 ex_data part 2: doc fixes and CRYPTO_free_ex_index. %!s(int64=8) %!d(string=hai) anos
exptest.c 8793f012f1 Clean up the tests for auto-init/de-init %!s(int64=8) %!d(string=hai) anos
gmdifftest.c 3a3cb629d9 Check OPENSSL_gmtime_diff %!s(int64=8) %!d(string=hai) anos
heartbeat_test.c 22e3dcb780 Remove TLS heartbeat, disable DTLS heartbeat %!s(int64=8) %!d(string=hai) anos
hmactest.c b1413d9bd9 RT3095: allow NULL key for single-shot HMAC %!s(int64=8) %!d(string=hai) anos
ideatest.c 349807608f Remove /* foo.c */ comments %!s(int64=8) %!d(string=hai) anos
igetest.c 349807608f Remove /* foo.c */ comments %!s(int64=8) %!d(string=hai) anos
jpaketest.c 8793f012f1 Clean up the tests for auto-init/de-init %!s(int64=8) %!d(string=hai) anos
md2test.c 349807608f Remove /* foo.c */ comments %!s(int64=8) %!d(string=hai) anos
md4test.c 349807608f Remove /* foo.c */ comments %!s(int64=8) %!d(string=hai) anos
md5test.c 349807608f Remove /* foo.c */ comments %!s(int64=8) %!d(string=hai) anos
mdc2test.c 349807608f Remove /* foo.c */ comments %!s(int64=8) %!d(string=hai) anos
memleaktest.c ec04e86634 Update leak test to check return values. %!s(int64=8) %!d(string=hai) anos
methtest.c 8793f012f1 Clean up the tests for auto-init/de-init %!s(int64=8) %!d(string=hai) anos
nptest.c d4ab70f27c Test for NULL ptr == 0 %!s(int64=8) %!d(string=hai) anos
p5_crpt2_test.c f672aee494 Rename INIT funtions, deprecate old ones. %!s(int64=8) %!d(string=hai) anos
packettest.c b698174493 constify PACKET %!s(int64=8) %!d(string=hai) anos
pbelutest.c d95466931d PBE lookup test %!s(int64=8) %!d(string=hai) anos
pkcs7-1.pem d02b48c63a Import of old SSLeay release: SSLeay 0.8.1b %!s(int64=25) %!d(string=hai) anos
pkcs7.pem d02b48c63a Import of old SSLeay release: SSLeay 0.8.1b %!s(int64=25) %!d(string=hai) anos
pkits-test.pl be16cc23c6 detect and use older PKITS data %!s(int64=12) %!d(string=hai) anos
r160test.c 349807608f Remove /* foo.c */ comments %!s(int64=8) %!d(string=hai) anos
randtest.c 349807608f Remove /* foo.c */ comments %!s(int64=8) %!d(string=hai) anos
rc2test.c 349807608f Remove /* foo.c */ comments %!s(int64=8) %!d(string=hai) anos
rc4test.c 349807608f Remove /* foo.c */ comments %!s(int64=8) %!d(string=hai) anos
rc5test.c 349807608f Remove /* foo.c */ comments %!s(int64=8) %!d(string=hai) anos
rmdtest.c 349807608f Remove /* foo.c */ comments %!s(int64=8) %!d(string=hai) anos
rsa_test.c 8793f012f1 Clean up the tests for auto-init/de-init %!s(int64=8) %!d(string=hai) anos
run_tests.pl 42e0ccdfe8 unified build scheme: adjust test framework for out of source build tree %!s(int64=8) %!d(string=hai) anos
secmemtest.c 74924dcb38 More secure storage of key material. %!s(int64=9) %!d(string=hai) anos
serverinfo.pem c655f40ed2 Require ServerInfo PEMs to be named "BEGIN SERVERINFO FOR"... %!s(int64=10) %!d(string=hai) anos
sha1test.c 349807608f Remove /* foo.c */ comments %!s(int64=8) %!d(string=hai) anos
sha256t.c 349807608f Remove /* foo.c */ comments %!s(int64=8) %!d(string=hai) anos
sha512t.c 349807608f Remove /* foo.c */ comments %!s(int64=8) %!d(string=hai) anos
smcont.txt 7d7e640e0b Add extensive PCKS7 and CMS consistency test script. %!s(int64=16) %!d(string=hai) anos
srptest.c 8793f012f1 Clean up the tests for auto-init/de-init %!s(int64=8) %!d(string=hai) anos
ssltest.c 8793f012f1 Clean up the tests for auto-init/de-init %!s(int64=8) %!d(string=hai) anos
test.cnf fec669388c Use 2K RSA and SHA256 in tests %!s(int64=9) %!d(string=hai) anos
test_aesni 799379215e test_aesni: harmonize with AES-NI support at EVP layer. %!s(int64=12) %!d(string=hai) anos
test_padlock b066c3cd50 Update test/test_padlock script. %!s(int64=15) %!d(string=hai) anos
test_t4 c5d975a743 Add support for SPARC T4 DES opcode. %!s(int64=11) %!d(string=hai) anos
testcrl.pem d02b48c63a Import of old SSLeay release: SSLeay 0.8.1b %!s(int64=25) %!d(string=hai) anos
testdsa.pem 79a578b902 Add private/public key conversion tests %!s(int64=9) %!d(string=hai) anos
testdsapub.pem 79a578b902 Add private/public key conversion tests %!s(int64=9) %!d(string=hai) anos
testec-p256.pem 79a578b902 Add private/public key conversion tests %!s(int64=9) %!d(string=hai) anos
testecpub-p256.pem 79a578b902 Add private/public key conversion tests %!s(int64=9) %!d(string=hai) anos
testp7.pem dcb1ef5c22 Change PKCS#7 test data to take account of removal of %!s(int64=24) %!d(string=hai) anos
testreq2.pem d02b48c63a Import of old SSLeay release: SSLeay 0.8.1b %!s(int64=25) %!d(string=hai) anos
testrsa.pem d02b48c63a Import of old SSLeay release: SSLeay 0.8.1b %!s(int64=25) %!d(string=hai) anos
testrsapub.pem 79a578b902 Add private/public key conversion tests %!s(int64=9) %!d(string=hai) anos
testsid.pem 45f55f6a5b Remove SSLv2 support %!s(int64=9) %!d(string=hai) anos
testutil.c 349807608f Remove /* foo.c */ comments %!s(int64=8) %!d(string=hai) anos
testutil.h 349807608f Remove /* foo.c */ comments %!s(int64=8) %!d(string=hai) anos
testx509.pem d02b48c63a Import of old SSLeay release: SSLeay 0.8.1b %!s(int64=25) %!d(string=hai) anos
times 8711efb498 Updates from 1.0.0-stable branch. %!s(int64=15) %!d(string=hai) anos
v3-cert1.pem d02b48c63a Import of old SSLeay release: SSLeay 0.8.1b %!s(int64=25) %!d(string=hai) anos
v3-cert2.pem d02b48c63a Import of old SSLeay release: SSLeay 0.8.1b %!s(int64=25) %!d(string=hai) anos
v3nametest.c 9f9a39267f NGX-2040 - fix wildcard match on punycode/IDNA DNS names %!s(int64=8) %!d(string=hai) anos
verify_extra_test.c 8793f012f1 Clean up the tests for auto-init/de-init %!s(int64=8) %!d(string=hai) anos
wp_test.c df2ee0e27d Enable -Wmissing-variable-declarations and %!s(int64=8) %!d(string=hai) anos

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)