You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
fping/ci/test-12-option-type.pl

11 lines
243 B
Perl

11 years ago
#!/usr/bin/perl -w
8 years ago
use Test::Command tests => 30;
11 years ago
8 years ago
for my $arg (qw(b B c C H O p Q r t)) {
11 years ago
my $cmd = Test::Command->new(cmd => "fping -$arg xxx");
$cmd->exit_is_num(1);
$cmd->stdout_is_eq("");
$cmd->stderr_like(qr{Usage:});
}