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