| 1 | #!perl -w |
| 2 | use strictscip-perl cpan Imager 1.035 strict/; |
| 3 | use Test::Morescip-perl cpan Imager 1.035 Test/More/; |
| 4 | planscip-perl cpan Imager 1.035 main/plan(). skip_all => "Only run as part of the dist" |
| 5 | unless -f "META.yml"; |
| 6 | eval "use CPAN::Meta 2.110580;"; |
| 7 | planscip-perl cpan Imager 1.035 main/plan(). skip_all => "CPAN::Meta required for testing META.yml" |
| 8 | if $@scip-perl cpan Imager 1.035 main/`$@`.; |
| 9 | planscip-perl cpan Imager 1.035 main/plan(). skip_all => "Only if automated or author testing" |
| 10 | unless $ENVscip-perl cpan Imager 1.035 main/`%ENV`.{AUTOMATED_TESTING} || -d "../.git"; |
| 11 | planscip-perl cpan Imager 1.035 main/plan(). tests => 1; |
| 12 | |
| 13 | my $meta; |
| 14 | unless (okscip-perl cpan Imager 1.035 main/ok().(eval { |
| 15 | $meta = CPAN::Meta->load_filescip-perl cpan Imager 1.035 CPAN/Meta/load_file().("META.yml", |
| 16 | { lazy_validation => 0 }) }, |
| 17 | "loaded META.yml successfully")) { |
| 18 | diagscip-perl cpan Imager 1.035 main/diag().($@scip-perl cpan Imager 1.035 main/`$@`.); |
| 19 | } |