@@ -121,6 +121,9 @@ ($$$$$$$$$$)
121
121
$output .= " -" ;
122
122
$output .= $output_suffix ;
123
123
}
124
+ if (our $opt_f ) {
125
+ substr ($options , 0, 0) = " $output "
126
+ }
124
127
$output .= " .out" ;
125
128
126
129
if ($output eq $input ) {
@@ -279,6 +282,7 @@ ($$$$)
279
282
testing of the same desc file with different commands or options,
280
283
as runs with different suffixes will operate independently and keep
281
284
independent logs.
285
+ -f forward the test name to CMD
282
286
283
287
test.pl expects a test.desc file in each subdirectory. The file test.desc
284
288
follows the format specified below. Any line starting with // will be ignored.
@@ -313,9 +317,9 @@ ($$$$)
313
317
use Getopt::Long qw( :config pass_through bundling) ;
314
318
$main::VERSION = 0.1;
315
319
$Getopt::Std::STANDARD_HELP_VERSION = 1;
316
- our ($opt_c , $opt_i , $opt_j , $opt_n , $opt_p , $opt_h , $opt_C , $opt_T , $opt_F , $opt_K , $opt_s , %defines , @include_tags , @exclude_tags ); # the variables for getopt
320
+ our ($opt_c , $opt_f , $ opt_i , $opt_j , $opt_n , $opt_p , $opt_h , $opt_C , $opt_T , $opt_F , $opt_K , $opt_s , %defines , @include_tags , @exclude_tags ); # the variables for getopt
317
321
GetOptions(" D=s" => \%defines , " X=s" => \@exclude_tags , " I=s" => \@include_tags );
318
- getopts(' c:i:j:nphCTFKs: ' ) or &main::HELP_MESSAGE(\*STDOUT , " " , $main::VERSION , " " );
322
+ getopts(' c:f: i:j:nphCTFKs' ) or &main::HELP_MESSAGE(\*STDOUT , " " , $main::VERSION , " " );
319
323
$opt_c or &main::HELP_MESSAGE(\*STDOUT , " " , $main::VERSION , " " );
320
324
$opt_j = $opt_j || $ENV {' TESTPL_JOBS' } || 0;
321
325
if ($opt_j && $opt_j != 1 && !$has_thread_pool ) {
0 commit comments