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