mirror of
https://github.com/eclipse-mosquitto/mosquitto.git
synced 2026-05-21 12:24:29 +02:00
Use `ctest` or `make test` to run all tests. With this it's also possible to run tests on a Mac. Relative paths used in tests become absolute ones to make tests executable from any build folder. Also fixed race condition in test/broker/11-persistent-subscription-no-local.py Signed-off-by: Kai Buschulte <kai.buschulte@cedalo.com>
38 lines
861 B
CMake
38 lines
861 B
CMake
set(BINARIES
|
|
01-con-discon-success
|
|
01-will-set
|
|
01-unpwd-set
|
|
01-will-unpwd-set
|
|
01-no-clean-session
|
|
01-keepalive-pingreq
|
|
02-subscribe-qos0
|
|
02-subscribe-qos1
|
|
02-subscribe-qos2
|
|
02-unsubscribe
|
|
03-publish-qos0
|
|
03-publish-qos0-no-payload
|
|
03-publish-c2b-qos1-disconnect
|
|
03-publish-c2b-qos2
|
|
03-publish-c2b-qos2-disconnect
|
|
03-publish-b2c-qos1
|
|
03-publish-b2c-qos2
|
|
04-retain-qos0
|
|
08-ssl-connect-no-auth
|
|
08-ssl-connect-cert-auth
|
|
08-ssl-connect-cert-auth-enc
|
|
08-ssl-bad-cacert
|
|
08-ssl-fake-cacert
|
|
09-util-topic-tokenise
|
|
)
|
|
|
|
foreach(BINARY ${BINARIES})
|
|
set(TARGET "${BINARY}-cpp")
|
|
add_executable(${TARGET}
|
|
${BINARY}.cpp
|
|
)
|
|
set_property(TARGET ${TARGET}
|
|
PROPERTY SUFFIX .test
|
|
)
|
|
target_link_libraries(${TARGET} PRIVATE mosquittopp)
|
|
endforeach()
|