Blame t/97_meta.t

Packit 549706
#!/usr/bin/perl
Packit 549706
Packit 549706
# Test that our META.yml file matches the current specification.
Packit 549706
Packit 549706
use strict;
Packit 549706
BEGIN {
Packit 549706
	$|  = 1;
Packit 549706
	$^W = 1;
Packit 549706
}
Packit 549706
Packit 549706
my $MODULE = 'Test::CPAN::Meta 0.12';
Packit 549706
Packit 549706
# Don't run tests for installs
Packit 549706
use Test::More;
Packit 549706
unless ( $ENV{AUTOMATED_TESTING} or $ENV{RELEASE_TESTING} ) {
Packit 549706
	plan( skip_all => "Author tests not required for installation" );
Packit 549706
}
Packit 549706
Packit 549706
# Load the testing module
Packit 549706
eval "use $MODULE";
Packit 549706
if ( $@ ) {
Packit 549706
	$ENV{RELEASE_TESTING}
Packit 549706
	? die( "Failed to load required release-testing module $MODULE" )
Packit 549706
	: plan( skip_all => "$MODULE not available for testing" );
Packit 549706
}
Packit 549706
Packit 549706
meta_yaml_ok();