File: 98_kwalitee.t

package info (click to toggle)
libdbd-sqlite2-perl 2%3A0.36-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 1,716 kB
  • ctags: 2,322
  • sloc: ansic: 27,889; perl: 1,730; makefile: 11
file content (21 lines) | stat: -rw-r--r-- 598 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# -*- perl -*-
use strict;
use warnings;

use Test::More;
use Config;

plan skip_all => 'This test is only run for the module author'
    unless -d '.git' || $ENV{IS_MAINTAINER};
plan skip_all => 'Test::Kwalitee fails with clang -faddress-sanitizer'
    if $Config{ccflags} =~ /-faddress-sanitizer/;

use File::Copy 'cp';
cp('MYMETA.yml','META.yml') if -e 'MYMETA.yml' and !-e 'META.yml';
eval { 
  require Test::Kwalitee;
  Test::Kwalitee->import( 
    tests => [ qw( -use_strict -has_test_pod -has_test_pod_coverage)]);
};
plan skip_all => "Test::Kwalitee needed for testing kwalitee"
    if $@;