3 if( $ENV{PERL_CORE} ) {
9 use Test::More 'no_plan';
11 BEGIN {use_ok 'Config::Extensions', '%Extensions'};
15 my @types = qw(dynamic static nonxs);
17 @types{@types} = @types;
19 ok (keys %Extensions, "There are some extensions");
20 # Check only the 3 valid keys have been used.
21 while (my ($key, $val) = each %Extensions) {
23 # Back to the format in Config
25 my $re = qr/\b\Q$raw_ext\E\b/;
26 like($Config{extensions}, $re, "$key was built");
27 unless ($types{$val}) {
31 my $type = $val . '_ext';
32 like($Config{$type}, $re, "$key is $type");