]>
git.ipfire.org Git - thirdparty/openssl.git/blob - test/run_tests.pl
6 use File
::Spec
::Functions qw
/catdir catfile curdir abs2rel rel2abs/;
8 use Test
::Harness qw
/runtests $switches/;
11 my $recipesdir = catdir
($top, "test", "recipes");
12 my $testlib = catdir
($top, "test", "testlib");
14 # It seems that $switches is getting interpretted with 'eval' or something
15 # like that, and that we need to take care of backslashes or they will
16 # disappear along the way.
17 $testlib =~ s
|\\|\\\\|g
if $^O
eq "MSWin32";
19 # Test::Harness provides the variable $switches to give it
20 # switches to be used when it calls our recipes.
21 $switches = "-w \"-I$testlib\"";
23 my @tests = ( "alltests" );
27 if (grep /^alltests$/, @tests) {
29 basename
($_) =~ /^[0-9][0-9]-[^\.]*\.t$/
30 } glob(catfile
($recipesdir,"*.t"));
35 basename
($_) =~ /^[0-9][0-9]-[^\.]*\.t$/
36 } glob(catfile
($recipesdir,"*-$_.t"));
41 @tests = map { abs2rel
($_, rel2abs
(curdir
())); } @tests;
43 runtests
(sort @tests);