diff options
author | Richard Levitte <levitte@openssl.org> | 2015-04-17 19:57:55 +0200 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2015-09-07 16:10:57 +0200 |
commit | f3356b7f49823ddf31683667dfd376312b0a92a3 (patch) | |
tree | e5be3cfd1f7113f5e97d1a65cfaa32d823a44e2a /test/recipes/10-test_exp.t | |
parent | aec27d4d5210234560deab85c97bd453535f66ae (diff) | |
download | openssl-f3356b7f49823ddf31683667dfd376312b0a92a3.zip openssl-f3356b7f49823ddf31683667dfd376312b0a92a3.tar.gz openssl-f3356b7f49823ddf31683667dfd376312b0a92a3.tar.bz2 |
Add math tests recipes
The math recipes are among the heavier, but also quite important.
For the BN test, we have previously relied on bc to verify the numbers.
Unfortunately, bc doesn't exist everywhere, making tests on some platforms
rather painful. With the new recipe (recipes/10-test_bn.t), we rely
on perl's Math::BigInt and a homegrown simple calculator (recipes/bc.pl)
that can do enough to cover for bc.
Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'test/recipes/10-test_exp.t')
-rw-r--r-- | test/recipes/10-test_exp.t | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/recipes/10-test_exp.t b/test/recipes/10-test_exp.t new file mode 100644 index 0000000..e7bad93 --- /dev/null +++ b/test/recipes/10-test_exp.t @@ -0,0 +1,12 @@ +#! /usr/bin/perl + +use strict; +use warnings; + +use Test::More; +use OpenSSL::Test; + +setup("test_exp"); + +plan tests => 1; +ok(run(test(["exptest"])), "running exptest"); |