diff options
Diffstat (limited to 'runtimes')
-rw-r--r-- | runtimes/CMakeLists.txt | 27 | ||||
-rw-r--r-- | runtimes/Tests.cmake.in | 6 |
2 files changed, 6 insertions, 27 deletions
diff --git a/runtimes/CMakeLists.txt b/runtimes/CMakeLists.txt index aa3cef5..2246da7 100644 --- a/runtimes/CMakeLists.txt +++ b/runtimes/CMakeLists.txt @@ -176,6 +176,8 @@ if(LLVM_INCLUDE_TESTS) set(LIT_ARGS_DEFAULT "${LIT_ARGS_DEFAULT} --no-progress-bar") endif() set(LLVM_LIT_ARGS "${LIT_ARGS_DEFAULT}" CACHE STRING "Default options for lit") + + umbrella_lit_testsuite_begin(check-runtimes) endif() # llvm-libgcc incorporates both compiler-rt and libunwind as subprojects with very @@ -200,36 +202,13 @@ endif() foreach(entry ${runtimes}) get_filename_component(projName ${entry} NAME) - # Between each sub-project we want to cache and clear the LIT properties - set_property(GLOBAL PROPERTY LLVM_LIT_TESTSUITES) - set_property(GLOBAL PROPERTY LLVM_LIT_PARAMS) - set_property(GLOBAL PROPERTY LLVM_LIT_DEPENDS) - set_property(GLOBAL PROPERTY LLVM_LIT_EXTRA_ARGS) - add_subdirectory(${entry} ${projName}) - - get_property(LLVM_LIT_TESTSUITES GLOBAL PROPERTY LLVM_LIT_TESTSUITES) - get_property(LLVM_LIT_PARAMS GLOBAL PROPERTY LLVM_LIT_PARAMS) - get_property(LLVM_LIT_DEPENDS GLOBAL PROPERTY LLVM_LIT_DEPENDS) - get_property(LLVM_LIT_EXTRA_ARGS GLOBAL PROPERTY LLVM_LIT_EXTRA_ARGS) - - list(APPEND RUNTIMES_LIT_TESTSUITES ${LLVM_LIT_TESTSUITES}) - list(APPEND RUNTIMES_LIT_PARAMS ${LLVM_LIT_PARAMS}) - list(APPEND RUNTIMES_LIT_DEPENDS ${LLVM_LIT_DEPENDS}) - list(APPEND RUNTIMES_LIT_EXTRA_ARGS ${LLVM_LIT_EXTRA_ARGS}) endforeach() if(LLVM_INCLUDE_TESTS) # Add a global check rule now that all subdirectories have been traversed # and we know the total set of lit testsuites. - add_lit_target(check-runtimes - "Running all regression tests" - ${RUNTIMES_LIT_TESTSUITES} - PARAMS ${RUNTIMES_LIT_PARAMS} - DEPENDS ${RUNTIMES_LIT_DEPENDS} - ARGS ${RUNTIMES_LIT_EXTRA_ARGS} - ) - add_custom_target(runtimes-test-depends DEPENDS ${RUNTIMES_LIT_DEPENDS}) + umbrella_lit_testsuite_end(check-runtimes) if (NOT HAVE_LLVM_LIT) # If built by manually invoking cmake on this directory, we don't have diff --git a/runtimes/Tests.cmake.in b/runtimes/Tests.cmake.in index 7d76a17..8108349 100644 --- a/runtimes/Tests.cmake.in +++ b/runtimes/Tests.cmake.in @@ -1,3 +1,3 @@ -set(SUB_LIT_TESTSUITES @RUNTIMES_LIT_TESTSUITES@) -set(SUB_LIT_PARAMS @RUNTIMES_LIT_PARAMS@) -set(SUB_LIT_EXTRA_ARGS @RUNTIMES_LIT_EXTRA_ARGS@) +set(SUB_LIT_TESTSUITES @LLVM_RUNTIMES_LIT_TESTSUITES@) +set(SUB_LIT_PARAMS @LLVM_RUNTIMES_LIT_PARAMS@) +set(SUB_LIT_EXTRA_ARGS @LLVM_RUNTIMES_LIT_EXTRA_ARGS@) |