2012-06-28 14:36:24 +08:00
|
|
|
configure_lit_site_cfg(
|
2011-11-05 07:04:05 +08:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/lit.site.cfg.in
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/lit.site.cfg
|
2012-06-28 14:36:24 +08:00
|
|
|
)
|
|
|
|
configure_lit_site_cfg(
|
2011-11-05 07:04:05 +08:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/Unit/lit.site.cfg.in
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/Unit/lit.site.cfg
|
2012-06-28 14:36:24 +08:00
|
|
|
)
|
2009-09-22 15:38:44 +08:00
|
|
|
|
2012-06-30 18:14:14 +08:00
|
|
|
add_lit_testsuite(check-llvm "Running the LLVM regression tests"
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
|
|
|
PARAMS llvm_site_config=${CMAKE_CURRENT_BINARY_DIR}/lit.site.cfg
|
|
|
|
llvm_unit_site_config=${CMAKE_CURRENT_BINARY_DIR}/Unit/lit.site.cfg
|
2012-07-03 05:31:03 +08:00
|
|
|
DEPENDS UnitTests
|
|
|
|
BugpointPasses LLVMHello
|
2012-06-27 17:44:16 +08:00
|
|
|
llc lli llvm-ar llvm-as llvm-dis llvm-extract llvm-dwarfdump
|
|
|
|
llvm-link llvm-mc llvm-nm llvm-objdump llvm-readobj
|
|
|
|
macho-dump opt
|
|
|
|
FileCheck count not
|
|
|
|
)
|
2012-06-30 18:14:14 +08:00
|
|
|
set_target_properties(check-llvm PROPERTIES FOLDER "Tests")
|
2010-12-10 10:15:36 +08:00
|
|
|
|
2012-06-27 17:44:16 +08:00
|
|
|
# Setup a legacy alias for 'check-llvm'. This will likely change to be an
|
|
|
|
# alias for 'check-all' at some point in the future.
|
2012-07-03 05:45:22 +08:00
|
|
|
add_custom_target(check)
|
|
|
|
add_dependencies(check check-llvm)
|
2012-06-30 18:14:14 +08:00
|
|
|
set_target_properties(check PROPERTIES FOLDER "Tests")
|