mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-26 23:45:44 +00:00
Fixed a typo and added some regression tests
This commit is contained in:
@@ -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.
|
||||
# #############################################################################
|
||||
|
Reference in New Issue
Block a user