Add sanitized test run to CI.

This commit is contained in:
hashlag
2026-07-06 03:25:30 +03:00
parent ac8424b2b4
commit 8351bf2b74
2 changed files with 17 additions and 2 deletions
+6
View File
@@ -33,12 +33,18 @@ target_include_directories(ChaosTests PRIVATE
target_compile_options(ChaosTests PRIVATE -Wunused -Werror=unused)
option(CHAOS_COVERAGE "Enable coverage" OFF)
option(CHAOS_ASANUBSAN "Enable ASan and UBSan" OFF)
if(CHAOS_COVERAGE)
target_compile_options(ChaosTests PRIVATE --coverage)
target_link_options(ChaosTests PRIVATE --coverage)
endif()
if(CHAOS_ASANUBSAN)
target_compile_options(ChaosTests PRIVATE -fsanitize=address,undefined)
target_link_options(ChaosTests PRIVATE -fsanitize=address,undefined)
endif()
include(GoogleTest)
gtest_discover_tests(ChaosTests)