Rearrange test files
gfx [Mon, 15 Mar 2010 06:01:10 +0000 (15:01 +0900)]
t/800_with_external/001-pod-coverage-moose.t [moved from xt/external/pod-coverage-moose.t with 100% similarity]
t/800_with_external/002-externals.t [moved from xt/06_usermodules.t with 92% similarity]
t/800_with_external/lib/Foo.pm [moved from xt/external/lib/Foo.pm with 100% similarity]
xt/001-pod.t [moved from xt/01_pod.t with 100% similarity]
xt/002-pod_spell.t [moved from xt/02_pod_spell.t with 100% similarity]
xt/003-pod_coverage.t [moved from xt/03_pod_coverage.t with 100% similarity]
xt/004-fs_portability.t [moved from xt/04_fs_portability.t with 100% similarity]
xt/005-dbsub.t [moved from xt/05_dbsub.t with 100% similarity]
xt/006-perlcritic.t [moved from xt/07_perlcritic.t with 100% similarity]

similarity index 92%
rename from xt/06_usermodules.t
rename to t/800_with_external/002-externals.t
index da176ef..b594082 100644 (file)
@@ -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;
similarity index 100%
rename from xt/01_pod.t
rename to xt/001-pod.t
similarity index 100%
rename from xt/02_pod_spell.t
rename to xt/002-pod_spell.t
similarity index 100%
rename from xt/03_pod_coverage.t
rename to xt/003-pod_coverage.t
similarity index 100%
rename from xt/05_dbsub.t
rename to xt/005-dbsub.t
similarity index 100%
rename from xt/07_perlcritic.t
rename to xt/006-perlcritic.t