Changeset 6537
- Timestamp:
- 08/28/05 20:16:12 (3 years ago)
- Location:
- util
- Files:
-
- 2 modified
-
run-smoke.pl (modified) (2 diffs)
-
yaml_harness.pl (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
util/run-smoke.pl
r6471 r6537 18 18 Please install it from the CPAN and try again. 19 19 EOF 20 #' 20 21 21 22 # … … 37 38 qw<ext/Test/lib blib6/lib>, $ENV{PERL6LIB}; 38 39 40 my @yaml_harness_args; 41 push(@yaml_harness_args,'--exclude','Disabled,^ext\b') 42 if $ENV{PUGS_RUNTIME} and ($ENV{PUGS_RUNTIME} eq 'JS' or 43 $ENV{PUGS_RUNTIME} eq 'PERL5'); 44 39 45 sub make { return `$Config{make} @_` }; 40 46 my $dev_null = File::Spec->devnull; 41 47 42 48 my $output ;# = svn("up") or die "Could not update pugs tree: $!"; 43 system($^X, qw(-w ./util/yaml_harness.pl) ) == 0 or die "Could not run yaml harness: $!";49 system($^X, qw(-w ./util/yaml_harness.pl),@yaml_harness_args) == 0 or die "Could not run yaml harness: $!"; 44 50 system($^X, qw(-w ./util/testgraph.pl --inlinecss tests.yml), $html_location) == 0 or die "Could not convert .yml to testgraph: $!"; 45 51 upload_smoke($html_location); -
util/yaml_harness.pl
r6531 r6537 39 39 push @{$Config{"exclude"}}, 'Disabled' if not $Config{"exclude"} or not @{$Config{"exclude"}}; 40 40 if(!@ARGV) { 41 if($ENV{PUGS_RUNTIME} and $ENV{PUGS_RUNTIME} eq 'JS') {42 @ARGV = < t/ >;43 } else {44 41 @ARGV = glob "t/ ext/*/t/"; 45 }46 42 } 47 43 … … 76 72 next if $file eq ".svn"; 77 73 next if $file eq "CVS"; 78 next if $Config{exclude_re} && $file =~ $Config{exclude_re};79 80 74 my $currfile = File::Spec->catfile( $start, $file ); 75 next if $Config{exclude_re} && $currfile =~ $Config{exclude_re}; 76 81 77 if ( -d $currfile ) { 82 78 push( @hits, all_in( $currfile ) ) if $Config{recurse}; … … 127 123 128 124 sub _build_exclude_re { 129 my $excl = join "|", map { quotemeta }125 my $excl = join "|", # map { quotemeta } 130 126 map { split /,/ } @{ $Config{exclude} }; 131 127 $Config{exclude_re} = qr/($excl)/ if $excl;
