summaryrefslogtreecommitdiffstats
path: root/test/recipes/80-test_tsa.t
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2016-01-30 01:05:33 +0100
committerRichard Levitte <levitte@openssl.org>2016-02-09 11:43:20 +0100
commit42e0ccdfe851c9a153d3e90746a2b8561dc9b1e3 (patch)
tree32b3a8b198c14f54ad5138598ae543dac45d2446 /test/recipes/80-test_tsa.t
parentd7465918867b107058228938e7f5c9fa032ef708 (diff)
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/80-test_tsa.t')
-rw-r--r--test/recipes/80-test_tsa.t8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/recipes/80-test_tsa.t b/test/recipes/80-test_tsa.t
index 8e02a6b038..229f17e95d 100644
--- a/test/recipes/80-test_tsa.t
+++ b/test/recipes/80-test_tsa.t
@@ -6,7 +6,7 @@ use warnings;
use POSIX;
use File::Spec::Functions qw/splitdir curdir catfile/;
use File::Compare;
-use OpenSSL::Test qw/:DEFAULT cmdstr top_file/;
+use OpenSSL::Test qw/:DEFAULT cmdstr srctop_file/;
setup("test_tsa");
@@ -72,12 +72,12 @@ plan tests => 20;
note "setting up TSA test directory";
indir "tsa" => sub
{
- $ENV{OPENSSL_CONF} = top_file("test", "CAtsa.cnf");
+ $ENV{OPENSSL_CONF} = srctop_file("test", "CAtsa.cnf");
# Because that's what ../apps/CA.pl really looks at
$ENV{OPENSSL_CONFIG} = "-config ".$ENV{OPENSSL_CONF};
$ENV{OPENSSL} = cmdstr(app(["openssl"]));
- $testtsa = top_file("test", "recipes", "80-test_tsa.t");
- $CAtsa = top_file("test", "CAtsa.cnf");
+ $testtsa = srctop_file("test", "recipes", "80-test_tsa.t");
+ $CAtsa = srctop_file("test", "CAtsa.cnf");
SKIP: {
$ENV{TSDNSECT} = "ts_ca_dn";