提交 c537e74b 编写于 作者: R Richard Levitte

Move bn and evp test programs input data to their respective data dir

Reviewed-by: NRich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3472)
上级 46e5b661
...@@ -12,7 +12,7 @@ use warnings; ...@@ -12,7 +12,7 @@ use warnings;
use Math::BigInt; use Math::BigInt;
use OpenSSL::Test qw/:DEFAULT srctop_file/; use OpenSSL::Test qw/:DEFAULT data_file/;
setup("test_bn"); setup("test_bn");
...@@ -22,7 +22,7 @@ my @files = ( ...@@ -22,7 +22,7 @@ my @files = (
plan tests => 1 + scalar(@files); plan tests => 1 + scalar(@files);
foreach my $f ( @files ) { foreach my $f ( @files ) {
ok(run(test(["bntest", srctop_file("test", $f)])), ok(run(test(["bntest", data_file($f)])),
"running bntest $f"); "running bntest $f");
} }
ok(run(test(["bntest"])), "running bntest"); ok(run(test(["bntest"])), "running bntest");
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
use strict; use strict;
use warnings; use warnings;
use OpenSSL::Test qw/:DEFAULT srctop_file/; use OpenSSL::Test qw/:DEFAULT data_file/;
setup("test_evp"); setup("test_evp");
...@@ -20,6 +20,6 @@ my @files = ( "evpciph.txt", "evpdigest.txt", "evpencod.txt", "evpkdf.txt", ...@@ -20,6 +20,6 @@ my @files = ( "evpciph.txt", "evpdigest.txt", "evpencod.txt", "evpkdf.txt",
plan tests => scalar(@files); plan tests => scalar(@files);
foreach my $f ( @files ) { foreach my $f ( @files ) {
ok(run(test(["evp_test", srctop_file("test", "$f")])), ok(run(test(["evp_test", data_file("$f")])),
"running evp_test $f"); "running evp_test $f");
} }
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册