#!/usr/bin/env perl # -*-mode:cperl; indent-tabs-mode: nil-*- ## Test META.yml for YAMLiciousness, requires Test::YAML::Meta use strict; use warnings; use Test::More; select(($|=1,select(STDERR),$|=1)[1]); if (! $ENV{RELEASE_TESTING}) { plan (skip_all => 'Test skipped unless environment variable RELEASE_TESTING is set'); } plan tests => 2; my $V = 0.03; eval { require Test::YAML::Meta; Test::YAML::Meta->import; }; if ($@) { SKIP: { skip 'Skipping Test::YAML::Meta tests: module not found', 2; } } elsif ($Test::YAML::Meta::VERSION < $V) { SKIP: { skip "Skipping Test::YAML::Meta tests: need version $V, but only have $Test::YAML::Meta::VERSION", 2; } } else { meta_spec_ok('META.yml', 1.3); }