1#!/usr/bin/perl
2
3# Test that our META.yml file matches the current specification.
4
5use strict;
6BEGIN {
7	$|  = 1;
8	$^W = 1;
9}
10
11my $MODULE = 'Test::CPAN::Meta 0.17';
12
13# Don't run tests for installs
14use Test::More;
15unless ( $ENV{AUTOMATED_TESTING} or $ENV{RELEASE_TESTING} ) {
16	plan( skip_all => "Author tests not required for installation" );
17}
18
19# Load the testing module
20eval "use $MODULE";
21if ( $@ ) {
22	$ENV{RELEASE_TESTING}
23	? die( "Failed to load required release-testing module $MODULE" )
24	: plan( skip_all => "$MODULE not available for testing" );
25}
26
27meta_yaml_ok();
28