Ticket #403: tests.patch
File tests.patch, 6.5 KB (added by rg, 13 years ago) |
---|
-
t/pmc/timer.t
153 153 ok 2 154 154 OUT 155 155 156 my @todo = $ENV{TEST_PROG_ARGS} =~ /- j/ ?156 my @todo = $ENV{TEST_PROG_ARGS} =~ /--runcore=jit/ ? 157 157 ( todo => 'RT #49718, add scheduler features to JIT' ) : (); 158 158 pasm_output_is( <<'CODE', <<'OUT', "Timer setup - initializer/start/repeat" , @todo ); 159 159 .include "timer.pasm" -
t/pmc/threads.t
733 733 my @todo; 734 734 735 735 if ( $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/; 739 739 } 740 740 pir_output_unlike( <<'CODE', qr/not/, "globals + constant table subs issue", @todo ); 741 741 .namespace [ 'Foo' ] -
t/pmc/nci.t
1372 1372 OUTPUT 1373 1373 1374 1374 # Tests with callback functions 1375 my @todo = $ENV{TEST_PROG_ARGS} =~ /- j/ ?1375 my @todo = $ENV{TEST_PROG_ARGS} =~ /--runcore=jit/ ? 1376 1376 ( todo => 'RT #49718, add scheduler tasks to JIT' ) : (); 1377 1377 1378 1378 pasm_output_is( <<'CODE', <<'OUTPUT', "nci_cb_C1 - PASM", @todo ); -
t/dynoplibs/myops.t
67 67 my @todo; 68 68 69 69 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/; 71 71 } 72 72 73 73 my $quine = <<'END_PASM'; … … 77 77 pasm_output_is( $quine, $quine, 'a short cheating quine', @todo ); 78 78 } 79 79 80 my @todo = $ENV{TEST_PROG_ARGS} =~ /- j/ ?80 my @todo = $ENV{TEST_PROG_ARGS} =~ /--runcore=jit/ ? 81 81 ( todo => 'RT #49718, add scheduler features to JIT' ) : (); 82 82 83 83 pir_output_is( << 'CODE', << 'OUTPUT', "one alarm", @todo ); … … 112 112 113 113 SKIP: { 114 114 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/; 116 116 117 my @todo = $ENV{TEST_PROG_ARGS} =~ /- j/ ?117 my @todo = $ENV{TEST_PROG_ARGS} =~ /--runcore=jit/ ? 118 118 ( todo => 'RT #49718, add scheduler features to JIT' ) : (); 119 119 120 120 pir_output_like( << 'CODE', << 'OUTPUT', "three alarm", @todo ); -
t/examples/japh.t
38 38 if ( $PConfig{intvalsize} == 8 ) { 39 39 $todo{2} = 'works only with 32-bit integer values'; 40 40 } 41 if ( defined( $ENV{TEST_PROG_ARGS}) && $ENV{TEST_PROG_ARGS} =~ /- j/ ) {42 $todo{4} = 'broken with -j';41 if ( defined( $ENV{TEST_PROG_ARGS}) && $ENV{TEST_PROG_ARGS} =~ /--runcore=jit/ ) { 42 $todo{4} = 'broken with JIT'; 43 43 } 44 44 45 45 # run all tests and tell about todoness -
t/op/trans.t
266 266 OUTPUT 267 267 268 268 my $runcore = $ENV{TEST_PROG_ARGS} || ''; 269 my @todo = ( $runcore =~ / j/ ? ( todo => 'broken under JIT TT #201' ) : () );269 my @todo = ( $runcore =~ /--runcore=jit/ ? ( todo => 'broken under JIT TT #201' ) : () ); 270 270 271 271 pasm_output_is( <<"CODE", <<OUTPUT, 'atan2', @todo ); 272 272 .include 'include/fp_equality.pasm' -
t/op/debuginfo.t
24 24 =cut 25 25 26 26 $ENV{TEST_PROG_ARGS} ||= ''; 27 my $nolineno = $ENV{TEST_PROG_ARGS} =~ /- f/27 my $nolineno = $ENV{TEST_PROG_ARGS} =~ /--runcore=(fast|cgoto)/ 28 28 ? "\\(unknown file\\)\n-1" : "debuginfo_\\d+\\.pasm\n\\d"; 29 29 30 30 SKIP: { 31 skip "disabled on fast-core",1 if $ENV{TEST_PROG_ARGS} =~ / [^-]?-[fg]/;31 skip "disabled on fast-core",1 if $ENV{TEST_PROG_ARGS} =~ /--runcore=(fast|cgoto)/; 32 32 33 33 pasm_output_like( <<'CODE', <<"OUTPUT", "getline, getfile" ); 34 34 .pcc_sub main: … … 164 164 called from Sub 'main' pc (\d+|-1) \(.*?:(\d+|-1)\)$/ 165 165 OUTPUT 166 166 167 $nolineno = $ENV{TEST_PROG_ARGS} =~ /- f/167 $nolineno = $ENV{TEST_PROG_ARGS} =~ /--runcore=fast/ 168 168 ? '\(\(unknown file\):-1\)' : '\(xyz.pir:126\)'; 169 169 170 170 SKIP: { 171 skip "disabled on this core",2 if $ENV{TEST_PROG_ARGS} =~ / [^-]?-[fgjS]/;171 skip "disabled on this core",2 if $ENV{TEST_PROG_ARGS} =~ /--runcore=(fast|cgoto|jit|switch)/; 172 172 173 173 # See "RT #43269 and .annotate 174 174 pir_error_output_like( <<'CODE', <<"OUTPUT", "setfile and setline" ); … … 183 183 /$nolineno/ 184 184 OUTPUT 185 185 186 $nolineno = $ENV{TEST_PROG_ARGS} =~ /- f/186 $nolineno = $ENV{TEST_PROG_ARGS} =~ /--runcore=(fast|cgoto|jit|switch)/ 187 187 ? '\(\(unknown file\):-1\)' : '\(foo.p6:128\)'; 188 188 # See "RT #43269 and .annotate 189 189 pir_error_output_like( <<'CODE', <<"OUTPUT", "setfile and setline" ); -
t/op/bitwise.t
509 509 my @todo; 510 510 @todo = ( todo => 'broken with JIT (RT #43245)' ) 511 511 if ( defined $ENV{TEST_PROG_ARGS} and 512 $ENV{TEST_PROG_ARGS} =~ /- j/ );512 $ENV{TEST_PROG_ARGS} =~ /--runcore=jit/ ); 513 513 514 514 pir_output_is( <<'CODE', <<'OUT', "I-reg shl and PMC shl are consistent", @todo ); 515 515 ## The PMC shl op will promote Integer to Bigint when needed. We can't stuff a -
t/op/01-parse_ops.t
77 77 if $ENV{TEST_PROG_ARGS} =~ /--runcore=jit/; 78 78 79 79 plan 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/; 81 81 82 82 plan tests => scalar keys %cmds; 83 83