Skip to content

Commit

Permalink
update testdata
Browse files Browse the repository at this point in the history
  • Loading branch information
shell-autonomic-sh committed Jul 2, 2019
1 parent 8b1ca96 commit fa9aa1c
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 3 deletions.
1 change: 1 addition & 0 deletions pingparser.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ def main(argv=sys.argv):
\t%h host name or IP address
\t%s packets sent
\t%r packets received
\t%d duplicates
\t%p packet_loss
\t%m minimum ping in milliseconds
\t%a average ping in milliseconds
Expand Down
6 changes: 6 additions & 0 deletions test/data/dup.testdata
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
172.17.100.10,61,61,167,0,143.743,167.150,197.045,22.298
PING 172.17.100.10 (172.17.100.10) 56(84) bytes of data.

--- 172.17.100.10 ping statistics ---
61 packets transmitted, 61 received, +167 duplicates, 0% packet loss, time 119997ms
rtt min/avg/max/mdev = 143.743/167.150/197.045/22.298 ms
2 changes: 1 addition & 1 deletion test/data/original.testdata
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
www.l.google.com,2,2,0,13.946,17.682,21.418,3.736
www.l.google.com,2,2,0,0,13.946,17.682,21.418,3.736
PING www.l.google.com (74.125.225.84) 56(84) bytes of data.
64 bytes from 74.125.225.84: icmp_req=1 ttl=55 time=13.9 ms
64 bytes from 74.125.225.84: icmp_req=2 ttl=55 time=21.4 ms
Expand Down
2 changes: 1 addition & 1 deletion test/data/yahoo.ping.testdata.debian
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
yahoo.com,1,1,0,0.557,0.557,0.557,0.000
yahoo.com,1,1,0,0,0.557,0.557,0.557,0.000
PING yahoo.com (98.138.253.109): 56 data bytes
64 bytes from 98.138.253.109: icmp_seq=0 ttl=37 time=0.557 ms
--- yahoo.com ping statistics ---
Expand Down
2 changes: 1 addition & 1 deletion test/data/yahoo.ping.testdata.osx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
yahoo.com,1,1,0.0,27.409,27.409,27.409,0.000
yahoo.com,1,1,0,0.0,27.409,27.409,27.409,0.000
PING yahoo.com (98.139.183.24): 56 data bytes
64 bytes from 98.139.183.24: icmp_seq=0 ttl=48 time=27.409 ms

Expand Down

0 comments on commit fa9aa1c

Please sign in to comment.