Ticket #403: tests.patch

File tests.patch, 6.5 KB (added by rg, 13 years ago)
  • t/pmc/timer.t

     
    153153ok 2 
    154154OUT 
    155155 
    156     my @todo = $ENV{TEST_PROG_ARGS} =~ /-j/ ? 
     156    my @todo = $ENV{TEST_PROG_ARGS} =~ /--runcore=jit/ ? 
    157157       ( todo => 'RT #49718, add scheduler features to JIT' ) : (); 
    158158    pasm_output_is( <<'CODE', <<'OUT', "Timer setup - initializer/start/repeat" , @todo ); 
    159159.include "timer.pasm" 
  • t/pmc/threads.t

     
    733733my @todo; 
    734734 
    735735if ( $ENV{TEST_PROG_ARGS} ) { 
    736     push @todo, ( todo => 'Broken with CGP' ) if $ENV{TEST_PROG_ARGS} =~ /-C/; 
    737     push @todo, ( todo => 'Broken with JIT' ) if $ENV{TEST_PROG_ARGS} =~ /-j/; 
    738     push @todo, ( todo => 'Broken with -S' )  if $ENV{TEST_PROG_ARGS} =~ /-S/; 
     736    push @todo, ( todo => 'Broken with CGP' ) if $ENV{TEST_PROG_ARGS} =~ /--runcore=cgp/; 
     737    push @todo, ( todo => 'Broken with JIT' ) if $ENV{TEST_PROG_ARGS} =~ /--runcore=jit/; 
     738    push @todo, ( todo => 'Broken with switch core' )  if $ENV{TEST_PROG_ARGS} =~ /--runcore=switch/; 
    739739} 
    740740pir_output_unlike( <<'CODE', qr/not/, "globals + constant table subs issue", @todo ); 
    741741.namespace [ 'Foo' ] 
  • t/pmc/nci.t

     
    13721372OUTPUT 
    13731373 
    13741374  # Tests with callback functions 
    1375   my @todo = $ENV{TEST_PROG_ARGS} =~ /-j/ ? 
     1375  my @todo = $ENV{TEST_PROG_ARGS} =~ /--runcore=jit/ ? 
    13761376    ( todo => 'RT #49718, add scheduler tasks to JIT' ) : (); 
    13771377 
    13781378  pasm_output_is( <<'CODE', <<'OUTPUT', "nci_cb_C1 - PASM", @todo ); 
  • t/dynoplibs/myops.t

     
    6767    my @todo; 
    6868 
    6969    if ( $ENV{TEST_PROG_ARGS} ) { 
    70         @todo = ( todo => 'broken with -j' ) if $ENV{TEST_PROG_ARGS} =~ /-j/; 
     70        @todo = ( todo => 'broken with JIT' ) if $ENV{TEST_PROG_ARGS} =~ /--runcore=jit/; 
    7171    } 
    7272 
    7373    my $quine = <<'END_PASM'; 
     
    7777    pasm_output_is( $quine, $quine, 'a short cheating quine', @todo ); 
    7878} 
    7979 
    80     my @todo = $ENV{TEST_PROG_ARGS} =~ /-j/ ? 
     80    my @todo = $ENV{TEST_PROG_ARGS} =~ /--runcore=jit/ ? 
    8181       ( todo => 'RT #49718, add scheduler features to JIT' ) : (); 
    8282 
    8383pir_output_is( << 'CODE', << 'OUTPUT', "one alarm", @todo ); 
     
    112112 
    113113SKIP: { 
    114114    skip "three alarms, infinite loop under mingw32", 2 if $is_mingw; 
    115     skip "dynops weird in CGP with events", 2 if $ENV{TEST_PROG_ARGS} =~ /-g/; 
     115    skip "dynops weird in CGP with events", 2 if $ENV{TEST_PROG_ARGS} =~ /--runcore=cgoto/; 
    116116 
    117     my @todo = $ENV{TEST_PROG_ARGS} =~ /-j/ ? 
     117    my @todo = $ENV{TEST_PROG_ARGS} =~ /--runcore=jit/ ? 
    118118       ( todo => 'RT #49718, add scheduler features to JIT' ) : (); 
    119119 
    120120    pir_output_like( << 'CODE', << 'OUTPUT', "three alarm", @todo ); 
  • t/examples/japh.t

     
    3838if ( $PConfig{intvalsize} == 8 ) { 
    3939    $todo{2} = 'works only with 32-bit integer values'; 
    4040} 
    41 if ( defined( $ENV{TEST_PROG_ARGS}) && $ENV{TEST_PROG_ARGS} =~ /-j/ ) { 
    42     $todo{4} = 'broken with -j'; 
     41if ( defined( $ENV{TEST_PROG_ARGS}) && $ENV{TEST_PROG_ARGS} =~ /--runcore=jit/ ) { 
     42    $todo{4} = 'broken with JIT'; 
    4343} 
    4444 
    4545# run all tests and tell about todoness 
  • t/op/trans.t

     
    266266OUTPUT 
    267267 
    268268my $runcore = $ENV{TEST_PROG_ARGS} || ''; 
    269 my @todo    = ( $runcore =~ /j/ ? ( todo => 'broken under JIT TT #201' ) : () ); 
     269my @todo    = ( $runcore =~ /--runcore=jit/ ? ( todo => 'broken under JIT TT #201' ) : () ); 
    270270 
    271271pasm_output_is( <<"CODE", <<OUTPUT, 'atan2', @todo ); 
    272272        .include 'include/fp_equality.pasm' 
  • t/op/debuginfo.t

     
    2424=cut 
    2525 
    2626$ENV{TEST_PROG_ARGS} ||= ''; 
    27 my $nolineno = $ENV{TEST_PROG_ARGS} =~ /-f/ 
     27my $nolineno = $ENV{TEST_PROG_ARGS} =~ /--runcore=(fast|cgoto)/ 
    2828    ? "\\(unknown file\\)\n-1" : "debuginfo_\\d+\\.pasm\n\\d"; 
    2929 
    3030SKIP: { 
    31 skip "disabled on fast-core",1 if $ENV{TEST_PROG_ARGS} =~ /[^-]?-[fg]/; 
     31skip "disabled on fast-core",1 if $ENV{TEST_PROG_ARGS} =~ /--runcore=(fast|cgoto)/; 
    3232 
    3333pasm_output_like( <<'CODE', <<"OUTPUT", "getline, getfile" ); 
    3434.pcc_sub main: 
     
    164164called from Sub 'main' pc (\d+|-1) \(.*?:(\d+|-1)\)$/ 
    165165OUTPUT 
    166166 
    167 $nolineno = $ENV{TEST_PROG_ARGS} =~ /-f/ 
     167$nolineno = $ENV{TEST_PROG_ARGS} =~ /--runcore=fast/ 
    168168    ? '\(\(unknown file\):-1\)' : '\(xyz.pir:126\)'; 
    169169 
    170170SKIP: { 
    171 skip "disabled on this core",2 if $ENV{TEST_PROG_ARGS} =~ /[^-]?-[fgjS]/; 
     171skip "disabled on this core",2 if $ENV{TEST_PROG_ARGS} =~ /--runcore=(fast|cgoto|jit|switch)/; 
    172172 
    173173# See "RT #43269 and .annotate 
    174174pir_error_output_like( <<'CODE', <<"OUTPUT", "setfile and setline" ); 
     
    183183/$nolineno/ 
    184184OUTPUT 
    185185 
    186 $nolineno = $ENV{TEST_PROG_ARGS} =~ /-f/ 
     186$nolineno = $ENV{TEST_PROG_ARGS} =~ /--runcore=(fast|cgoto|jit|switch)/ 
    187187    ? '\(\(unknown file\):-1\)' : '\(foo.p6:128\)'; 
    188188# See "RT #43269 and .annotate 
    189189pir_error_output_like( <<'CODE', <<"OUTPUT", "setfile and setline" ); 
  • t/op/bitwise.t

     
    509509    my @todo; 
    510510    @todo = ( todo => 'broken with JIT (RT #43245)' ) 
    511511        if ( defined $ENV{TEST_PROG_ARGS} and  
    512             $ENV{TEST_PROG_ARGS} =~ /-j/ ); 
     512            $ENV{TEST_PROG_ARGS} =~ /--runcore=jit/ ); 
    513513 
    514514    pir_output_is( <<'CODE', <<'OUT', "I-reg shl and PMC shl are consistent", @todo ); 
    515515## The PMC shl op will promote Integer to Bigint when needed.  We can't stuff a 
  • t/op/01-parse_ops.t

     
    7777    if $ENV{TEST_PROG_ARGS} =~ /--runcore=jit/; 
    7878 
    7979plan skip_all => 'IMCC cannot do parse-only with switched core' 
    80     if $ENV{TEST_PROG_ARGS} =~ /-S/; 
     80    if $ENV{TEST_PROG_ARGS} =~ /--runcore=switch/; 
    8181 
    8282plan tests => scalar keys %cmds; 
    8383