From: Peter Rabbitson Date: Thu, 3 Jun 2010 10:31:45 +0000 (+0000) Subject: enter xt/ (RT#56698) X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=f90896ae18712675ac223834265342fbc5558b07;p=dbsrgits%2FDBIx-Class-Historic.git enter xt/ (RT#56698) --- diff --git a/MANIFEST.SKIP b/MANIFEST.SKIP index 099f160..60d118c 100644 --- a/MANIFEST.SKIP +++ b/MANIFEST.SKIP @@ -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. diff --git a/Makefile.PL b/Makefile.PL index 695de0d..9ec98e2 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -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'; diff --git a/t/07eol.t b/xt/eol.t similarity index 85% rename from t/07eol.t rename to xt/eol.t index 85301ef..609f6ad 100644 --- 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 diff --git a/t/06notabs.t b/xt/notabs.t similarity index 78% rename from t/06notabs.t rename to xt/notabs.t index 8676ff6..de1baab 100644 --- a/t/06notabs.t +++ b/xt/notabs.t @@ -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; diff --git a/t/10optional_deps.t b/xt/optional_deps.t similarity index 100% rename from t/10optional_deps.t rename to xt/optional_deps.t diff --git a/t/02pod.t b/xt/pod.t similarity index 100% rename from t/02pod.t rename to xt/pod.t diff --git a/t/03podcoverage.t b/xt/podcoverage.t similarity index 100% rename from t/03podcoverage.t rename to xt/podcoverage.t