Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / compiler-rt / test / interception / CMakeLists.txt
blobb8e2faa59fad7c6d412d2911762993de64112882
1 set(INTERCEPTION_TEST_DEPS ${SANITIZER_COMMON_LIT_TEST_DEPS})
2 set(INTERCEPTION_TESTSUITES)
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()
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")