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

This commit is contained in:
hashlag committed 2026-07-06 03:25:30 +03:00
1 parent e0768cde3c
commit 0126196ea8
2 files changed
+17 -2

No files matched your search

+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)