Blame t/z_kwalitee.t

Packit 745572
# -*- perl -*-
Packit 745572
use strict;
Packit 745572
use warnings;
Packit 745572
use Test::More;
Packit 745572
use Config;
Packit 745572
Packit 745572
plan skip_all => 'requires Test::More 0.88' if Test::More->VERSION < 0.88;
Packit 745572
Packit 745572
plan skip_all => 'This test is only run for the module author'
Packit 745572
  unless -d '.git' || $ENV{AUTHOR_TESTING} || $ENV{RELEASE_TESTING};
Packit 745572
Packit 745572
# Missing XS dependencies are usually not caught by EUMM
Packit 745572
# And they are usually only XS-loaded by the importer, not require.
Packit 745572
for (qw( Class::XSAccessor Text::CSV_XS List::MoreUtils )) {
Packit 745572
  eval "use $_;";
Packit 745572
  plan skip_all => "$_ required for Test::Kwalitee"
Packit 745572
    if $@;
Packit 745572
}
Packit 745572
eval "require Test::Kwalitee;";
Packit 745572
plan skip_all => "Test::Kwalitee required"
Packit 745572
  if $@;
Packit 745572
Packit 745572
plan skip_all => 'Test::Kwalitee fails with clang -faddress-sanitizer'
Packit 745572
  if $Config{ccflags} =~ /-faddress-sanitizer/;
Packit 745572
Packit 745572
use File::Copy 'cp';
Packit 745572
cp('MYMETA.yml','META.yml') if -e 'MYMETA.yml' and !-e 'META.yml';
Packit 745572
Packit 745572
Test::Kwalitee->import( tests => [ qw( -use_strict -proper_libs ) ] );