summaryrefslogtreecommitdiff
path: root/t/900_kwalitee.t
diff options
context:
space:
mode:
Diffstat (limited to 't/900_kwalitee.t')
-rw-r--r--t/900_kwalitee.t21
1 files changed, 21 insertions, 0 deletions
diff --git a/t/900_kwalitee.t b/t/900_kwalitee.t
new file mode 100644
index 0000000..40b1696
--- /dev/null
+++ b/t/900_kwalitee.t
@@ -0,0 +1,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 $@;