Ticket #1412: no_running_make_test.43474.diff
File no_running_make_test.43474.diff, 3.5 KB (added by jkeenan, 12 years ago) |
---|
-
docs/intro.pod
145 145 Substituting make for the name of the make program on your platform. The output 146 146 will look something like this: 147 147 148 C:\Perl\bin\perl.exe t\harness --gc-debug --running-make-test148 C:\Perl\bin\perl.exe t\harness --gc-debug 149 149 t\library\*.t t\op\*.t t\pmc\*.t t\run\*.t t\native_pbc\*.t 150 150 imcc\t\*\*.t t\dynpmc\*.t t\p6rules\*.t t\src\*.t t\perl\*.t 151 151 t\library\dumper...............ok -
lib/Parrot/Harness/Options.pm
28 28 my @argv = @_; 29 29 30 30 my %longopts; 31 $longopts{running_make_test} = grep { $_ eq '--running-make-test' } @argv;32 @argv = grep { $_ ne '--running-make-test' } @argv;33 34 31 $longopts{gc_debug} = grep { $_ eq '--gc-debug' } @argv; 35 32 @argv = grep { $_ ne '--gc-debug' } @argv; 36 33 … … 130 127 -r ... assemble to PBC run PBC 131 128 -O[012] ... optimize 132 129 -D[number] ... pass debug flags to parrot interpreter 133 --running-make-test134 130 --gc-debug 135 131 --core-tests 136 132 --runcore-tests -
t/pharness/03-handle_long_options.t
13 13 }; 14 14 plan( skip_all => 't/harness only runs once configuration has completed' ) 15 15 if $@; 16 plan( tests => 1 2);16 plan( tests => 11 ); 17 17 use Carp; 18 18 use Parrot::Harness::Options qw( handle_long_options ); 19 19 … … 22 22 @argv = qw( 23 23 -wv 24 24 -O2 25 --running-make-test26 25 --gc-debug 27 26 t/postconfigure/*.t 28 27 ); # */ 29 28 30 29 ($longopts, @argv) = handle_long_options(@argv); 31 ok($longopts->{running_make_test}, "Captured long option");32 30 ok($longopts->{gc_debug}, "Captured long option"); 33 31 %still_argv = map {$_, 1} @argv; 34 32 ok($still_argv{'-wv'}, "Combined short options still present in \@ARGV"); -
t/harness
31 31 local @ARGV = @ARGV; 32 32 (my $longopts, @ARGV) = handle_long_options(@ARGV); 33 33 34 $ENV{RUNNING_MAKE_TEST} = $longopts->{running_make_test};35 36 34 # Suck the short options into the TEST_PROG_ARGS 37 35 # environmental variable. 38 36 my %opts; … … 189 187 190 188 =over 4 191 189 192 =item C<--running-make-test>193 194 Some test scripts run more quickly when this is set.195 196 190 =item C<--gc-debug> 197 191 198 192 Invoke parrot with '--gc-debug'. -
config/gen/makefiles/root.in
1887 1887 # 1888 1888 ############################################################################### 1889 1889 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 1890 EXTRA_TEST_ARGS := --gc-debug 1893 1891 DISTRO_TEST_FILES := \ 1894 1892 t/distro/*.t 1895 1893 BENCHMARK_TEST_FILES := \