2016-11-04 22:26:57 +08:00
|
|
|
{-
|
|
|
|
use File::Spec::Functions;
|
|
|
|
sub rebase_files
|
|
|
|
{
|
|
|
|
my ($base, $files) = @_;
|
|
|
|
return join(" ", map { "$base/$_" } split(/\s+/, $files));
|
|
|
|
}
|
|
|
|
-}
|
2016-04-14 20:44:15 +08:00
|
|
|
IF[{- !$disabled{tests} -}]
|
2016-07-08 20:52:51 +08:00
|
|
|
PROGRAMS_NO_INST=\
|
2016-04-14 20:44:15 +08:00
|
|
|
aborttest \
|
2016-06-29 01:05:24 +08:00
|
|
|
sanitytest bntest \
|
2016-04-14 20:44:15 +08:00
|
|
|
ectest ecdsatest ecdhtest gmdifftest pbelutest ideatest \
|
|
|
|
md2test md4test md5test \
|
|
|
|
hmactest wp_test \
|
|
|
|
rc2test rc4test rc5test \
|
|
|
|
destest sha1test sha256t sha512t \
|
|
|
|
mdc2test rmdtest \
|
|
|
|
randtest dhtest enginetest casttest \
|
|
|
|
bftest ssltest_old dsatest exptest rsa_test \
|
2016-06-08 23:37:06 +08:00
|
|
|
evp_test evp_extra_test igetest v3nametest v3ext \
|
2016-11-14 05:24:02 +08:00
|
|
|
danetest p5_crpt2_test bad_dtls_test \
|
2016-04-14 20:44:15 +08:00
|
|
|
constant_time_test verify_extra_test clienthellotest \
|
|
|
|
packettest asynctest secmemtest srptest memleaktest \
|
|
|
|
dtlsv1listentest ct_test threadstest afalgtest d2i_test \
|
2016-05-26 20:47:47 +08:00
|
|
|
ssl_test_ctx_test ssl_test x509aux cipherlist_test asynciotest \
|
2016-11-20 05:52:34 +08:00
|
|
|
bioprinttest sslapitest dtlstest sslcorrupttest bio_enc_test \
|
|
|
|
pkey_meth_test
|
2016-04-14 20:44:15 +08:00
|
|
|
|
|
|
|
SOURCE[aborttest]=aborttest.c
|
2016-06-30 04:59:50 +08:00
|
|
|
INCLUDE[aborttest]=../include
|
2016-04-14 20:44:15 +08:00
|
|
|
DEPEND[aborttest]=../libcrypto
|
|
|
|
|
2016-06-29 01:05:24 +08:00
|
|
|
SOURCE[sanitytest]=sanitytest.c
|
|
|
|
INCLUDE[sanitytest]=../include
|
|
|
|
DEPEND[sanitytest]=../libcrypto
|
2016-04-14 20:44:15 +08:00
|
|
|
|
|
|
|
SOURCE[bntest]=bntest.c
|
2016-06-30 04:59:50 +08:00
|
|
|
INCLUDE[bntest]=.. ../crypto/include ../include
|
2016-04-14 20:44:15 +08:00
|
|
|
DEPEND[bntest]=../libcrypto
|
|
|
|
|
|
|
|
SOURCE[ectest]=ectest.c
|
2016-06-30 04:59:50 +08:00
|
|
|
INCLUDE[ectest]=../include
|
2016-04-14 20:44:15 +08:00
|
|
|
DEPEND[ectest]=../libcrypto
|
|
|
|
|
|
|
|
SOURCE[ecdsatest]=ecdsatest.c
|
2016-06-30 04:59:50 +08:00
|
|
|
INCLUDE[ecdsatest]=../include
|
2016-04-14 20:44:15 +08:00
|
|
|
DEPEND[ecdsatest]=../libcrypto
|
|
|
|
|
|
|
|
SOURCE[ecdhtest]=ecdhtest.c
|
2016-06-30 04:59:50 +08:00
|
|
|
INCLUDE[ecdhtest]=../include
|
2016-04-14 20:44:15 +08:00
|
|
|
DEPEND[ecdhtest]=../libcrypto
|
|
|
|
|
|
|
|
SOURCE[gmdifftest]=gmdifftest.c
|
2016-06-30 04:59:50 +08:00
|
|
|
INCLUDE[gmdifftest]=../include
|
2016-04-14 20:44:15 +08:00
|
|
|
DEPEND[gmdifftest]=../libcrypto
|
|
|
|
|
|
|
|
SOURCE[pbelutest]=pbelutest.c
|
2016-06-30 04:59:50 +08:00
|
|
|
INCLUDE[pbelutest]=../include
|
2016-04-14 20:44:15 +08:00
|
|
|
DEPEND[pbelutest]=../libcrypto
|
|
|
|
|
|
|
|
SOURCE[ideatest]=ideatest.c
|
2016-06-30 04:59:50 +08:00
|
|
|
INCLUDE[ideatest]=../include
|
2016-04-14 20:44:15 +08:00
|
|
|
DEPEND[ideatest]=../libcrypto
|
|
|
|
|
|
|
|
SOURCE[md2test]=md2test.c
|
2016-06-30 04:59:50 +08:00
|
|
|
INCLUDE[md2test]=../include
|
2016-04-14 20:44:15 +08:00
|
|
|
DEPEND[md2test]=../libcrypto
|
|
|
|
|
|
|
|
SOURCE[md4test]=md4test.c
|
2016-06-30 04:59:50 +08:00
|
|
|
INCLUDE[md4test]=../include
|
2016-04-14 20:44:15 +08:00
|
|
|
DEPEND[md4test]=../libcrypto
|
|
|
|
|
|
|
|
SOURCE[md5test]=md5test.c
|
2016-06-30 04:59:50 +08:00
|
|
|
INCLUDE[md5test]=../include
|
2016-04-14 20:44:15 +08:00
|
|
|
DEPEND[md5test]=../libcrypto
|
|
|
|
|
|
|
|
SOURCE[hmactest]=hmactest.c
|
2016-06-30 04:59:50 +08:00
|
|
|
INCLUDE[hmactest]=../include
|
2016-04-14 20:44:15 +08:00
|
|
|
DEPEND[hmactest]=../libcrypto
|
|
|
|
|
|
|
|
SOURCE[wp_test]=wp_test.c
|
2016-06-30 04:59:50 +08:00
|
|
|
INCLUDE[wp_test]=../include
|
2016-04-14 20:44:15 +08:00
|
|
|
DEPEND[wp_test]=../libcrypto
|
|
|
|
|
|
|
|
SOURCE[rc2test]=rc2test.c
|
2016-06-30 04:59:50 +08:00
|
|
|
INCLUDE[rc2test]=../include
|
2016-04-14 20:44:15 +08:00
|
|
|
DEPEND[rc2test]=../libcrypto
|
|
|
|
|
|
|
|
SOURCE[rc4test]=rc4test.c
|
2016-06-30 04:59:50 +08:00
|
|
|
INCLUDE[rc4test]=../include
|
2016-04-14 20:44:15 +08:00
|
|
|
DEPEND[rc4test]=../libcrypto
|
|
|
|
|
|
|
|
SOURCE[rc5test]=rc5test.c
|
2016-06-30 04:59:50 +08:00
|
|
|
INCLUDE[rc5test]=../include
|
2016-04-14 20:44:15 +08:00
|
|
|
DEPEND[rc5test]=../libcrypto
|
|
|
|
|
|
|
|
SOURCE[destest]=destest.c
|
2016-06-30 04:59:50 +08:00
|
|
|
INCLUDE[destest]=../include
|
2016-04-14 20:44:15 +08:00
|
|
|
DEPEND[destest]=../libcrypto
|
|
|
|
|
|
|
|
SOURCE[sha1test]=sha1test.c
|
2016-06-30 04:59:50 +08:00
|
|
|
INCLUDE[sha1test]=../include
|
2016-04-14 20:44:15 +08:00
|
|
|
DEPEND[sha1test]=../libcrypto
|
|
|
|
|
|
|
|
SOURCE[sha256t]=sha256t.c
|
2016-06-30 04:59:50 +08:00
|
|
|
INCLUDE[sha256t]=../include
|
2016-04-14 20:44:15 +08:00
|
|
|
DEPEND[sha256t]=../libcrypto
|
|
|
|
|
|
|
|
SOURCE[sha512t]=sha512t.c
|
2016-06-30 04:59:50 +08:00
|
|
|
INCLUDE[sha512t]=../include
|
2016-04-14 20:44:15 +08:00
|
|
|
DEPEND[sha512t]=../libcrypto
|
|
|
|
|
|
|
|
SOURCE[mdc2test]=mdc2test.c
|
2016-06-30 04:59:50 +08:00
|
|
|
INCLUDE[mdc2test]=../include
|
2016-04-14 20:44:15 +08:00
|
|
|
DEPEND[mdc2test]=../libcrypto
|
|
|
|
|
|
|
|
SOURCE[rmdtest]=rmdtest.c
|
2016-06-30 04:59:50 +08:00
|
|
|
INCLUDE[rmdtest]=../include
|
2016-04-14 20:44:15 +08:00
|
|
|
DEPEND[rmdtest]=../libcrypto
|
|
|
|
|
|
|
|
SOURCE[randtest]=randtest.c
|
2016-06-30 04:59:50 +08:00
|
|
|
INCLUDE[randtest]=../include
|
2016-04-14 20:44:15 +08:00
|
|
|
DEPEND[randtest]=../libcrypto
|
2016-01-30 06:33:10 +08:00
|
|
|
|
2016-04-14 20:44:15 +08:00
|
|
|
SOURCE[dhtest]=dhtest.c
|
2016-06-30 04:59:50 +08:00
|
|
|
INCLUDE[dhtest]=../include
|
2016-04-14 20:44:15 +08:00
|
|
|
DEPEND[dhtest]=../libcrypto
|
2016-01-30 06:33:10 +08:00
|
|
|
|
2016-04-14 20:44:15 +08:00
|
|
|
SOURCE[enginetest]=enginetest.c
|
2016-06-30 04:59:50 +08:00
|
|
|
INCLUDE[enginetest]=../include
|
2016-04-14 20:44:15 +08:00
|
|
|
DEPEND[enginetest]=../libcrypto
|
2016-01-30 06:33:10 +08:00
|
|
|
|
2016-04-14 20:44:15 +08:00
|
|
|
SOURCE[casttest]=casttest.c
|
2016-06-30 04:59:50 +08:00
|
|
|
INCLUDE[casttest]=../include
|
2016-04-14 20:44:15 +08:00
|
|
|
DEPEND[casttest]=../libcrypto
|
2016-01-30 06:33:10 +08:00
|
|
|
|
2016-04-14 20:44:15 +08:00
|
|
|
SOURCE[bftest]=bftest.c
|
2016-06-30 04:59:50 +08:00
|
|
|
INCLUDE[bftest]=../include
|
2016-04-14 20:44:15 +08:00
|
|
|
DEPEND[bftest]=../libcrypto
|
2016-01-30 06:33:10 +08:00
|
|
|
|
2016-04-14 20:44:15 +08:00
|
|
|
SOURCE[ssltest_old]=ssltest_old.c
|
2016-06-30 04:59:50 +08:00
|
|
|
INCLUDE[ssltest_old]=.. ../include
|
2016-04-14 20:44:15 +08:00
|
|
|
DEPEND[ssltest_old]=../libcrypto ../libssl
|
2016-01-30 06:33:10 +08:00
|
|
|
|
2016-04-14 20:44:15 +08:00
|
|
|
SOURCE[dsatest]=dsatest.c
|
2016-06-30 04:59:50 +08:00
|
|
|
INCLUDE[dsatest]=../include
|
2016-04-14 20:44:15 +08:00
|
|
|
DEPEND[dsatest]=../libcrypto
|
2016-01-30 06:33:10 +08:00
|
|
|
|
2016-04-14 20:44:15 +08:00
|
|
|
SOURCE[exptest]=exptest.c
|
2016-06-30 04:59:50 +08:00
|
|
|
INCLUDE[exptest]=../include
|
2016-04-14 20:44:15 +08:00
|
|
|
DEPEND[exptest]=../libcrypto
|
2016-01-30 06:33:10 +08:00
|
|
|
|
2016-04-14 20:44:15 +08:00
|
|
|
SOURCE[rsa_test]=rsa_test.c
|
2016-06-30 04:59:50 +08:00
|
|
|
INCLUDE[rsa_test]=.. ../include
|
2016-04-14 20:44:15 +08:00
|
|
|
DEPEND[rsa_test]=../libcrypto
|
2016-01-30 06:33:10 +08:00
|
|
|
|
2016-04-14 20:44:15 +08:00
|
|
|
SOURCE[evp_test]=evp_test.c
|
2016-06-30 04:59:50 +08:00
|
|
|
INCLUDE[evp_test]=../include
|
2016-04-14 20:44:15 +08:00
|
|
|
DEPEND[evp_test]=../libcrypto
|
2016-01-30 06:33:10 +08:00
|
|
|
|
2016-04-14 20:44:15 +08:00
|
|
|
SOURCE[evp_extra_test]=evp_extra_test.c
|
2016-06-30 04:59:50 +08:00
|
|
|
INCLUDE[evp_extra_test]=../include
|
2016-04-14 20:44:15 +08:00
|
|
|
DEPEND[evp_extra_test]=../libcrypto
|
2016-01-30 06:33:10 +08:00
|
|
|
|
2016-04-14 20:44:15 +08:00
|
|
|
SOURCE[igetest]=igetest.c
|
2016-06-30 04:59:50 +08:00
|
|
|
INCLUDE[igetest]=.. ../include
|
2016-04-14 20:44:15 +08:00
|
|
|
DEPEND[igetest]=../libcrypto
|
2016-01-30 06:33:10 +08:00
|
|
|
|
2016-04-14 20:44:15 +08:00
|
|
|
SOURCE[v3nametest]=v3nametest.c
|
2016-06-30 04:59:50 +08:00
|
|
|
INCLUDE[v3nametest]=../include
|
2016-04-14 20:44:15 +08:00
|
|
|
DEPEND[v3nametest]=../libcrypto
|
2016-01-30 06:33:10 +08:00
|
|
|
|
2016-06-08 23:37:06 +08:00
|
|
|
SOURCE[v3ext]=v3ext.c
|
2016-06-30 04:59:50 +08:00
|
|
|
INCLUDE[v3ext]=../include
|
2016-06-08 23:37:06 +08:00
|
|
|
DEPEND[v3ext]=../libcrypto
|
|
|
|
|
2016-04-14 20:44:15 +08:00
|
|
|
SOURCE[danetest]=danetest.c
|
2016-06-30 04:59:50 +08:00
|
|
|
INCLUDE[danetest]=../include
|
2016-04-14 20:44:15 +08:00
|
|
|
DEPEND[danetest]=../libcrypto ../libssl
|
2016-01-30 06:33:10 +08:00
|
|
|
|
2016-04-14 20:44:15 +08:00
|
|
|
SOURCE[p5_crpt2_test]=p5_crpt2_test.c
|
2016-06-30 04:59:50 +08:00
|
|
|
INCLUDE[p5_crpt2_test]=../include
|
2016-04-14 20:44:15 +08:00
|
|
|
DEPEND[p5_crpt2_test]=../libcrypto
|
2016-01-30 06:33:10 +08:00
|
|
|
|
2016-04-14 20:44:15 +08:00
|
|
|
SOURCE[constant_time_test]=constant_time_test.c
|
2016-06-30 04:59:50 +08:00
|
|
|
INCLUDE[constant_time_test]=.. ../include
|
2016-04-14 20:44:15 +08:00
|
|
|
DEPEND[constant_time_test]=../libcrypto
|
2016-01-30 06:33:10 +08:00
|
|
|
|
2016-04-14 20:44:15 +08:00
|
|
|
SOURCE[verify_extra_test]=verify_extra_test.c
|
2016-06-30 04:59:50 +08:00
|
|
|
INCLUDE[verify_extra_test]=../include
|
2016-04-14 20:44:15 +08:00
|
|
|
DEPEND[verify_extra_test]=../libcrypto
|
2016-01-30 06:33:10 +08:00
|
|
|
|
2016-04-14 20:44:15 +08:00
|
|
|
SOURCE[clienthellotest]=clienthellotest.c
|
2016-06-30 04:59:50 +08:00
|
|
|
INCLUDE[clienthellotest]=../include
|
2016-04-14 20:44:15 +08:00
|
|
|
DEPEND[clienthellotest]=../libcrypto ../libssl
|
2016-01-30 06:33:10 +08:00
|
|
|
|
2016-07-25 21:31:43 +08:00
|
|
|
SOURCE[bad_dtls_test]=bad_dtls_test.c
|
2016-08-05 16:14:56 +08:00
|
|
|
INCLUDE[bad_dtls_test]=../include
|
2016-07-25 21:31:43 +08:00
|
|
|
DEPEND[bad_dtls_test]=../libcrypto ../libssl
|
|
|
|
|
2016-04-14 20:44:15 +08:00
|
|
|
SOURCE[packettest]=packettest.c
|
2016-06-30 04:59:50 +08:00
|
|
|
INCLUDE[packettest]=../include
|
2016-04-14 20:44:15 +08:00
|
|
|
DEPEND[packettest]=../libcrypto
|
2016-01-30 06:33:10 +08:00
|
|
|
|
2016-04-14 20:44:15 +08:00
|
|
|
SOURCE[asynctest]=asynctest.c
|
2016-06-30 04:59:50 +08:00
|
|
|
INCLUDE[asynctest]=.. ../include
|
2016-04-14 20:44:15 +08:00
|
|
|
DEPEND[asynctest]=../libcrypto
|
2016-01-30 06:33:10 +08:00
|
|
|
|
2016-04-14 20:44:15 +08:00
|
|
|
SOURCE[secmemtest]=secmemtest.c
|
2016-06-30 04:59:50 +08:00
|
|
|
INCLUDE[secmemtest]=../include
|
2016-04-14 20:44:15 +08:00
|
|
|
DEPEND[secmemtest]=../libcrypto
|
2016-01-30 06:33:10 +08:00
|
|
|
|
2016-04-14 20:44:15 +08:00
|
|
|
SOURCE[srptest]=srptest.c
|
2016-06-30 04:59:50 +08:00
|
|
|
INCLUDE[srptest]=../include
|
2016-04-14 20:44:15 +08:00
|
|
|
DEPEND[srptest]=../libcrypto
|
2016-01-30 06:33:10 +08:00
|
|
|
|
2016-04-14 20:44:15 +08:00
|
|
|
SOURCE[memleaktest]=memleaktest.c
|
2016-06-30 04:59:50 +08:00
|
|
|
INCLUDE[memleaktest]=../include
|
2016-04-14 20:44:15 +08:00
|
|
|
DEPEND[memleaktest]=../libcrypto
|
2016-02-06 12:45:32 +08:00
|
|
|
|
2016-04-14 20:44:15 +08:00
|
|
|
SOURCE[dtlsv1listentest]=dtlsv1listentest.c
|
2016-06-30 04:59:50 +08:00
|
|
|
INCLUDE[dtlsv1listentest]=.. ../include
|
2016-04-14 20:44:15 +08:00
|
|
|
DEPEND[dtlsv1listentest]=../libssl
|
2016-02-26 05:48:36 +08:00
|
|
|
|
2016-11-07 23:53:15 +08:00
|
|
|
SOURCE[ct_test]=ct_test.c testutil.c test_main_custom.c
|
2016-06-30 04:59:50 +08:00
|
|
|
INCLUDE[ct_test]=../crypto/include ../include
|
2016-04-14 20:44:15 +08:00
|
|
|
DEPEND[ct_test]=../libcrypto
|
2015-10-26 00:43:55 +08:00
|
|
|
|
2016-04-14 20:44:15 +08:00
|
|
|
SOURCE[threadstest]=threadstest.c
|
2016-06-30 04:59:50 +08:00
|
|
|
INCLUDE[threadstest]=.. ../include
|
2016-04-14 20:44:15 +08:00
|
|
|
DEPEND[threadstest]=../libcrypto
|
2016-02-28 03:34:47 +08:00
|
|
|
|
2016-04-14 20:44:15 +08:00
|
|
|
SOURCE[afalgtest]=afalgtest.c
|
2016-06-30 04:59:50 +08:00
|
|
|
INCLUDE[afalgtest]=.. ../include
|
2016-04-14 20:44:15 +08:00
|
|
|
DEPEND[afalgtest]=../libcrypto
|
2016-03-03 13:56:10 +08:00
|
|
|
|
2016-11-07 23:53:15 +08:00
|
|
|
SOURCE[d2i_test]=d2i_test.c testutil.c test_main_custom.c
|
2016-06-30 04:59:50 +08:00
|
|
|
INCLUDE[d2i_test]=.. ../include
|
2016-04-14 20:44:15 +08:00
|
|
|
DEPEND[d2i_test]=../libcrypto
|
2016-03-31 04:37:05 +08:00
|
|
|
|
2016-11-07 23:53:15 +08:00
|
|
|
SOURCE[ssl_test_ctx_test]=ssl_test_ctx_test.c ssl_test_ctx.c testutil.c test_main_custom.c
|
2016-06-30 04:59:50 +08:00
|
|
|
INCLUDE[ssl_test_ctx_test]=.. ../include
|
2016-04-14 20:44:15 +08:00
|
|
|
DEPEND[ssl_test_ctx_test]=../libcrypto
|
2016-03-17 22:14:30 +08:00
|
|
|
|
2016-11-07 23:53:15 +08:00
|
|
|
SOURCE[ssl_test]=ssl_test.c ssl_test_ctx.c testutil.c handshake_helper.c test_main_custom.c
|
2016-06-30 04:59:50 +08:00
|
|
|
INCLUDE[ssl_test]=.. ../include
|
2016-04-14 20:44:15 +08:00
|
|
|
DEPEND[ssl_test]=../libcrypto ../libssl
|
2016-03-17 22:14:30 +08:00
|
|
|
|
2016-11-07 23:53:15 +08:00
|
|
|
SOURCE[cipherlist_test]=cipherlist_test.c testutil.c test_main.c
|
2016-06-30 04:59:50 +08:00
|
|
|
INCLUDE[cipherlist_test]=.. ../include
|
2016-04-06 22:03:06 +08:00
|
|
|
DEPEND[cipherlist_test]=../libcrypto ../libssl
|
|
|
|
|
2016-04-14 20:44:15 +08:00
|
|
|
INCLUDE[testutil.o]=..
|
2016-06-30 04:59:50 +08:00
|
|
|
INCLUDE[ssl_test_ctx.o]=../include
|
|
|
|
INCLUDE[handshake_helper.o]=../include
|
|
|
|
INCLUDE[ssltestlib.o]=../include
|
2016-05-03 02:46:51 +08:00
|
|
|
|
|
|
|
SOURCE[x509aux]=x509aux.c
|
2016-06-30 04:59:50 +08:00
|
|
|
INCLUDE[x509aux]=../include
|
2016-05-03 02:46:51 +08:00
|
|
|
DEPEND[x509aux]=../libcrypto
|
2016-05-12 23:04:10 +08:00
|
|
|
|
2016-06-09 20:33:27 +08:00
|
|
|
SOURCE[asynciotest]=asynciotest.c ssltestlib.c
|
2016-06-30 04:59:50 +08:00
|
|
|
INCLUDE[asynciotest]=../include
|
2016-05-12 23:04:10 +08:00
|
|
|
DEPEND[asynciotest]=../libcrypto ../libssl
|
2016-05-26 20:47:47 +08:00
|
|
|
|
|
|
|
SOURCE[bioprinttest]=bioprinttest.c
|
2016-06-30 04:59:50 +08:00
|
|
|
INCLUDE[bioprinttest]=../include
|
2016-05-26 20:47:47 +08:00
|
|
|
DEPEND[bioprinttest]=../libcrypto
|
2016-08-05 06:32:36 +08:00
|
|
|
|
2016-11-07 23:53:15 +08:00
|
|
|
SOURCE[sslapitest]=sslapitest.c ssltestlib.c testutil.c test_main_custom.c
|
2016-08-05 06:32:36 +08:00
|
|
|
INCLUDE[sslapitest]=../include
|
|
|
|
DEPEND[sslapitest]=../libcrypto ../libssl
|
2016-07-04 21:59:06 +08:00
|
|
|
|
2016-11-07 23:53:15 +08:00
|
|
|
SOURCE[dtlstest]=dtlstest.c ssltestlib.c testutil.c test_main_custom.c
|
2016-07-04 21:59:06 +08:00
|
|
|
INCLUDE[dtlstest]=../include .
|
|
|
|
DEPEND[dtlstest]=../libcrypto ../libssl
|
2016-08-22 05:31:21 +08:00
|
|
|
|
2016-11-01 04:50:26 +08:00
|
|
|
SOURCE[sslcorrupttest]=sslcorrupttest.c ssltestlib.c testutil.c
|
|
|
|
INCLUDE[sslcorrupttest]=../include .
|
|
|
|
DEPEND[sslcorrupttest]=../libcrypto ../libssl
|
|
|
|
|
2016-08-22 05:31:21 +08:00
|
|
|
SOURCE[bio_enc_test]=bio_enc_test.c
|
|
|
|
INCLUDE[bio_enc_test]=../include
|
|
|
|
DEPEND[bio_enc_test]=../libcrypto
|
2016-09-08 17:01:24 +08:00
|
|
|
|
2016-11-20 05:52:34 +08:00
|
|
|
SOURCE[pkey_meth_test]=pkey_meth_test.c testutil.c test_main.c
|
|
|
|
INCLUDE[pkey_meth_test]=../include
|
|
|
|
DEPEND[pkey_meth_test]=../libcrypto
|
|
|
|
|
2016-10-12 23:13:31 +08:00
|
|
|
IF[{- !$disabled{psk} -}]
|
|
|
|
PROGRAMS_NO_INST=dtls_mtu_test
|
|
|
|
SOURCE[dtls_mtu_test]=dtls_mtu_test.c ssltestlib.c
|
|
|
|
INCLUDE[dtls_mtu_test]=.. ../include
|
|
|
|
DEPEND[dtls_mtu_test]=../libcrypto ../libssl
|
|
|
|
ENDIF
|
|
|
|
|
2016-11-03 18:31:12 +08:00
|
|
|
IF[{- !$disabled{shared} -}]
|
2016-10-18 21:16:35 +08:00
|
|
|
PROGRAMS_NO_INST=shlibloadtest
|
|
|
|
SOURCE[shlibloadtest]=shlibloadtest.c
|
|
|
|
INCLUDE[shlibloadtest]=../include
|
|
|
|
ENDIF
|
|
|
|
|
2016-09-08 17:01:24 +08:00
|
|
|
IF[{- $disabled{shared} -}]
|
2016-10-06 18:44:29 +08:00
|
|
|
PROGRAMS_NO_INST=wpackettest cipher_overhead_test
|
2016-11-07 23:53:15 +08:00
|
|
|
SOURCE[wpackettest]=wpackettest.c testutil.c test_main_custom.c
|
2016-09-08 17:01:24 +08:00
|
|
|
INCLUDE[wpackettest]=../include
|
|
|
|
DEPEND[wpackettest]=../libcrypto ../libssl
|
2016-10-06 18:44:29 +08:00
|
|
|
|
|
|
|
SOURCE[cipher_overhead_test]=cipher_overhead_test.c
|
|
|
|
INCLUDE[cipher_overhead_test]=.. ../include
|
|
|
|
DEPEND[cipher_overhead_test]=../libcrypto ../libssl
|
2016-09-08 17:01:24 +08:00
|
|
|
ENDIF
|
2016-10-26 06:25:44 +08:00
|
|
|
|
2016-10-27 14:44:36 +08:00
|
|
|
# Internal test programs. These are essentially a collection of internal
|
2016-11-10 03:09:03 +08:00
|
|
|
# test routines. Some of them need to reach internal symbols that aren't
|
|
|
|
# available through the shared library (at least on Linux, Solaris, Windows
|
|
|
|
# and VMS, where the exported symbols are those listed in util/*.num), these
|
|
|
|
# programs are forcebly linked with the static libraries, where all symbols
|
|
|
|
# are always available. This excludes linking these programs natively on
|
|
|
|
# Windows when building shared libraries, since the static libraries share
|
|
|
|
# names with the DLL import libraries.
|
|
|
|
IF[{- $disabled{shared} || $target{build_scheme}->[1] ne 'windows' -}]
|
|
|
|
PROGRAMS_NO_INST=asn1_internal_test modes_internal_test x509_internal_test
|
|
|
|
IF[{- !$disabled{poly1305} -}]
|
|
|
|
PROGRAMS_NO_INST=poly1305_internal_test
|
|
|
|
ENDIF
|
|
|
|
|
|
|
|
SOURCE[poly1305_internal_test]=poly1305_internal_test.c testutil.c test_main_custom.c
|
|
|
|
INCLUDE[poly1305_internal_test]=.. ../include ../crypto/include
|
|
|
|
DEPEND[poly1305_internal_test]=../libcrypto.a
|
|
|
|
|
|
|
|
SOURCE[asn1_internal_test]=asn1_internal_test.c testutil.c test_main.c
|
|
|
|
INCLUDE[asn1_internal_test]=.. ../include ../crypto/include
|
|
|
|
DEPEND[asn1_internal_test]=../libcrypto.a
|
|
|
|
|
|
|
|
SOURCE[modes_internal_test]=modes_internal_test.c testutil.c test_main_custom.c
|
|
|
|
INCLUDE[modes_internal_test]=.. ../include
|
|
|
|
DEPEND[modes_internal_test]=../libcrypto.a
|
|
|
|
|
|
|
|
SOURCE[x509_internal_test]=x509_internal_test.c testutil.c test_main.c
|
|
|
|
INCLUDE[x509_internal_test]=.. ../include
|
|
|
|
DEPEND[x509_internal_test]=../libcrypto.a
|
2016-10-26 06:25:44 +08:00
|
|
|
ENDIF
|
2016-10-27 05:12:48 +08:00
|
|
|
|
2016-11-10 03:09:03 +08:00
|
|
|
IF[{- !$disabled{mdc2} -}]
|
|
|
|
PROGRAMS_NO_INST=mdc2_internal_test
|
2016-10-28 03:42:45 +08:00
|
|
|
ENDIF
|
2016-10-28 04:18:50 +08:00
|
|
|
|
2016-11-07 23:53:15 +08:00
|
|
|
SOURCE[mdc2_internal_test]=mdc2_internal_test.c testutil.c test_main.c
|
2016-10-28 04:18:50 +08:00
|
|
|
INCLUDE[mdc2_internal_test]=.. ../include
|
|
|
|
DEPEND[mdc2_internal_test]=../libcrypto
|
2016-11-07 18:18:41 +08:00
|
|
|
|
|
|
|
# We disable this test completely in a shared build because it deliberately
|
|
|
|
# redefines some internal libssl symbols. This doesn't work in a non-shared
|
|
|
|
# build
|
|
|
|
IF[{- !$disabled{shared} -}]
|
|
|
|
PROGRAMS_NO_INST=tls13secretstest
|
|
|
|
SOURCE[tls13secretstest]=tls13secretstest.c testutil.c
|
|
|
|
SOURCE[tls13secretstest]= ../ssl/tls13_enc.c ../ssl/packet.c
|
|
|
|
INCLUDE[tls13secretstest]=.. ../include
|
|
|
|
DEPEND[tls13secretstest]=../libcrypto ../libssl
|
|
|
|
ENDIF
|
2016-08-05 06:32:36 +08:00
|
|
|
ENDIF
|
|
|
|
|
|
|
|
{-
|
2016-06-30 04:59:50 +08:00
|
|
|
use File::Spec::Functions;
|
2016-06-03 21:02:10 +08:00
|
|
|
use File::Basename;
|
|
|
|
use if $^O ne "VMS", 'File::Glob' => qw/glob/;
|
|
|
|
|
|
|
|
my @nogo_headers = ( "asn1_mac.h",
|
|
|
|
"__decc_include_prologue.h",
|
|
|
|
"__decc_include_epilogue.h" );
|
|
|
|
my @headerfiles = glob catfile($sourcedir,
|
|
|
|
updir(), "include", "openssl", "*.h");
|
|
|
|
|
|
|
|
foreach my $headerfile (@headerfiles) {
|
|
|
|
my $name = basename($headerfile, ".h");
|
|
|
|
next if $disabled{$name};
|
|
|
|
next if grep { $_ eq lc("$name.h") } @nogo_headers;
|
|
|
|
$OUT .= <<"_____";
|
|
|
|
|
2016-07-08 20:52:51 +08:00
|
|
|
PROGRAMS_NO_INST=buildtest_$name
|
2016-06-03 21:02:10 +08:00
|
|
|
GENERATE[buildtest_$name.c]=generate_buildtest.pl $name
|
|
|
|
SOURCE[buildtest_$name]=buildtest_$name.c
|
2016-06-30 04:59:50 +08:00
|
|
|
INCLUDE[buildtest_$name]=../include
|
2016-06-03 21:02:10 +08:00
|
|
|
DEPEND[buildtest_$name]=../libssl ../libcrypto
|
|
|
|
_____
|
|
|
|
}
|
2016-08-05 06:32:36 +08:00
|
|
|
-}
|