2012-06-28 08:36:24 +02:00
|
|
|
configure_lit_site_cfg(
|
2011-11-05 00:04:05 +01:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/lit.site.cfg.in
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/lit.site.cfg
|
2012-06-28 08:36:24 +02:00
|
|
|
)
|
|
|
|
configure_lit_site_cfg(
|
2011-11-05 00:04:05 +01:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/Unit/lit.site.cfg.in
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/Unit/lit.site.cfg
|
2012-06-28 08:36:24 +02:00
|
|
|
)
|
2009-09-22 09:38:44 +02:00
|
|
|
|
2012-06-30 12:14:14 +02: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-02 23:31:03 +02:00
|
|
|
DEPENDS UnitTests
|
|
|
|
BugpointPasses LLVMHello
|
2012-07-12 12:15:48 +02:00
|
|
|
llc lli llvm-ar llvm-as
|
|
|
|
llvm-diff
|
|
|
|
llvm-dis llvm-extract llvm-dwarfdump
|
2012-06-27 11:44:16 +02:00
|
|
|
llvm-link llvm-mc llvm-nm llvm-objdump llvm-readobj
|
|
|
|
macho-dump opt
|
2012-08-29 02:37:56 +02:00
|
|
|
profile_rt-shared
|
2012-06-27 11:44:16 +02:00
|
|
|
FileCheck count not
|
2012-08-03 02:45:32 +02:00
|
|
|
yaml2obj
|
2012-06-27 11:44:16 +02:00
|
|
|
)
|
2012-06-30 12:14:14 +02:00
|
|
|
set_target_properties(check-llvm PROPERTIES FOLDER "Tests")
|
2010-12-10 03:15:36 +01:00
|
|
|
|
2012-06-27 11:44:16 +02: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-02 23:45:22 +02:00
|
|
|
add_custom_target(check)
|
|
|
|
add_dependencies(check check-llvm)
|
2012-06-30 12:14:14 +02:00
|
|
|
set_target_properties(check PROPERTIES FOLDER "Tests")
|