]> www.wagner.pp.ru Git - openssl-gost/engine.git/commit
test/run_tests: Always set paths when OPENSSL_ROOT_DIR is defined
authorRichard Levitte <richard@levitte.org>
Sat, 24 Aug 2019 08:36:39 +0000 (10:36 +0200)
committerRichard Levitte <richard@levitte.org>
Sat, 24 Aug 2019 08:53:55 +0000 (10:53 +0200)
commit023afe35563fb9a632b1c868671f0840fd99f3fc
tree233d24ac634f94ac67cd57f1b3f6c59b077c44fe
parent53a09efd9d9356496c714914ffa8da8812e0dd45
test/run_tests: Always set paths when OPENSSL_ROOT_DIR is defined

When the environment variable OPENSSL_ROOT_DIR is defined, we need to
ensure that PATH and LD_LIBRARY_PATH are properly affected.

This is a little bit complicated, since OPENSSL_ROOT_DIR could point
at an OpenSSL build directory as well as an OpenSSL installation
tree.  Fortunately, it's easy to detect the difference; if it's a
build tree, there's a sub-directory 'apps'.

For installation trees, it's further complicated by OpenSSL's
'multilib' target attribute, which exists for platforms that support
directory separated libraries for differing bitness (typically 32-bit
and 64-bit libraries).  We trust pkg-config to give us the answer.
Binaries are easier, they live in $OPENSL_ROOT_DIR/bin.

Fixes #146
test/run_tests