This website requires JavaScript.
Explore
Help
Sign in
wbrawner
/
openssl
Watch
1
Star
0
Fork
You've already forked openssl
0
Code
Issues
Pull requests
Projects
Releases
Packages
Wiki
Activity
Actions
2511c12bf2
openssl
/
test
/
recipes
/
10-test_exp.t
6 lines
82 B
Perl
Raw
Normal View
History
Unescape
Escape
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>
2015-04-17 17:57:55 +00:00
#! /usr/bin/perl
Simplify very simple test recipes further. Very simple test recipes easily become tedious, so they might benefit from being made as simple as possible. Therefore, OpenSSL::Test::Simple is born. It currently provides but one function, simple_test(), which takes a minimum of two parameters (test name and program to run), with the optional third, being the algorithm to be checked for before running the test itself. All recipes with that simple thing to do have been rewritten to be as minimal as possible. Reviewed-by: Rich Salz <rsalz@openssl.org>
2015-04-21 17:29:01 +00:00
use
OpenSSL::Test::Simple
;
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>
2015-04-17 17:57:55 +00:00
Simplify very simple test recipes further. Very simple test recipes easily become tedious, so they might benefit from being made as simple as possible. Therefore, OpenSSL::Test::Simple is born. It currently provides but one function, simple_test(), which takes a minimum of two parameters (test name and program to run), with the optional third, being the algorithm to be checked for before running the test itself. All recipes with that simple thing to do have been rewritten to be as minimal as possible. Reviewed-by: Rich Salz <rsalz@openssl.org>
2015-04-21 17:29:01 +00:00
simple_test
(
"test_exp"
,
"exptest"
)
;
Reference in a new issue
Copy permalink