Ticket #838: xt-with-release-checks.diff
| File xt-with-release-checks.diff, 4.7 KB (added by rhebus, 3 years ago) |
|---|
-
Padre/xt/20-actions.t
17 17 18 18 plan skip_all => 'DISPLAY not set' 19 19 unless $ENV{DISPLAY} or ($^O eq 'MSWin32'); 20 21 # Don't run tests for installs 22 unless ( $ENV{AUTOMATED_TESTING} or $ENV{RELEASE_TESTING} ) { 23 plan( skip_all => "Author tests not required for installation" ); 24 } 20 25 21 26 my $devpl; 22 27 # Search for dev.pl -
Padre/xt/01-copyright.t
4 4 use Test::More; 5 5 use File::Find::Rule; 6 6 7 # Don't run tests for installs 8 unless ( $ENV{AUTOMATED_TESTING} or $ENV{RELEASE_TESTING} ) { 9 plan( skip_all => "Author tests not required for installation" ); 10 } 11 7 12 my @files = File::Find::Rule->name('*.pm')->file->in('lib'); 8 13 plan tests => scalar @files; 9 14 -
Padre/xt/critic-util.t
8 8 use File::Spec::Functions ':ALL'; 9 9 10 10 BEGIN { 11 # Don't run tests for installs or automated tests 12 unless ( $ENV{RELEASE_TESTING} ) { 13 plan( skip_all => "Author tests not required for installation" ); 14 } 11 15 my $config = catfile('xt', 'critic-util.ini'); 12 16 unless ( eval "use Test::Perl::Critic -profile => '$config'; 1" ) { 13 17 plan skip_all => 'Test::Perl::Critic required to criticise code'; -
Padre/xt/02-eol.t
3 3 use Test::More; 4 4 5 5 BEGIN { 6 # Don't run tests for installs 7 unless ( $ENV{AUTOMATED_TESTING} or $ENV{RELEASE_TESTING} ) { 8 plan( skip_all => "Author tests not required for installation" ); 9 } 10 6 11 unless ( $ENV{DISPLAY} or $^O eq 'MSWin32' ) { 7 12 plan skip_all => 'Needs DISPLAY'; 8 13 exit 0; -
Padre/xt/12-badcode.t
5 5 use Test::More; 6 6 7 7 BEGIN { 8 # Don't run tests for installs 9 unless ( $ENV{AUTOMATED_TESTING} or $ENV{RELEASE_TESTING} ) { 10 plan( skip_all => "Author tests not required for installation" ); 11 } 12 8 13 unless ( $ENV{DISPLAY} or $^O eq 'MSWin32' ) { 9 14 plan( skip_all => 'Needs DISPLAY' ); 10 15 exit(0); -
Padre/xt/critic-core.t
8 8 use File::Spec::Functions ':ALL'; 9 9 10 10 BEGIN { 11 # Don't run tests for installs or automated tests 12 unless ( $ENV{RELEASE_TESTING} ) { 13 plan( skip_all => "Author tests not required for installation" ); 14 } 11 15 my $config = catfile('xt', 'critic-core.ini'); 12 16 unless ( eval "use Test::Perl::Critic -profile => '$config'; 1" ) { 13 17 plan skip_all => 'Test::Perl::Critic required to criticise code'; -
Padre/xt/03-compile.t
5 5 use Test::More; 6 6 7 7 BEGIN { 8 # Don't run tests for installs 9 unless ( $ENV{AUTOMATED_TESTING} or $ENV{RELEASE_TESTING} ) { 10 plan( skip_all => "Author tests not required for installation" ); 11 } 12 8 13 unless ( $ENV{DISPLAY} or $^O eq 'MSWin32' ) { 9 14 plan skip_all => 'Needs DISPLAY'; 10 15 exit 0; -
Padre/xt/11-pragmas.t
11 11 use Test::More; 12 12 use File::Find::Rule; 13 13 14 # Don't run tests for installs 15 unless ( $ENV{AUTOMATED_TESTING} or $ENV{RELEASE_TESTING} ) { 16 plan( skip_all => "Author tests not required for installation" ); 17 } 18 14 19 my @files = File::Find::Rule->name('*.pm')->file->in('lib'); 15 20 plan tests => scalar @files; 16 21 -
Padre/xt/13-perl-beginner.t
61 61 use Data::Dumper qw(Dumper); 62 62 use File::Spec (); 63 63 64 # Don't run tests for installs 65 unless ( $ENV{AUTOMATED_TESTING} or $ENV{RELEASE_TESTING} ) { 66 plan( skip_all => "Author tests not required for installation" ); 67 } 68 64 69 # enable NoWarning if this is fixed 65 70 66 71 my %TEST = (
