Stephen Hines | 2d1fdb2 | 2014-05-28 23:58:16 -0700 | [diff] [blame] | 1 | set(LSAN_LIT_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}) |
| 2 | |
| 3 | set(LSAN_LIT_TEST_MODE "Standalone") |
| 4 | configure_lit_site_cfg( |
| 5 | ${CMAKE_CURRENT_SOURCE_DIR}/lit.site.cfg.in |
| 6 | ${CMAKE_CURRENT_BINARY_DIR}/LsanConfig/lit.site.cfg) |
| 7 | |
| 8 | set(LSAN_LIT_TEST_MODE "AddressSanitizer") |
| 9 | configure_lit_site_cfg( |
| 10 | ${CMAKE_CURRENT_SOURCE_DIR}/lit.site.cfg.in |
| 11 | ${CMAKE_CURRENT_BINARY_DIR}/AsanConfig/lit.site.cfg) |
| 12 | |
Pirama Arumuga Nainar | 799172d | 2016-03-03 15:50:30 -0800 | [diff] [blame^] | 13 | set(LSAN_TEST_DEPS ${SANITIZER_COMMON_LIT_TEST_DEPS}) |
| 14 | if(NOT COMPILER_RT_STANDALONE_BUILD) |
| 15 | list(APPEND LSAN_TEST_DEPS lsan asan) |
Stephen Hines | 2d1fdb2 | 2014-05-28 23:58:16 -0700 | [diff] [blame] | 16 | endif() |
Pirama Arumuga Nainar | 799172d | 2016-03-03 15:50:30 -0800 | [diff] [blame^] | 17 | add_lit_testsuite(check-lsan "Running the LeakSanitizer tests" |
| 18 | ${CMAKE_CURRENT_BINARY_DIR}/LsanConfig |
| 19 | ${CMAKE_CURRENT_BINARY_DIR}/AsanConfig |
| 20 | DEPENDS ${LSAN_TEST_DEPS}) |
| 21 | set_target_properties(check-lsan PROPERTIES FOLDER "LSan tests") |