File: 050-meta.t

package info (click to toggle)
libimager-perl 1.005%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 6,308 kB
  • ctags: 4,067
  • sloc: perl: 30,915; ansic: 27,680; makefile: 55; cpp: 4
file content (19 lines) | stat: -rw-r--r-- 493 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!perl -w
use strict;
use Test::More;
plan skip_all => "Only run as part of the dist"
  unless -f "META.yml";
eval "use CPAN::Meta 2.110580;";
plan skip_all => "CPAN::Meta required for testing META.yml"
  if $@;
plan skip_all => "Only if automated or author testing"
  unless $ENV{AUTOMATED_TESTING} || -d "../.git";
plan tests => 1;

my $meta;
unless (ok(eval {
  $meta = CPAN::Meta->load_file("META.yml",
				{ lazy_validation => 0 }) },
	   "loaded META.yml successfully")) {
  diag($@);
}