summaryrefslogtreecommitdiffstats
path: root/test/ecdsatest.c
diff options
context:
space:
mode:
authorPauli <paul.dale@oracle.com>2017-06-22 09:35:08 +1000
committerPauli <paul.dale@oracle.com>2017-06-22 09:35:08 +1000
commita69de3f2014ab55329f43633714c9c153cb5cb30 (patch)
tree04bb9e50fbe632c6543e513bdb4be3cc8af36d4d /test/ecdsatest.c
parent906eb3d0316194681ddac09bfa7d1e5143dcb616 (diff)
TAP line filter BIO.
This is an implementation of a BIO filter that produce TAP compatible output for the test framework. The current test indentation level is honoured. The test output functions have been modified to not attempt to indent their output and to not include the leading '#' character. The filter is applied to bio_err only. bio_out is left unchanged, although tests using bio_out have been modified to use bio_err instead. Reviewed-by: Richard Levitte <levitte@openssl.org> (Merged from https://github.com/openssl/openssl/pull/3732)
Diffstat (limited to 'test/ecdsatest.c')
-rw-r--r--test/ecdsatest.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/test/ecdsatest.c b/test/ecdsatest.c
index 54f1a526d9..841934e51c 100644
--- a/test/ecdsatest.c
+++ b/test/ecdsatest.c
@@ -14,13 +14,7 @@
#include <openssl/opensslconf.h> /* To see if OPENSSL_NO_EC is defined */
-#ifdef OPENSSL_NO_EC
-int main(int argc, char *argv[])
-{
- puts("Elliptic curves are disabled.");
- return 0;
-}
-#else
+#ifndef OPENSSL_NO_EC
# include <openssl/crypto.h>
# include <openssl/bio.h>
@@ -403,9 +397,13 @@ static int test_builtin(void)
void register_tests(void)
{
+#ifdef OPENSSL_NO_EC
+ TEST_note("Elliptic curves are disabled.");
+#else
/* initialize the prng */
RAND_seed(rnd_seed, sizeof(rnd_seed));
ADD_TEST(x9_62_tests);
ADD_TEST(test_builtin);
+#endif
}
#endif