]> git.gsnw.org Git - fping.git/commitdiff
add test for fping6 -R issue (#84)
authorDavid Schweikert <dws@open.ch>
Wed, 14 Oct 2015 18:22:33 +0000 (11:22 -0700)
committerDavid Schweikert <dws@open.ch>
Wed, 14 Oct 2015 18:22:33 +0000 (11:22 -0700)
ci/test-09-option-r-t.pl

index e34478638abda2866ac6decafe9765b0621fcbc4..6d4b1ddcfab5346955a677ec104823830be6781d 100755 (executable)
@@ -10,10 +10,20 @@ use Test::Command tests => 15;
 #  -T n       ignored (for compatibility with fping 2.4)
 
 # fping -R
-my $cmd1 = Test::Command->new(cmd => "fping -q -R -c3 -p100 127.0.0.1");
-$cmd1->exit_is_num(0);
-$cmd1->stdout_is_eq("");
-$cmd1->stderr_like(qr{127\.0\.0\.1 : xmt/rcv/%loss = 3/3/0%.*});
+{
+my $cmd = Test::Command->new(cmd => "fping -q -R -c3 -p100 127.0.0.1");
+$cmd->exit_is_num(0);
+$cmd->stdout_is_eq("");
+$cmd->stderr_like(qr{127\.0\.0\.1 : xmt/rcv/%loss = 3/3/0%.*});
+}
+
+# fping6 -R
+{
+my $cmd = Test::Command->new(cmd => "fping6 -q -R -c3 -p100 ::1");
+$cmd->exit_is_num(0);
+$cmd->stdout_is_eq("");
+$cmd->stderr_like(qr{::1 : xmt/rcv/%loss = 3/3/0%.*});
+}
 
 # fping -r tested in test-4-options-a-b.pl