Ticket #1412: no_running_make_test.43474.diff

File no_running_make_test.43474.diff, 3.5 KB (added by jkeenan, 5 years ago)
  • docs/intro.pod

     
    145145Substituting make for the name of the make program on your platform. The output 
    146146will look something like this: 
    147147 
    148  C:\Perl\bin\perl.exe t\harness --gc-debug --running-make-test 
     148 C:\Perl\bin\perl.exe t\harness --gc-debug  
    149149   t\library\*.t  t\op\*.t  t\pmc\*.t  t\run\*.t  t\native_pbc\*.t 
    150150   imcc\t\*\*.t  t\dynpmc\*.t  t\p6rules\*.t t\src\*.t t\perl\*.t 
    151151 t\library\dumper...............ok 
  • lib/Parrot/Harness/Options.pm

     
    2828    my @argv = @_; 
    2929 
    3030    my %longopts; 
    31     $longopts{running_make_test} = grep { $_ eq '--running-make-test' } @argv; 
    32     @argv = grep { $_ ne '--running-make-test' } @argv; 
    33  
    3431    $longopts{gc_debug} = grep { $_ eq '--gc-debug' } @argv; 
    3532    @argv = grep { $_ ne '--gc-debug' } @argv; 
    3633 
     
    130127    -r         ... assemble to PBC run PBC 
    131128    -O[012]    ... optimize 
    132129    -D[number] ... pass debug flags to parrot interpreter 
    133     --running-make-test 
    134130    --gc-debug 
    135131    --core-tests 
    136132    --runcore-tests 
  • t/pharness/03-handle_long_options.t

     
    1313}; 
    1414plan( skip_all => 't/harness only runs once configuration has completed' ) 
    1515    if $@; 
    16 plan( tests => 12 ); 
     16plan( tests => 11 ); 
    1717use Carp; 
    1818use Parrot::Harness::Options qw( handle_long_options ); 
    1919 
     
    2222@argv = qw( 
    2323    -wv 
    2424    -O2 
    25     --running-make-test 
    2625    --gc-debug 
    2726    t/postconfigure/*.t 
    2827); # */ 
    2928 
    3029($longopts, @argv) = handle_long_options(@argv); 
    31 ok($longopts->{running_make_test}, "Captured long option"); 
    3230ok($longopts->{gc_debug}, "Captured long option"); 
    3331%still_argv = map {$_, 1} @argv; 
    3432ok($still_argv{'-wv'}, "Combined short options still present in \@ARGV"); 
  • t/harness

     
    3131local @ARGV = @ARGV; 
    3232(my $longopts, @ARGV) = handle_long_options(@ARGV); 
    3333 
    34 $ENV{RUNNING_MAKE_TEST} = $longopts->{running_make_test}; 
    35  
    3634# Suck the short options into the TEST_PROG_ARGS 
    3735# environmental variable. 
    3836my %opts; 
     
    189187 
    190188=over 4 
    191189 
    192 =item C<--running-make-test> 
    193  
    194 Some test scripts run more quickly when this is set. 
    195  
    196190=item C<--gc-debug> 
    197191 
    198192Invoke parrot with '--gc-debug'. 
  • config/gen/makefiles/root.in

     
    18871887# 
    18881888############################################################################### 
    18891889 
    1890 # The --running-make-test argument is currently used by long-running tests 
    1891 # to disable GC_DEBUG. 
    1892 EXTRA_TEST_ARGS := --gc-debug --running-make-test 
     1890EXTRA_TEST_ARGS := --gc-debug 
    18931891DISTRO_TEST_FILES := \ 
    18941892    t/distro/*.t 
    18951893BENCHMARK_TEST_FILES := \