]> git.gsnw.org Git - fping.git/commitdiff
add test for issue #56
authorDavid Schweikert <david@schweikert.ch>
Wed, 5 Mar 2014 08:59:34 +0000 (09:59 +0100)
committerDavid Schweikert <david@schweikert.ch>
Wed, 5 Mar 2014 08:59:34 +0000 (09:59 +0100)
ci/test-issue-56.pl [new file with mode: 0755]

diff --git a/ci/test-issue-56.pl b/ci/test-issue-56.pl
new file mode 100755 (executable)
index 0000000..3f75408
--- /dev/null
@@ -0,0 +1,10 @@
+#!/usr/bin/perl -w
+
+# regression testing for github issue #56
+
+use Test::Command tests => 3;
+
+my $cmd1 = Test::Command->new(cmd => "fping -t100 -p100 -c3 192.168.255.255");
+$cmd1->exit_is_num(1);
+$cmd1->stdout_is_eq("");
+$cmd1->stderr_is_eq("\n192.168.255.255 : xmt/rcv/%loss = 3/0/100%\n");