Fixed a typo and added some regression tests

This commit is contained in:
Brian Fraser
2012-11-01 17:04:00 -03:00
parent 7f557759a7
commit 78da81fea5
21 changed files with 37 additions and 20 deletions

View File

@@ -509,6 +509,23 @@ SKIP: {
);
}
# #############################################################################
# Check that the --v-c OPT validation works everywhere
# #############################################################################
for my $exec ( grep { slurp_file($_) =~ /package Pingback;/ }
grep { !/~/ }
glob("$trunk/bin/*")
)
{
my $output = `$exec --version-check ftp`;
like(
$output,
qr/\Q* --version-check invalid value ftp. Accepted values are https, http, auto and off/,
"Valid values for v-c are checked in $exec"
);
}
# #############################################################################
# Done.
# #############################################################################