X-Git-Url: https://git.openssl.org/?p=openssl.git;a=blobdiff_plain;f=test%2Frun_tests.pl;h=6343ec7bc3e0860ea38deeb7c9bc0eebfdc4ad5e;hp=66f620e216c074bf83688f02432835ad9453d011;hb=c6d38183d6754b0a7b90527d085a500680e7d2ea;hpb=4549ed12ec3337313c14815438fa9aee88bf1359 diff --git a/test/run_tests.pl b/test/run_tests.pl index 66f620e216..6343ec7bc3 100644 --- a/test/run_tests.pl +++ b/test/run_tests.pl @@ -16,21 +16,21 @@ BEGIN { use File::Spec::Functions qw/catdir catfile curdir abs2rel rel2abs/; use File::Basename; -use if $^O ne "VMS", 'File::Glob' => qw/glob/; -use Module::Load::Conditional qw(can_load); +use FindBin; +use lib "$FindBin::Bin/../util/perl"; +use OpenSSL::Glob; -my $TAP_Harness = can_load(modules => { 'TAP::Harness' => undef }) - ? 'TAP::Harness' : 'OpenSSL::TAP::Harness'; +my $TAP_Harness = eval { require TAP::Harness } ? "TAP::Harness" + : "OpenSSL::TAP::Harness"; my $srctop = $ENV{SRCTOP} || $ENV{TOP}; my $bldtop = $ENV{BLDTOP} || $ENV{TOP}; my $recipesdir = catdir($srctop, "test", "recipes"); -my $testlib = catdir($srctop, "test", "testlib"); -my $utillib = catdir($srctop, "util"); +my $libdir = rel2abs(catdir($srctop, "util", "perl")); my %tapargs = ( verbosity => $ENV{VERBOSE} || $ENV{V} || $ENV{HARNESS_VERBOSE} ? 1 : 0, - lib => [ $testlib, $utillib ], + lib => [ $libdir ], switches => '-w', merge => 1 );