Commit 2a28a7f0 authored by Nirmoy Das's avatar Nirmoy Das

cmake: search for iperf3 if there is no iperf

Some destro just provide iperf3 like openSUSE Tumbleweed
Signed-off-by: default avatarNirmoy Das <ndas@suse.de>
parent 7cfb73b5
...@@ -11,7 +11,10 @@ if(NETPERF STREQUAL "NETPERF-NOTFOUND") ...@@ -11,7 +11,10 @@ if(NETPERF STREQUAL "NETPERF-NOTFOUND")
endif() endif()
find_program(IPERF iperf) find_program(IPERF iperf)
if(IPERF STREQUAL "IPERF-NOTFOUND") if(IPERF STREQUAL "IPERF-NOTFOUND")
message(WARNING "Recommended test program 'iperf' not found") find_program(IPERF3 iperf3)
if(IPERF3 STREQUAL "IPERF3-NOTFOUND")
message(WARNING "Recommended test program 'iperf' or 'iperf3' not found")
endif()
endif() endif()
add_test(NAME py_test_stat1_b WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} add_test(NAME py_test_stat1_b WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment