2026-09-06 20:46:08 -07:00
|
|
|
add_executable(stplugin_core_tests
|
|
|
|
|
test_core.cpp
|
|
|
|
|
)
|
|
|
|
|
target_link_libraries(stplugin_core_tests PRIVATE stplugin_core)
|
|
|
|
|
add_test(NAME stplugin_core_tests COMMAND stplugin_core_tests)
|
2026-09-06 21:22:14 -07:00
|
|
|
|
|
|
|
|
# Smoke test for the LiveKit SDK link: initialize()/shutdown() must succeed
|
|
|
|
|
# in-process. This is the cheapest possible proof that LiveKit::livekit is
|
|
|
|
|
# not just linked but loadable and callable (it dlopen-chains into
|
|
|
|
|
# liblivekit_ffi, which is where a broken RPATH would show up).
|
|
|
|
|
add_executable(stplugin_livekit_smoke
|
|
|
|
|
test_livekit_smoke.cpp
|
|
|
|
|
)
|
|
|
|
|
target_link_libraries(stplugin_livekit_smoke PRIVATE stplugin_core)
|
|
|
|
|
target_compile_definitions(stplugin_livekit_smoke PRIVATE
|
|
|
|
|
STPLUGIN_EXPECTED_LIVEKIT_VERSION="${LIVEKIT_SDK_VERSION_RESOLVED}"
|
|
|
|
|
)
|
|
|
|
|
add_test(NAME stplugin_livekit_smoke COMMAND stplugin_livekit_smoke)
|