Add sanitized test run to CI.
Chaos Ci / test-and-benchmark (push) Successful in 3m26s

This commit is contained in:
hashlag
2026-07-06 03:25:30 +03:00
parent e0768cde3c
commit 0126196ea8
2 changed files with 17 additions and 2 deletions
+6
View File
@@ -32,12 +32,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)