#!/usr/bin/perl -w
-use Test::Command tests => 29;
+use Test::Command tests => 32;
use Test::More;
use Time::HiRes qw(gettimeofday tv_interval);
$cmd->stderr_is_eq("fping: can't specify both -4 and -6\n");
}
+# fping -6 -4
+{
+my $cmd = Test::Command->new(cmd => "fping -6 -4 127.0.0.1");
+$cmd->exit_is_num(1);
+$cmd->stdout_is_eq("");
+$cmd->stderr_is_eq("fping: can't specify both -4 and -6\n");
+}
+
# fping -4
{
my $cmd = Test::Command->new(cmd => "fping -4 127.0.0.1");
$cmd->stderr_is_eq("");
}
+# fping -m -A
+{
+my $cmd = Test::Command->new(cmd => "fping -4 -A -m www.github.com");
+$cmd->exit_is_num(0);
+$cmd->stdout_like(qr{\d+\.\d+\.\d+\.\d+\n is alive\n\d+\.\d+\.\d+\.\d+ is alive\n});
+$cmd->stderr_is_eq("");
+}
+
# fping -n
{
my $cmd = Test::Command->new(cmd => "fping -n 8.8.8.8");