5 use File::Spec::Functions;
6 use OpenSSL::Test qw/:DEFAULT top_file/;
8 setup("check_testexes");
10 my $MINFO = top_file("MINFO");
16 if (open(FH,$MINFO)) {
19 last if /^RELATIVE_DIRECTORY=test$/;
27 my $pathfix = sub { return shift; }; # noop
28 if ($^O eq "MSWin32") {
29 # Experience has shown that glob needs the backslashes escaped
30 # to handle the glob glob() gets served. Otherwise, it sometimes
31 # considers the backslash an escape of the next character, most
33 # (if the single backslash is followed by a *, however, the *
34 # doesn't seem to be considered escaped... go figure...)
35 $pathfix = sub { shift; s/\\/\\\\/g; return $_; };
45 $pathfix->(top_file("test", "recipes",
46 "[0-9][0-9]-test_$_.t")); } split(/\s+/, $_);
47 $numtests = scalar keys %foundfiles;
50 plan tests => $numtests;
52 skip "because $MINFO not found. If you want this test to run, please do 'perl util/mkfiles.pl > $MINFO'", 1
55 foreach (sort keys %foundfiles) {
56 my @check = glob($foundfiles{$_});
57 ok(scalar @check, "check that a test for $_ exists")
58 || diag("Expected to find something matching $foundfiles{$_}");