diff options
author | Rich Salz <rsalz@openssl.org> | 2017-05-15 14:49:37 -0400 |
---|---|---|
committer | Rich Salz <rsalz@openssl.org> | 2017-05-15 20:39:15 -0400 |
commit | e1cfd184dafb3e0759c567d7ca13a92b5491ff89 (patch) | |
tree | a1ebb0b007f5d6ccb4e13c4311810c4baf736e92 /test/recipes | |
parent | 007d2725303936588df656042fd61aa8ec6f7254 (diff) | |
download | openssl-e1cfd184dafb3e0759c567d7ca13a92b5491ff89.tar.gz |
Use BIO not FILE for test file
Allow multiple file arguments.
Split bntests.txt into separate files.
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3471)
Diffstat (limited to 'test/recipes')
-rw-r--r-- | test/recipes/10-test_bn.t | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/test/recipes/10-test_bn.t b/test/recipes/10-test_bn.t index 628512afd3..f5c3fb14eb 100644 --- a/test/recipes/10-test_bn.t +++ b/test/recipes/10-test_bn.t @@ -16,7 +16,13 @@ use OpenSSL::Test qw/:DEFAULT srctop_file/; setup("test_bn"); -plan tests => 1; +my @files = ( + "bnexp.txt", "bnmod.txt", "bnmul.txt", "bnshift.txt", "bnsum.txt" + ); +plan tests => 1 + scalar(@files); -ok(run(test(["bntest", srctop_file("test", "bntests.txt")])), - "running bntest bntests.txt"); +foreach my $f ( @files ) { + ok(run(test(["bntest", srctop_file("test", $f)])), + "running bntest $f"); +} +ok(run(test(["bntest"])), "running bntest"); |