Commit bbc2b034 authored by Brenden Blanco's avatar Brenden Blanco

Add cmake checks for required test programs

Set as warning, since the build will still work fine and be able to
create a binary package.
Signed-off-by: default avatarBrenden Blanco <bblanco@plumgrid.com>
parent a753549f
# Copyright (c) PLUMgrid, Inc.
# Licensed under the Apache License, Version 2.0 (the "License")
find_program(ARPING arping)
if(ARPING STREQUAL "ARPING-NOTFOUND")
message(WARNING "Required test program 'arping' not found")
endif()
find_program(NETPERF netperf)
if(NETPERF STREQUAL "NETPERF-NOTFOUND")
message(WARNING "Required test program 'netperf' not found")
endif()
find_program(IPERF iperf)
if(IPERF STREQUAL "IPERF-NOTFOUND")
message(WARNING "Required test program 'iperf' not found")
endif()
add_test(NAME py_test_stat1_b WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
COMMAND ${TEST_WRAPPER} py_stat1_b namespace ${CMAKE_CURRENT_SOURCE_DIR}/test_stat1.py test_stat1.b proto.b)
add_test(NAME py_test_stat1_c 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