mirror of
https://github.com/coreutils/coreutils.git
synced 2024-12-30 12:17:43 +08:00
(test_vector): For each -N test, automatically
create a new test vector using --columns=N.
This commit is contained in:
parent
8a7b0f32d3
commit
08f451c3f4
@ -363,6 +363,10 @@ sub test_vector
|
||||
my $sep = ($flags ? ' ' : '');
|
||||
$flags = "$common_option_prefix$sep$flags";
|
||||
push (@new_tv, [$test_name, $flags, $in, $exp, $ret]);
|
||||
|
||||
(my $new_flags = $flags) =~ s/(^| )-(\d+)( |$)/$1--columns=$2$3/g;
|
||||
$new_flags ne $flags
|
||||
and push (@new_tv, ["$test_name.C", $new_flags, $in, $exp, $ret]);
|
||||
}
|
||||
|
||||
return @new_tv;
|
||||
|
Loading…
Reference in New Issue
Block a user