iperf3: update test (#15422)

Ported from the iperf formula.
This commit is contained in:
Zhiming Wang 2017-07-08 14:52:23 -04:00 committed by ilovezfs
parent 2d1914e78e
commit dd381bca46

View file

@ -30,6 +30,13 @@ class Iperf3 < Formula
end
test do
system bin/"iperf3", "--version"
begin
server = IO.popen("#{bin}/iperf3 --server")
sleep 1
assert_match "Bitrate", pipe_output("#{bin}/iperf3 --client 127.0.0.1 --time 1")
ensure
Process.kill("SIGINT", server.pid)
Process.wait(server.pid)
end
end
end