5 use File::Spec::Functions;
7 use OpenSSL::Test qw/:DEFAULT top_file/;
9 setup("check_testexes");
11 my $MINFO = top_file("MINFO");
14 skip "because $MINFO not found. If you want this test to run, please do 'perl util/mkfiles.pl > $MINFO'"
15 unless open(FH,$MINFO);
19 last if /^RELATIVE_DIRECTORY=test$/;
30 map { s/\..*$//; # Remove extension
31 s/_?test$//; # Remove possible underscore
32 s/(sha\d+)t/$1/; # sha comes with no t at the end
33 $_; } split(/\s+/, $_);
35 plan tests => scalar @expected_tests;
38 map { basename($_) } glob(top_file("test", "recipes", "*.t"));
40 foreach my $test (sort @expected_tests) {
41 ok(scalar(grep(/^[0-9][0-9]-test_$test\.t$/, @found_tests)),
42 "check that a test for $test exists")
43 || diag("Expected to find something matching '[0-9][0-9]-test_$test.t'");