# daemon unit + integration tests. Registered with ctest; run via `ctest --preset dev`.
# No external test framework — each file is a small self-checking binary (matches the
# lightweight style core/ uses, without depending on core's private test support).

add_executable(veloxd_ndjson_test ndjson_test.cpp)
target_link_libraries(veloxd_ndjson_test PRIVATE veloxd_rpc)
target_compile_options(veloxd_ndjson_test PRIVATE -Wall -Wextra -Wpedantic -Werror)
add_test(NAME veloxd.ndjson COMMAND veloxd_ndjson_test)

add_executable(veloxd_uds_roundtrip_test uds_roundtrip_test.cpp)
target_link_libraries(veloxd_uds_roundtrip_test PRIVATE veloxd_rpc)
target_compile_options(veloxd_uds_roundtrip_test PRIVATE -Wall -Wextra -Wpedantic -Werror)
add_test(NAME veloxd.uds_roundtrip COMMAND veloxd_uds_roundtrip_test)
set_tests_properties(veloxd.uds_roundtrip PROPERTIES TIMEOUT 30)

add_executable(veloxd_store_migrations_test store_migrations_test.cpp)
target_link_libraries(veloxd_store_migrations_test PRIVATE veloxd_store)
target_compile_options(veloxd_store_migrations_test PRIVATE -Wall -Wextra -Wpedantic -Werror)
add_test(NAME veloxd.store_migrations COMMAND veloxd_store_migrations_test)
