Changeset 6537

Show
Ignore:
Timestamp:
08/28/05 20:16:12 (3 years ago)
Author:
putter
Message:

Consolidated ENV{PUGS_RUNTIME} hackery in run-smoke. yaml_harness is now backend-clean.
yaml_harness.pl: --exclude now takes a regex pattern rather than a string, and it is applied to the path, not just the bare filename.

Location:
util
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • util/run-smoke.pl

    r6471 r6537  
    1818Please install it from the CPAN and try again. 
    1919EOF 
     20#' 
    2021 
    2122# 
     
    3738        qw<ext/Test/lib blib6/lib>, $ENV{PERL6LIB}; 
    3839 
     40my @yaml_harness_args; 
     41push(@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 
    3945sub make { return `$Config{make} @_` }; 
    4046my $dev_null = File::Spec->devnull; 
    4147 
    4248my $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: $!"; 
     49system($^X, qw(-w ./util/yaml_harness.pl),@yaml_harness_args) == 0 or die "Could not run yaml harness: $!"; 
    4450system($^X, qw(-w ./util/testgraph.pl --inlinecss tests.yml), $html_location) == 0 or die "Could not convert .yml to testgraph: $!"; 
    4551upload_smoke($html_location); 
  • util/yaml_harness.pl

    r6531 r6537  
    3939push @{$Config{"exclude"}}, 'Disabled' if not $Config{"exclude"} or not @{$Config{"exclude"}}; 
    4040if(!@ARGV) { 
    41   if($ENV{PUGS_RUNTIME} and $ENV{PUGS_RUNTIME} eq 'JS') { 
    42     @ARGV = < t/ >; 
    43   } else { 
    4441    @ARGV = glob "t/ ext/*/t/"; 
    45   } 
    4642} 
    4743 
     
    7672            next if $file eq ".svn"; 
    7773            next if $file eq "CVS"; 
    78             next if $Config{exclude_re} && $file =~ $Config{exclude_re}; 
    79  
    8074            my $currfile = File::Spec->catfile( $start, $file ); 
     75            next if $Config{exclude_re} && $currfile =~ $Config{exclude_re}; 
     76 
    8177            if ( -d $currfile ) { 
    8278                push( @hits, all_in( $currfile ) ) if $Config{recurse}; 
     
    127123 
    128124sub _build_exclude_re { 
    129     my $excl = join "|", map { quotemeta } 
     125    my $excl = join "|", # map { quotemeta } 
    130126        map { split /,/ } @{ $Config{exclude} }; 
    131127    $Config{exclude_re} = qr/($excl)/ if $excl;