You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mosquitto/test/lib/CMakeLists.txt

26 lines
644 B
CMake

add_subdirectory(c)
add_subdirectory(cpp)
file(GLOB PY_TEST_FILES [0-9][0-9]-*.py)
list(APPEND PY_TEST_FILES "${CMAKE_CURRENT_SOURCE_DIR}/msg_sequence_test.py")
set(EXCLUDE_LIST
03-publish-c2b-qos1-timeout
03-publish-c2b-qos2-timeout
)
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 lib-${PY_TEST_NAME}
COMMAND ${PY_TEST_FILE}
)
set_tests_properties(lib-${PY_TEST_NAME}
PROPERTIES
ENVIRONMENT "BUILD_ROOT=${CMAKE_BINARY_DIR}"
)
endforeach()