unified build scheme: adjust test framework for out of source build tree
authorRichard Levitte <levitte@openssl.org>
Sat, 30 Jan 2016 00:05:33 +0000 (01:05 +0100)
committerRichard Levitte <levitte@openssl.org>
Tue, 9 Feb 2016 10:43:20 +0000 (11:43 +0100)
commit42e0ccdfe851c9a153d3e90746a2b8561dc9b1e3
tree32b3a8b198c14f54ad5138598ae543dac45d2446
parentd7465918867b107058228938e7f5c9fa032ef708
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>
34 files changed:
test/recipes/00-check_testexes.t
test/recipes/01-test_ordinals.t
test/recipes/10-test_bn.t
test/recipes/15-test_dsa.t
test/recipes/15-test_ec.t
test/recipes/15-test_rsa.t
test/recipes/20-test_enc.t
test/recipes/25-test_crl.t
test/recipes/25-test_gen.t
test/recipes/25-test_pkcs7.t
test/recipes/25-test_req.t
test/recipes/25-test_sid.t
test/recipes/25-test_verify.t
test/recipes/25-test_x509.t
test/recipes/30-test_evp.t
test/recipes/40-test_rehash.t
test/recipes/70-test_sslcertstatus.t
test/recipes/70-test_sslextension.t
test/recipes/70-test_sslsessiontick.t
test/recipes/70-test_sslskewith0p.t
test/recipes/70-test_sslvertol.t
test/recipes/70-test_tlsextms.t
test/recipes/70-test_verify_extra.t
test/recipes/80-test_ca.t
test/recipes/80-test_cms.t
test/recipes/80-test_dane.t
test/recipes/80-test_ocsp.t
test/recipes/80-test_ssl.t
test/recipes/80-test_tsa.t
test/recipes/90-test_networking.t
test/recipes/tconversion.pl
test/run_tests.pl
test/testlib/OpenSSL/Test.pm
test/testlib/OpenSSL/Test/Utils.pm