From: Richard Levitte Date: Sun, 25 Aug 2019 09:32:21 +0000 (+0200) Subject: test/run_tests: extend support for more operating systems X-Git-Tag: v3.0.0~276^2 X-Git-Url: http://wagner.pp.ru/gitweb/?a=commitdiff_plain;h=28e0ece4de8a6d5988b96ec08849ee1737633f9c;p=openssl-gost%2Fengine.git test/run_tests: extend support for more operating systems Not all systems recognise LD_LIBRARY_PATH, and we therefore need to set other environment variables. Currently set: - LD_LIBRARY_PATH (Linux and ELF HP-UX) - DYLD_LIBRARY_PATH (MacOS X) - LIBPATH (AIX, OS/2) More can be added as the need arises. Fixes #146 --- diff --git a/test/run_tests b/test/run_tests index a6709fd..b9912cf 100644 --- a/test/run_tests +++ b/test/run_tests @@ -28,8 +28,19 @@ if(defined $ENV{'OPENSSL_ROOT_DIR'}) { $openssl_libdir = $pkgans; $openssl_bindir = "$ENV{'OPENSSL_ROOT_DIR'}/bin"; } + + # Variants of library paths + # Linux, ELF HP-UX $ENV{'LD_LIBRARY_PATH'} = join(':', $openssl_libdir, split(/:/, $ENV{'LD_LIBRARY_PATH'})); + # MacOS X + $ENV{'DYLD_LIBRARY_PATH'} = + join(':', $openssl_libdir, split(/:/, $ENV{'DYLD_LIBRARY_PATH'})); + # AIX, OS/2 + $ENV{'LIBPATH'} = + join(':', $openssl_libdir, split(/:/, $ENV{'LIBPATH'})); + + # Binary path, works on all Unix-like platforms $ENV{'PATH'} = join(':', $openssl_bindir, split(/:/, $ENV{'PATH'})); }