mirror of
git://git.sv.gnu.org/coreutils.git
synced 2026-04-21 03:12:48 +02:00
(test_vector): For each -N test, automatically
create a new test vector using --columns=N.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user