Changeset 21645 for util

Show
Ignore:
Timestamp:
07/31/08 09:28:00 (4 months ago)
Author:
audreyt
Message:

* Add Time::Out support to "make smoke".

Location:
util
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • util/gen_prelude.pl

    r20057 r21645  
    4343    #      executable. 
    4444    print STDERR "Triggering rebuild... " if $Config{verbose}; 
    45     unlink "blib6/lib/Prelude.pm.yml"; 
    46     unlink "blib6/lib/Prelude.pm.yml.pm"; 
     45    unlink "blib6/lib/Prelude.pm.bin"; 
     46    unlink "blib6/lib/Prelude.pm.bin.pm"; 
    4747    #unlink "src/Pugs/PreludePC.hs"; 
    4848    #unlink "src/Pugs/Run.hi"; 
     
    169169 
    170170    if ($Config{verbose}) { 
    171         print STDERR "# $Config{pugs} -Iext/Math-Basic/lib -C Parse-YAML $TEMP_PRELUDE $output\n"; 
     171        print STDERR "# $Config{pugs} -Iext/Math-Basic/lib -C Parse-Binary $TEMP_PRELUDE $output\n"; 
    172172        print STDERR "Generating precompiled Prelude"; 
    173173    } 
     
    180180    close OUT; 
    181181 
    182     system("$Config{pugs} -Iext/Math-Basic/lib -C Parse-YAML $TEMP_PRELUDE $output"); 
     182    system("$Config{pugs} -Iext/Math-Basic/lib -C Parse-Binary $TEMP_PRELUDE $output"); 
    183183 
    184184    if ($Config{output}) { 
     
    206206       $0 --precompile src/perl6/Prelude.pm --pugs ./pugs.exe [options] 
    207207 
    208 Creates a Prelude.hs fallback or a Prelude.pm.yml file (written to stdout), 
     208Creates a Prelude.hs fallback or a Prelude.pm.bin file (written to stdout), 
    209209to be loaded by Run.hs. 
    210210 
     
    212212version of the Prelude code is inlined into the executable, to be 
    213213"eval"ed when pugs starts.  After the executable is ready, the Standard 
    214 Prelude is precompiled and stored in YAML format in a (conjecturally) 
     214Prelude is precompiled and stored in Binary format in a (conjecturally) 
    215215well-defined location for latter runs of pugs to pick up and load quickly. 
    216216 
  • util/run-smoke.pl

    r17103 r21645  
    3131 
    3232my $failed = 0; 
    33 for (qw/YAML Test::TAP::Model Test::TAP::HTMLMatrix Best/) { 
     33for (qw/YAML Test::TAP::Model Test::TAP::HTMLMatrix Best Time::Out/) { 
    3434    check_prereq($_) or $failed++; 
    3535} 
     
    4343 
    4444  cpan Task::Smoke 
     45  cpan Time::Out 
    4546EOF 
    4647 
  • util/yaml_harness.pl

    r19619 r21645  
    280280    warn "$kid$test\n"; 
    281281    my $t = timeit( 1, sub { 
    282         $self->SUPER::run_test($test, @rest); 
     282        use Time::HiRes; 
     283        use Time::Out 'timeout'; 
     284        timeout 300 => sub { $self->SUPER::run_test($test, @rest) }; 
    283285    } ); 
    284286    warn "    ".timestr($t)."\n";