• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1configure_lit_site_cfg(
2  ${CMAKE_CURRENT_SOURCE_DIR}/lit.site.cfg.in
3  ${CMAKE_CURRENT_BINARY_DIR}/lit.site.cfg
4  )
5configure_lit_site_cfg(
6  ${CMAKE_CURRENT_SOURCE_DIR}/Unit/lit.site.cfg.in
7  ${CMAKE_CURRENT_BINARY_DIR}/Unit/lit.site.cfg
8  )
9
10add_lit_testsuite(check-llvm "Running the LLVM regression tests"
11  ${CMAKE_CURRENT_BINARY_DIR}
12  PARAMS llvm_site_config=${CMAKE_CURRENT_BINARY_DIR}/lit.site.cfg
13         llvm_unit_site_config=${CMAKE_CURRENT_BINARY_DIR}/Unit/lit.site.cfg
14  DEPENDS UnitTests
15          BugpointPasses LLVMHello
16          llc lli llvm-ar llvm-as
17          llvm-diff
18          llvm-dis llvm-extract llvm-dwarfdump
19          llvm-link llvm-mc llvm-nm llvm-objdump llvm-readobj
20          macho-dump opt
21          profile_rt-shared
22          FileCheck count not
23          yaml2obj
24  )
25set_target_properties(check-llvm PROPERTIES FOLDER "Tests")
26
27# Setup a legacy alias for 'check-llvm'. This will likely change to be an
28# alias for 'check-all' at some point in the future.
29add_custom_target(check)
30add_dependencies(check check-llvm)
31set_target_properties(check PROPERTIES FOLDER "Tests")
32