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/20-test_enc.t | |
parent | unified build scheme: adjust some scripts (diff) | |
download | openssl-42e0ccdfe851c9a153d3e90746a2b8561dc9b1e3.tar.xz openssl-42e0ccdfe851c9a153d3e90746a2b8561dc9b1e3.zip |
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/20-test_enc.t')
-rw-r--r-- | test/recipes/20-test_enc.t | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/recipes/20-test_enc.t b/test/recipes/20-test_enc.t index 55f39421fe..2efcf70020 100644 --- a/test/recipes/20-test_enc.t +++ b/test/recipes/20-test_enc.t @@ -7,14 +7,14 @@ use File::Spec::Functions qw/catfile/; use File::Copy; use File::Compare qw/compare_text/; use File::Basename; -use OpenSSL::Test qw/:DEFAULT top_file/; +use OpenSSL::Test qw/:DEFAULT srctop_file/; setup("test_enc"); # We do it this way, because setup() may have moved us around, # so the directory portion of $0 might not be correct any more. # However, the name hasn't changed. -my $testsrc = top_file("test","recipes",basename($0)); +my $testsrc = srctop_file("test","recipes",basename($0)); my $test = catfile(".", "p"); |