diff options
author | Richard Levitte <levitte@openssl.org> | 2016-01-30 01:05:33 +0100 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2016-02-09 11:43:20 +0100 |
commit | 42e0ccdfe851c9a153d3e90746a2b8561dc9b1e3 (patch) | |
tree | 32b3a8b198c14f54ad5138598ae543dac45d2446 /test/recipes/15-test_rsa.t | |
parent | d7465918867b107058228938e7f5c9fa032ef708 (diff) | |
download | openssl-new-42e0ccdfe851c9a153d3e90746a2b8561dc9b1e3.tar.gz |
unified build scheme: adjust test framework for out of source build tree
To be able to run tests when we've built in a directory other than
the source tree, the testing framework needs a few adjustments.
test/testlib/OpenSSL/Test.pm needs to know where it can find
shlib_wrap.sh, and a number of other tests need to be told a different
place to find engines than what they may be able to figure out on
their own. Relying to $TOP is not enough, $SRCTOP and $BLDTOP can be
used as an alternative.
As part of this change, top_file and top_dir are removed and
srctop_file, bldtop_file, srctop_dir and bldtop_dir take their place.
Reviewed-by: Ben Laurie <ben@openssl.org>
Diffstat (limited to 'test/recipes/15-test_rsa.t')
-rw-r--r-- | test/recipes/15-test_rsa.t | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/recipes/15-test_rsa.t b/test/recipes/15-test_rsa.t index 6418ff7edd..42bba1d0ba 100644 --- a/test/recipes/15-test_rsa.t +++ b/test/recipes/15-test_rsa.t @@ -4,14 +4,14 @@ use strict; use warnings; use File::Spec; -use OpenSSL::Test qw/:DEFAULT top_file/; +use OpenSSL::Test qw/:DEFAULT srctop_file/; use OpenSSL::Test::Utils; setup("test_rsa"); plan tests => 5; -require_ok(top_file('test','recipes','tconversion.pl')); +require_ok(srctop_file('test','recipes','tconversion.pl')); ok(run(test(["rsa_test"])), "running rsatest"); @@ -20,13 +20,13 @@ ok(run(test(["rsa_test"])), "running rsatest"); if disabled("rsa"); subtest 'rsa conversions -- private key' => sub { - tconversion("rsa", top_file("test","testrsa.pem")); + tconversion("rsa", srctop_file("test","testrsa.pem")); }; subtest 'rsa conversions -- private key PKCS#8' => sub { - tconversion("rsa", top_file("test","testrsa.pem"), "pkey"); + tconversion("rsa", srctop_file("test","testrsa.pem"), "pkey"); }; subtest 'rsa conversions -- public key' => sub { - tconversion("rsa", top_file("test","testrsapub.pem"), "rsa", + tconversion("rsa", srctop_file("test","testrsapub.pem"), "rsa", "-pubin", "-pubout"); }; } |