]> git.vpit.fr Git - perl/modules/LaTeX-TikZ.git/commitdiff
Add kwalitee test
authorVincent Pit <vince@profvince.com>
Thu, 29 Jul 2010 11:11:22 +0000 (13:11 +0200)
committerVincent Pit <vince@profvince.com>
Thu, 29 Jul 2010 11:11:22 +0000 (13:11 +0200)
MANIFEST
t/99-kwalitee.t [new file with mode: 0644]

index 807c8ab2a02a39bf469ecc64262bfd86ab7c9161..92df2fe7a0e7cdeea7146553fa45f88826e340ce 100644 (file)
--- a/MANIFEST
+++ b/MANIFEST
@@ -50,3 +50,4 @@ t/30-functor.t
 t/91-pod.t
 t/92-pod-coverage.t
 t/95-portability-files.t
+t/99-kwalitee.t
diff --git a/t/99-kwalitee.t b/t/99-kwalitee.t
new file mode 100644 (file)
index 0000000..185d4ce
--- /dev/null
@@ -0,0 +1,21 @@
+#!perl
+
+use strict;
+use warnings;
+
+use Test::More;
+
+eval { require Test::Kwalitee; };
+plan(skip_all => 'Test::Kwalitee not installed') if $@;
+
+SKIP: {
+ eval { Test::Kwalitee->import(); };
+ if (my $err = $@) {
+  1 while chomp $err;
+  require Test::Builder;
+  my $Test = Test::Builder->new;
+  my $plan = $Test->has_plan;
+  $Test->skip_all($err) if not defined $plan or $plan eq 'no_plan';
+  skip $err => $plan - $Test->current_test;
+ }
+}