From: gfx Date: Mon, 15 Mar 2010 06:01:10 +0000 (+0900) Subject: Rearrange test files X-Git-Tag: 0.51~1 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=1a3ecabc7c07dec487e93b92c434577052790ca2;p=gitmo%2FMouse.git Rearrange test files --- diff --git a/xt/external/pod-coverage-moose.t b/t/800_with_external/001-pod-coverage-moose.t similarity index 100% rename from xt/external/pod-coverage-moose.t rename to t/800_with_external/001-pod-coverage-moose.t diff --git a/xt/06_usermodules.t b/t/800_with_external/002-externals.t similarity index 92% rename from xt/06_usermodules.t rename to t/800_with_external/002-externals.t index da176ef..b594082 100644 --- a/xt/06_usermodules.t +++ b/t/800_with_external/002-externals.t @@ -1,6 +1,7 @@ #!perl -use if !$ENV{RELEASE_TESTING}, 'Test::More' => (skip_all => "for release testing"); +use constant NEED_TESTING => $ENV{RELEASE_TESTING} || (grep { $_ eq '--test' } @ARGV); +use if !NEED_TESTING, 'Test::More' => (skip_all => "for release testing"); use strict; use warnings; diff --git a/xt/external/lib/Foo.pm b/t/800_with_external/lib/Foo.pm similarity index 100% rename from xt/external/lib/Foo.pm rename to t/800_with_external/lib/Foo.pm diff --git a/xt/01_pod.t b/xt/001-pod.t similarity index 100% rename from xt/01_pod.t rename to xt/001-pod.t diff --git a/xt/02_pod_spell.t b/xt/002-pod_spell.t similarity index 100% rename from xt/02_pod_spell.t rename to xt/002-pod_spell.t diff --git a/xt/03_pod_coverage.t b/xt/003-pod_coverage.t similarity index 100% rename from xt/03_pod_coverage.t rename to xt/003-pod_coverage.t diff --git a/xt/04_fs_portability.t b/xt/004-fs_portability.t similarity index 100% rename from xt/04_fs_portability.t rename to xt/004-fs_portability.t diff --git a/xt/05_dbsub.t b/xt/005-dbsub.t similarity index 100% rename from xt/05_dbsub.t rename to xt/005-dbsub.t diff --git a/xt/07_perlcritic.t b/xt/006-perlcritic.t similarity index 100% rename from xt/07_perlcritic.t rename to xt/006-perlcritic.t