blob: 745587af3d9fe05bda101fa5c97b87372fae4cf4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
#!/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);
}
|