enter xt/ (RT#56698)
Peter Rabbitson [Thu, 3 Jun 2010 10:31:45 +0000 (10:31 +0000)]
MANIFEST.SKIP
Makefile.PL
xt/eol.t [moved from t/07eol.t with 85% similarity]
xt/notabs.t [moved from t/06notabs.t with 78% similarity]
xt/optional_deps.t [moved from t/10optional_deps.t with 100% similarity]
xt/pod.t [moved from t/02pod.t with 100% similarity]
xt/podcoverage.t [moved from t/03podcoverage.t with 100% similarity]

index 099f160..60d118c 100644 (file)
@@ -1,4 +1,4 @@
-^(?!script/|examples/|lib/|inc/|t/|Makefile.PL$|README$|MANIFEST$|Changes$|META.yml$)
+^(?!script/|examples/|lib/|inc/|t/|xt/|Makefile.PL$|README$|MANIFEST$|Changes$|META.yml$)
 
 
 # Avoid version control files.
index 695de0d..9ec98e2 100644 (file)
@@ -1,4 +1,4 @@
-use inc::Module::Install 0.93;
+use inc::Module::Install 0.97;
 use strict;
 use warnings;
 use POSIX ();
@@ -135,9 +135,9 @@ for my $mod (sort keys %final_req) {
 }
 
 # output twice since the deplist is > 70 lines
-warn $optdep_msg;
+warn $optdep_msg if $Module::Install::AUTHOR;
 auto_install();
-warn $optdep_msg;
+warn $optdep_msg if $Module::Install::AUTHOR;
 
 # re-create various autogenerated documentation bits
 if ($Module::Install::AUTHOR) {
@@ -159,10 +159,16 @@ if ($Module::Install::AUTHOR) {
   #  PodInherit();
 }
 
+
 tests_recursive (qw|
     t
 |);
 
+# temporary(?) until I get around to fix M::I wrt xt/
+# needs Module::Install::AuthorTests
+recursive_author_tests (qw/xt/);
+
+
 install_script (qw|
     script/dbicadmin
 |);
@@ -190,8 +196,7 @@ create_distdir : manifest
 
 EOP
 
-
-
+homepage 'http://www.dbix-class.org/';
 resources 'IRC'         => 'irc://irc.perl.org/#dbix-class';
 resources 'license'     => 'http://dev.perl.org/licenses/';
 resources 'repository'  => 'git://git.shadowcat.co.uk/dbsrgits/DBIx-Class.git';
similarity index 85%
rename from t/07eol.t
rename to xt/eol.t
index 85301ef..609f6ad 100644 (file)
--- a/t/07eol.t
+++ b/xt/eol.t
@@ -22,7 +22,10 @@ unless ( DBIx::Class::Optional::Dependencies->req_ok_for ('test_eol') ) {
 
 TODO: {
   local $TODO = 'Do not fix those yet - we have way too many branches out there, merging will be hell';
-  Test::EOL::all_perl_files_ok({ trailing_whitespace => 1}, qw/t lib script maint/);
+  Test::EOL::all_perl_files_ok({ trailing_whitespace => 1},
+    qw/t xt lib script/,
+    DBICTest::AuthorCheck->is_author ? ('maint') : (),
+  );
 }
 
 # FIXME - need to fix Test::EOL
similarity index 78%
rename from t/06notabs.t
rename to xt/notabs.t
index 8676ff6..de1baab 100644 (file)
@@ -18,7 +18,10 @@ unless ( DBIx::Class::Optional::Dependencies->req_ok_for ('test_notabs') ) {
     : plan skip_all => "Test needs: $missing"
 }
 
-Test::NoTabs::all_perl_files_ok(qw/t lib script maint/);
+Test::NoTabs::all_perl_files_ok(
+  qw/t xt lib script/,
+  DBICTest::AuthorCheck->is_author ? ('maint') : (),
+);
 
-# FIXME - need to fix Test::NoTabs
+# FIXME - need to fix Test::NoTabs - doesn't work with done_testing
 #done_testing;
similarity index 100%
rename from t/10optional_deps.t
rename to xt/optional_deps.t
similarity index 100%
rename from t/02pod.t
rename to xt/pod.t
similarity index 100%
rename from t/03podcoverage.t
rename to xt/podcoverage.t