diff options
author | Andrew Kaylor <andrew.kaylor@intel.com> | 2012-11-21 20:38:26 +0000 |
---|---|---|
committer | Andrew Kaylor <andrew.kaylor@intel.com> | 2012-11-21 20:38:26 +0000 |
commit | 238f34a706a60bf9606d70122bac0f77265e3431 (patch) | |
tree | 45dc277c05eabb92433b19189e1614d79793bf86 /test/CMakeLists.txt | |
parent | d43e06de594e734513eb4e24193eb2dd5288c0c4 (diff) |
Adding tests for the Intel JIT event listener's MCJIT support.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@168459 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CMakeLists.txt')
-rw-r--r-- | test/CMakeLists.txt | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index e10a532341..e146ae1e65 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -12,11 +12,8 @@ if(NOT LLVM_BUILD_TOOLS) set(EXCLUDE_FROM_ALL ON) endif() -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 UnitTests +# Set the depends list as a variable so that it can grow conditionally. +set(LLVM_TEST_DEPENDS UnitTests BugpointPasses LLVMHello llc lli llvm-ar llvm-as llvm-bcanalyzer llvm-diff @@ -30,7 +27,18 @@ add_lit_testsuite(check-llvm "Running the LLVM regression tests" macho-dump opt profile_rt-shared FileCheck count not - yaml2obj + yaml2obj) + +# 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 ) + +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} ) set_target_properties(check-llvm PROPERTIES FOLDER "Tests") |