aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJaime Marquínez Ferrándiz2014-03-09 12:09:08 +0100
committerMike McQuaid2014-03-09 15:18:55 +0000
commit61b0b1f3164d218a6560c7a3280ec0dfa2bad9d4 (patch)
tree30955bcbbff2d94223b95522b37b76b78e08416e /Library
parent6208674fb78150c70ffcb6b1d9de518e95d1d0f8 (diff)
downloadhomebrew-61b0b1f3164d218a6560c7a3280ec0dfa2bad9d4.tar.bz2
wireshark: Add a test
Closes #27353. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/wireshark.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/Library/Formula/wireshark.rb b/Library/Formula/wireshark.rb
index 30328287e..ac38e3358 100644
--- a/Library/Formula/wireshark.rb
+++ b/Library/Formula/wireshark.rb
@@ -99,6 +99,12 @@ class Wireshark < Formula
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3760
EOS
end
+
+ test do
+ system "#{bin}/randpkt", "-b", "100", "-c", "2", "capture.pcap"
+ output = `#{bin}/capinfos -Tmc capture.pcap`
+ assert_equal "File name,Number of packets\ncapture.pcap,2\n", output
+ end
end
__END__