Add math tests recipes
authorRichard Levitte <levitte@openssl.org>
Fri, 17 Apr 2015 17:57:55 +0000 (19:57 +0200)
committerRichard Levitte <levitte@openssl.org>
Mon, 7 Sep 2015 14:10:57 +0000 (16:10 +0200)
commitf3356b7f49823ddf31683667dfd376312b0a92a3
treee5be3cfd1f7113f5e97d1a65cfaa32d823a44e2a
parentaec27d4d5210234560deab85c97bd453535f66ae
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>
test/recipes/10-test_bn.t [new file with mode: 0644]
test/recipes/10-test_exp.t [new file with mode: 0644]
test/recipes/bc.pl [new file with mode: 0644]