2026-06-13 17:17:57 -04:00
|
|
|
add_library(spinscale_test_support STATIC
|
|
|
|
|
support/threadHarness.cpp
|
2026-06-13 18:47:44 -04:00
|
|
|
support/probeComponentThread.cpp
|
2026-06-13 17:17:57 -04:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
target_include_directories(spinscale_test_support PUBLIC
|
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}
|
2026-06-13 18:47:44 -04:00
|
|
|
${CMAKE_SOURCE_DIR}/tests/fixtures
|
2026-06-13 16:17:40 -04:00
|
|
|
)
|
|
|
|
|
|
2026-06-13 17:17:57 -04:00
|
|
|
target_link_libraries(spinscale_test_support PUBLIC
|
2026-06-13 16:17:40 -04:00
|
|
|
spinscale
|
2026-06-13 17:17:57 -04:00
|
|
|
gtest
|
2026-06-13 16:17:40 -04:00
|
|
|
)
|
|
|
|
|
|
2026-06-13 17:17:57 -04:00
|
|
|
function(add_spinscale_gtest target)
|
|
|
|
|
add_executable(${target} ${ARGN})
|
|
|
|
|
target_link_libraries(${target} PRIVATE
|
|
|
|
|
spinscale_test_support
|
|
|
|
|
gtest_main
|
|
|
|
|
)
|
|
|
|
|
add_dependencies(${target} gtest_main)
|
|
|
|
|
add_test(NAME ${target} COMMAND ${target})
|
|
|
|
|
endfunction()
|
|
|
|
|
|
|
|
|
|
add_spinscale_gtest(spinscale_env_kv_store_tests
|
|
|
|
|
env_kv_store_test.cpp
|
|
|
|
|
)
|
2026-06-13 16:17:40 -04:00
|
|
|
|
2026-06-13 17:17:57 -04:00
|
|
|
add_spinscale_gtest(qutex_tests
|
2026-06-13 16:17:40 -04:00
|
|
|
cps/qutex_tests.cpp
|
|
|
|
|
)
|
|
|
|
|
|
2026-06-13 17:17:57 -04:00
|
|
|
add_spinscale_gtest(nonViralTaskNursery_tests
|
|
|
|
|
co/nonViralTaskNursery_tests.cpp
|
2026-06-13 16:17:40 -04:00
|
|
|
)
|
|
|
|
|
|
2026-06-13 17:17:57 -04:00
|
|
|
add_spinscale_gtest(co_viral_non_posting_tests
|
|
|
|
|
co/viral_non_posting_tests.cpp
|
|
|
|
|
)
|
2026-06-13 16:17:40 -04:00
|
|
|
|
2026-06-13 17:17:57 -04:00
|
|
|
add_spinscale_gtest(co_posting_cross_thread_tests
|
|
|
|
|
co/posting_cross_thread_tests.cpp
|
2026-06-13 16:17:40 -04:00
|
|
|
)
|
|
|
|
|
|
2026-06-13 17:17:57 -04:00
|
|
|
add_spinscale_gtest(co_group_edge_tests
|
|
|
|
|
co/group_edge_tests.cpp
|
2026-06-13 16:17:40 -04:00
|
|
|
)
|
|
|
|
|
|
2026-06-13 17:17:57 -04:00
|
|
|
add_spinscale_gtest(co_group_timer_tests
|
|
|
|
|
co/group_timer_tests.cpp
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
add_spinscale_gtest(co_component_continuation_tests
|
|
|
|
|
co/component_continuation_tests.cpp
|
|
|
|
|
)
|