PR14972: SROA vs. GVN exposed a really bad bug in SROA.
[oota-llvm.git] / test / CMakeLists.txt
1 configure_lit_site_cfg(
2   ${CMAKE_CURRENT_SOURCE_DIR}/lit.site.cfg.in
3   ${CMAKE_CURRENT_BINARY_DIR}/lit.site.cfg
4   )
5 configure_lit_site_cfg(
6   ${CMAKE_CURRENT_SOURCE_DIR}/Unit/lit.site.cfg.in
7   ${CMAKE_CURRENT_BINARY_DIR}/Unit/lit.site.cfg
8   )
9
10 # Don't include check-llvm into check-all without LLVM_BUILD_TOOLS.
11 if(NOT LLVM_BUILD_TOOLS)
12   set(EXCLUDE_FROM_ALL ON)
13 endif()
14
15 # Set the depends list as a variable so that it can grow conditionally.
16 set(LLVM_TEST_DEPENDS UnitTests
17           BugpointPasses LLVMHello
18           llc lli llvm-ar llvm-as
19           llvm-bcanalyzer llvm-diff
20           llvm-dis llvm-extract llvm-dwarfdump
21           llvm-link
22           llvm-mc
23           llvm-mcmarkup
24           llvm-nm
25           llvm-objdump
26           llvm-readobj
27           llvm-rtdyld
28           llvm-symbolizer
29           macho-dump opt
30           profile_rt-shared
31           FileCheck count not
32           yaml2obj)
33
34 # If Intel JIT events are supported, depend on a tool that tests the listener.
35 if( LLVM_USE_INTEL_JITEVENTS )
36   set(LLVM_TEST_DEPENDS ${LLVM_TEST_DEPENDS} llvm-jitlistener)
37 endif( LLVM_USE_INTEL_JITEVENTS )
38
39 add_lit_testsuite(check-llvm "Running the LLVM regression tests"
40   ${CMAKE_CURRENT_BINARY_DIR}
41   PARAMS llvm_site_config=${CMAKE_CURRENT_BINARY_DIR}/lit.site.cfg
42          llvm_unit_site_config=${CMAKE_CURRENT_BINARY_DIR}/Unit/lit.site.cfg
43   DEPENDS ${LLVM_TEST_DEPENDS}
44   )
45 set_target_properties(check-llvm PROPERTIES FOLDER "Tests")
46
47 # Setup a legacy alias for 'check-llvm'. This will likely change to be an
48 # alias for 'check-all' at some point in the future.
49 add_custom_target(check)
50 add_dependencies(check check-llvm)
51 set_target_properties(check PROPERTIES FOLDER "Tests")