Skip to content

Commit

Permalink
cmake: search for iperf3 if there is no iperf
Browse files Browse the repository at this point in the history
Some destro just provide iperf3 like openSUSE Tumbleweed

Signed-off-by: Nirmoy Das <[email protected]>
  • Loading branch information
Nirmoy Das committed Mar 15, 2018
1 parent 7cfb73b commit 2a28a7f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/python/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ if(NETPERF STREQUAL "NETPERF-NOTFOUND")
endif()
find_program(IPERF iperf)
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()

add_test(NAME py_test_stat1_b WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
Expand Down

0 comments on commit 2a28a7f

Please sign in to comment.