Test: Add mqttitem unit tests

This commit is contained in:
Carl Philipp Klemm 2026-04-17 18:32:41 +02:00
parent cb05c2237e
commit 869067c2f9
2 changed files with 309 additions and 1 deletions

View file

@ -12,10 +12,11 @@ add_executable(test_sensor unit/sensors/test_sensor.cpp)
add_executable(test_actor unit/actors/test_actor.cpp)
add_executable(test_itemstore unit/items/test_itemstore.cpp)
add_executable(test_itemloadersource unit/items/test_itemloadersource.cpp)
add_executable(test_mqttitem unit/items/test_mqttitem.cpp)
add_executable(test_tcp unit/service/test_tcp.cpp)
# Link all tests to static library
foreach(test test_item test_sensor test_actor test_itemstore test_itemloadersource test_tcp)
foreach(test test_item test_sensor test_actor test_itemstore test_itemloadersource test_mqttitem test_tcp)
target_link_libraries(${test}
smartvos_core
Qt6::Core
@ -41,4 +42,5 @@ add_test(NAME test_sensor COMMAND test_sensor)
add_test(NAME test_actor COMMAND test_actor)
add_test(NAME test_itemstore COMMAND test_itemstore)
add_test(NAME test_itemloadersource COMMAND test_itemloadersource)
add_test(NAME test_mqttitem COMMAND test_mqttitem)
add_test(NAME test_tcp COMMAND test_tcp)