File: 03_meta.t

package info (click to toggle)
libimage-size-perl 3.300-1.1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 2,324 kB
  • sloc: perl: 988; xml: 987; makefile: 2
file content (27 lines) | stat: -rw-r--r-- 435 bytes parent folder | download | duplicates (5)
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
#!/usr/bin/perl

# Test that our META.yml file matches the specification
use strict;
BEGIN
{
    $|  = 1;
    $^W = 1;

    use Test::More;
    unless ($ENV{AUTHOR_TESTING})
    {
        plan skip_all => "Author tests not required for installation";
    }
    elsif (! -f 'META.yml')
    {
        plan skip_all => "No META.yml file present";
    }
    else
    {
        eval "use Test::CPAN::Meta;";
    }
}

meta_yaml_ok();

exit;