]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(test_vector): For each -N test, automatically
authorJim Meyering <jim@meyering.net>
Sat, 8 Jan 2005 09:35:04 +0000 (09:35 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 8 Jan 2005 09:35:04 +0000 (09:35 +0000)
create a new test vector using --columns=N.

tests/pr/Test.pm

index e60b0347f671a1d8892cf7a90c24e53323348315..8512bbf70bc02ba8ec2d27377bf30d7a697fe3b2 100644 (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;