2012-06-28 06:36:24 +00:00
|
|
|
configure_lit_site_cfg(
|
2011-11-04 23:04:05 +00:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/lit.site.cfg.in
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/lit.site.cfg
|
2012-06-28 06:36:24 +00:00
|
|
|
)
|
|
|
|
configure_lit_site_cfg(
|
2011-11-04 23:04:05 +00:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/Unit/lit.site.cfg.in
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/Unit/lit.site.cfg
|
2012-06-28 06:36:24 +00:00
|
|
|
)
|
2009-09-22 07:38:44 +00:00
|
|
|
|
2012-10-10 13:33:00 +00:00
|
|
|
# Don't include check-llvm into check-all without LLVM_BUILD_TOOLS.
|
|
|
|
if(NOT LLVM_BUILD_TOOLS)
|
|
|
|
set(EXCLUDE_FROM_ALL ON)
|
|
|
|
endif()
|
|
|
|
|
2012-11-21 20:38:26 +00:00
|
|
|
# Set the depends list as a variable so that it can grow conditionally.
|
2013-10-28 23:37:49 +00:00
|
|
|
# NOTE: Sync the substitutions in test/lit.cfg when adding to this list.
|
2013-07-08 08:44:30 +00:00
|
|
|
set(LLVM_TEST_DEPENDS
|
2013-12-03 23:22:25 +00:00
|
|
|
llvm-config
|
2013-07-08 08:44:30 +00:00
|
|
|
UnitTests
|
|
|
|
BugpointPasses
|
|
|
|
LLVMHello
|
2014-03-04 16:13:30 +00:00
|
|
|
bugpoint
|
2013-07-08 08:44:30 +00:00
|
|
|
llc
|
|
|
|
lli
|
2013-10-02 22:27:23 +00:00
|
|
|
lli-child-target
|
2013-07-08 08:44:30 +00:00
|
|
|
llvm-ar
|
|
|
|
llvm-as
|
|
|
|
llvm-bcanalyzer
|
2013-10-23 17:57:04 +00:00
|
|
|
llvm-c-test
|
2013-07-08 08:44:36 +00:00
|
|
|
llvm-cov
|
2013-07-08 08:44:30 +00:00
|
|
|
llvm-diff
|
|
|
|
llvm-dis
|
|
|
|
llvm-dwarfdump
|
2014-10-23 02:33:23 +00:00
|
|
|
llvm-extract
|
2012-11-01 02:13:50 +00:00
|
|
|
llvm-link
|
2013-10-02 22:27:23 +00:00
|
|
|
llvm-lto
|
2012-11-01 02:13:50 +00:00
|
|
|
llvm-mc
|
|
|
|
llvm-mcmarkup
|
|
|
|
llvm-nm
|
2014-05-19 23:22:58 +00:00
|
|
|
llvm-size
|
2012-11-01 02:13:50 +00:00
|
|
|
llvm-objdump
|
2014-02-17 23:22:49 +00:00
|
|
|
llvm-profdata
|
2012-11-01 02:13:50 +00:00
|
|
|
llvm-readobj
|
2013-01-25 23:24:07 +00:00
|
|
|
llvm-rtdyld
|
2013-03-13 09:35:18 +00:00
|
|
|
llvm-symbolizer
|
2014-01-18 19:01:08 +00:00
|
|
|
llvm-tblgen
|
2014-07-24 23:26:54 +00:00
|
|
|
llvm-vtabledump
|
2013-07-08 08:44:30 +00:00
|
|
|
macho-dump
|
|
|
|
opt
|
|
|
|
FileCheck
|
|
|
|
count
|
|
|
|
not
|
|
|
|
yaml2obj
|
|
|
|
obj2yaml
|
2014-07-30 17:11:27 +00:00
|
|
|
verify-uselistorder
|
2013-07-08 08:44:30 +00:00
|
|
|
)
|
2012-11-21 20:38:26 +00:00
|
|
|
|
|
|
|
# If Intel JIT events are supported, depend on a tool that tests the listener.
|
|
|
|
if( LLVM_USE_INTEL_JITEVENTS )
|
|
|
|
set(LLVM_TEST_DEPENDS ${LLVM_TEST_DEPENDS} llvm-jitlistener)
|
|
|
|
endif( LLVM_USE_INTEL_JITEVENTS )
|
|
|
|
|
2014-09-10 22:20:49 +00:00
|
|
|
if(TARGET LLVMgold)
|
|
|
|
set(LLVM_TEST_DEPENDS ${LLVM_TEST_DEPENDS} LLVMgold)
|
|
|
|
endif()
|
|
|
|
|
2014-10-23 19:51:40 +00:00
|
|
|
if(TARGET llvm-go)
|
|
|
|
set(LLVM_TEST_DEPENDS ${LLVM_TEST_DEPENDS} llvm-go)
|
|
|
|
endif()
|
|
|
|
|
2012-11-21 20:38:26 +00: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
|
|
|
|
DEPENDS ${LLVM_TEST_DEPENDS}
|
2012-06-27 09:44:16 +00:00
|
|
|
)
|
2012-06-30 10:14:14 +00:00
|
|
|
set_target_properties(check-llvm PROPERTIES FOLDER "Tests")
|
2010-12-10 02:15:36 +00:00
|
|
|
|
2012-06-27 09:44:16 +00: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 21:45:22 +00:00
|
|
|
add_custom_target(check)
|
|
|
|
add_dependencies(check check-llvm)
|
2012-06-30 10:14:14 +00:00
|
|
|
set_target_properties(check PROPERTIES FOLDER "Tests")
|