150
|
1 set(INTERCEPTION_TEST_DEPS ${SANITIZER_COMMON_LIT_TEST_DEPS})
|
|
2 set(INTERCEPTION_TESTSUITES)
|
|
3
|
|
4 # Unit tests. There are currently no unit tests capable to running on Apple or
|
|
5 # Android targets.
|
|
6 if(COMPILER_RT_INCLUDE_TESTS AND NOT ANDROID AND NOT APPLE)
|
|
7 configure_lit_site_cfg(
|
|
8 ${CMAKE_CURRENT_SOURCE_DIR}/Unit/lit.site.cfg.py.in
|
|
9 ${CMAKE_CURRENT_BINARY_DIR}/Unit/lit.site.cfg.py)
|
|
10 list(APPEND INTERCEPTION_TESTSUITES ${CMAKE_CURRENT_BINARY_DIR}/Unit)
|
|
11 list(APPEND INTERCEPTION_TEST_DEPS InterceptionUnitTests)
|
|
12 endif()
|
|
13
|
|
14 add_lit_testsuite(check-interception "Running the Interception tests"
|
|
15 ${INTERCEPTION_TESTSUITES}
|
|
16 DEPENDS ${INTERCEPTION_TEST_DEPS})
|
|
17 set_target_properties(check-interception PROPERTIES FOLDER "Compiler-RT Misc")
|