Skip tests for flattened extensions that weren't built.
Craig A. Berry [Sun, 8 Feb 2009 19:20:07 +0000 (13:20 -0600)]
Foo/Bar may live under ext/Foo-Bar, but if we didn't build it, we
still need to skip its tests.

t/TEST

diff --git a/t/TEST b/t/TEST
index 1fdcb12..655b3e5 100755 (executable)
--- a/t/TEST
+++ b/t/TEST
@@ -151,6 +151,9 @@ unless (@ARGV) {
                        $extension =~ s!/t$!!;
                        # XXX Do I want to warn that I'm skipping these?
                        next if $skip{$extension};
+                       $flat_extension = $extension;
+                       $flat_extension =~ s!-!/!g;
+                       next if $skip{$flat_extension}; # Foo/Bar may live in Foo-Bar
                    }
                    my $path = File::Spec->catfile($updir, $t);
                    push @ARGV, $path;