From f777408fc5afc2477aaf999254eb3158790332bd Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Sun, 12 Nov 2000 20:24:30 +0000 Subject: [PATCH] For a long time, I've wanted to be able to easily run one or a few individual tests. I finally got myself to implement it... --- Makefile.org | 6 +++++- test/Makefile.ssl | 12 ++++++++---- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/Makefile.org b/Makefile.org index 38cbb1bc4..c73c5b3c1 100644 --- a/Makefile.org +++ b/Makefile.org @@ -164,6 +164,10 @@ SDIRS= \ buffer bio stack lhash rand err objects \ evp asn1 pem x509 x509v3 conf txt_db pkcs7 pkcs12 comp ocsp +# tests to perform. "alltests" is a special word indicating that all tests +# should be performed. +TESTS = alltests + MAKEFILE= Makefile.ssl MAKE= make -f Makefile.ssl @@ -374,7 +378,7 @@ test: tests tests: rehash @(cd test && echo "testing..." && \ - $(MAKE) CC='${CC}' CFLAG='${CFLAG}' INSTALLTOP='${INSTALLTOP}' PEX_LIBS='${PEX_LIBS}' EX_LIBS='${EX_LIBS}' BN_ASM='${BN_ASM}' DES_ENC='${DES_ENC}' BF_ENC='${BF_ENC}' CAST_ENC='${CAST_ENC}' RC4_ENC='${RC4_ENC}' RC5_ENC='${RC5_ENC}' SDIRS='${SDIRS}' SHA1_ASM_OBJ='${SHA1_ASM_OBJ}' MD5_ASM_OBJ='${MD5_ASM_OBJ}' RMD160_ASM_OBJ='${RMD160_ASM_OBJ}' AR='${AR}' tests ); + $(MAKE) CC='${CC}' CFLAG='${CFLAG}' INSTALLTOP='${INSTALLTOP}' PEX_LIBS='${PEX_LIBS}' EX_LIBS='${EX_LIBS}' BN_ASM='${BN_ASM}' DES_ENC='${DES_ENC}' BF_ENC='${BF_ENC}' CAST_ENC='${CAST_ENC}' RC4_ENC='${RC4_ENC}' RC5_ENC='${RC5_ENC}' SDIRS='${SDIRS}' SHA1_ASM_OBJ='${SHA1_ASM_OBJ}' MD5_ASM_OBJ='${MD5_ASM_OBJ}' RMD160_ASM_OBJ='${RMD160_ASM_OBJ}' AR='${AR}' TESTS='${TESTS}' tests ); @apps/openssl version -a report: diff --git a/test/Makefile.ssl b/test/Makefile.ssl index eea811dcb..0b56192da 100644 --- a/test/Makefile.ssl +++ b/test/Makefile.ssl @@ -55,6 +55,8 @@ SSLTEST= ssltest RSATEST= rsa_test ENGINETEST= enginetest +TESTS= alltests + EXE= $(BNTEST) $(IDEATEST) $(MD2TEST) $(MD4TEST) $(MD5TEST) $(HMACTEST) \ $(RC2TEST) $(RC4TEST) $(RC5TEST) \ $(DESTEST) $(SHATEST) $(SHA1TEST) $(MDC2TEST) $(RMDTEST) \ @@ -101,7 +103,12 @@ install: tags: ctags $(SRC) -tests: exe apps \ +tests: exe apps $(TESTS) + +apps: + @(cd ../apps; $(MAKE) CC='${CC}' CFLAG='${CFLAG}' INSTALLTOP='${INSTALLTOP}' PEX_LIBS='${PEX_LIBS}' EX_LIBS='${EX_LIBS}' all) + +alltests: \ test_des test_idea test_sha test_md4 test_md5 test_hmac \ test_md2 test_mdc2 \ test_rmd test_rc2 test_rc4 test_rc5 test_bf test_cast \ @@ -109,9 +116,6 @@ tests: exe apps \ test_gen test_req test_pkcs7 test_verify test_dh test_dsa \ test_ss test_ca test_engine test_ssl test_rd -apps: - @(cd ../apps; $(MAKE) CC='${CC}' CFLAG='${CFLAG}' INSTALLTOP='${INSTALLTOP}' PEX_LIBS='${PEX_LIBS}' EX_LIBS='${EX_LIBS}' all) - test_des: ./$(DESTEST)