File: 95kwalitee.t

package info (click to toggle)
libmysql-diff-perl 0.60-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster, forky, sid, trixie
  • size: 240 kB
  • sloc: perl: 1,263; makefile: 12
file content (20 lines) | stat: -rw-r--r-- 548 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# -*- 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{AUTOMATED_TESTING};
plan skip_all => 'Test::Kwalitee fails with clang -faddress-sanitizer'
    if $Config{ccflags} =~ /(-fsanitize=address|-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;
};
plan skip_all => "Test::Kwalitee needed for testing kwalitee"
    if $@;