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.
20 lines
449 B
Perl
20 lines
449 B
Perl
#!/usr/bin/perl -w
|
|
|
|
use Test::Command tests => 6;
|
|
|
|
# fping
|
|
{
|
|
my $cmd = Test::Command->new(cmd => "fping nosuchname.example.com");
|
|
$cmd->exit_is_num(1);
|
|
$cmd->stdout_is_eq("");
|
|
$cmd->stderr_is_eq("nosuchname.example.com address not found\n");
|
|
}
|
|
|
|
# fping6
|
|
{
|
|
my $cmd = Test::Command->new(cmd => "fping6 nosuchname.example.com");
|
|
$cmd->exit_is_num(1);
|
|
$cmd->stdout_is_eq("");
|
|
$cmd->stderr_is_eq("nosuchname.example.com: Name or service not known\n");
|
|
}
|