(test_vector): For each -N test, automatically

create a new test vector using --columns=N.
This commit is contained in:
Jim Meyering 2005-01-08 09:35:04 +00:00
parent 8a7b0f32d3
commit 08f451c3f4

View File

@ -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;