X-Git-Url: http://wagner.pp.ru/gitweb/?a=blobdiff_plain;f=test%2Frun_tests;h=c1cd70c753840ca226859ae5bf32dba73c978c6e;hb=1a2714eb8f2c526517a01c90bb02ccd0e22f4c08;hp=a6709fdce2bd1b776ae96d213244d5b505333391;hpb=2e5995f5f69963fb37186378ec01ccb31f0f5000;p=openssl-gost%2Fengine.git diff --git a/test/run_tests b/test/run_tests index a6709fd..c1cd70c 100644 --- a/test/run_tests +++ b/test/run_tests @@ -28,10 +28,23 @@ 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'})); } -my $harness = TAP::Harness->new(); +my $harness = TAP::Harness->new({ + verbosity => (($ENV{CTEST_INTERACTIVE_DEBUG_MODE} // 0) != 0) +}); exit ($harness->runtests(glob("*.t"))->all_passed() ? 0 : 1);