Sophie

Sophie

distrib > Mageia > 1 > i586 > by-pkgid > 16ff835aef4b709d0d6424b72e6e431f > files > 11

perl-Test-YAML-Meta-0.190.0-2.mga1.noarch.rpm

use Test::More;

# Skip if doing a regular install
plan skip_all => "Author tests not required for installation"
    unless ( $ENV{AUTOMATED_TESTING} );

eval "use Test::YAML::Meta 0.12";
plan skip_all => "Test::YAML::Meta 0.12 required for testing META.yml" if $@;

plan no_plan;

my $yaml = meta_spec_ok(undef,undef,@_);

use MyDistro;

is($yaml->{version},$MyDistro::VERSION,
    'META.yml distribution version matches');

if($yaml->{provides}) {
    for my $mod (keys %{$yaml->{provides}}) {
        is($yaml->{provides}{$mod}{version},$MyDistro::VERSION,
            "META.yml entry [$mod] version matches");
    }
}