mirror of
https://github.com/eclipse-mosquitto/mosquitto.git
synced 2026-05-21 12:16:07 +02:00
20 lines
465 B
CMake
20 lines
465 B
CMake
file(GLOB PY_TEST_FILES ctrl-*.py)
|
|
|
|
set(EXCLUDE_LIST
|
|
# none
|
|
)
|
|
|
|
foreach(PY_TEST_FILE ${PY_TEST_FILES})
|
|
get_filename_component(PY_TEST_NAME ${PY_TEST_FILE} NAME_WE)
|
|
if(${PY_TEST_NAME} IN_LIST EXCLUDE_LIST)
|
|
continue()
|
|
endif()
|
|
add_test(NAME apps-${PY_TEST_NAME}
|
|
COMMAND ${PY_TEST_FILE}
|
|
)
|
|
set_tests_properties(apps-${PY_TEST_NAME}
|
|
PROPERTIES
|
|
ENVIRONMENT "BUILD_ROOT=${CMAKE_BINARY_DIR}"
|
|
)
|
|
endforeach()
|