{ "name": "netperf", "version": "2.7.0", "summary": "netperf and netserver: network throughput and latency benchmark (TCP and UDP stream and request/response tests)", "category": "network", "license": "LicenseRef-netperf", "homepage": "https://github.com/HewlettPackard/netperf", "source": { "url": "https://github.com/HewlettPackard/netperf/archive/refs/tags/netperf-2.7.0.tar.gz", "sha256": "4569bafa4cca3d548eb96a486755af40bd9ceb6ab7c6abd81cc6aa4875007c4e" }, "watch": {"kind": "github-tag", "repo": "HewlettPackard/netperf", "tag_regex": "^netperf-([0-9]+(?:\\.[0-9]+)+)$"}, "deps": [], "env_packages": [], "static": true, "nss": true, "check": "bin/netperf -V | has 'Netperf version 2.7.0' && t=$(mktemp -d) && P=$(free_port) && { bin/netserver -D -4 -p \"$P\" > \"$t/netserver.log\" 2>&1 & s=$!; } && { wait_port \"$P\" && bin/netperf -4 -H 127.0.0.1 -p \"$P\" -l 1 -t TCP_STREAM > \"$t/stream\" && bin/netperf -4 -H 127.0.0.1 -p \"$P\" -l 1 -t TCP_RR > \"$t/rr\"; r=$?; kill \"$s\"; [ \"$r\" = 0 ]; } && has -E '^ *[0-9]+ +[0-9]+ +[0-9]+ +1\\.[0-9]+ +[0-9]+\\.[0-9]+ *$' \"$t/stream\" && has -E '^ *[0-9]+ +[0-9]+ +[0-9]+ +[0-9]+ +1\\.[0-9]+ +[0-9]+\\.[0-9]+ *$' \"$t/rr\" && tail -n 2 \"$t/stream\" \"$t/rr\"" }