#!perl -w
use strict;
use Test::More;
plan skip_all => "Only run as part of the dist"
unless -f "META.yml";
eval "use CPAN::Meta 2.110580;";
plan skip_all => "CPAN::Meta required for testing META.yml"
if $@;
plan skip_all => "Only if automated or author testing"
unless $ENV{AUTOMATED_TESTING} || -d "../.git";
plan tests => 1;
my $meta;
unless (ok(eval {
$meta = CPAN::Meta->load_file("META.yml",
{ lazy_validation => 0 }) },
"loaded META.yml successfully")) {
diag($@);
}