From 5e147d3058a0a01c19c83d322bef50bdaf8873ee Mon Sep 17 00:00:00 2001 From: Siva Chandra Reddy Date: Mon, 21 Jun 2021 06:05:29 +0000 Subject: [PATCH] [libc] Add a new suite called "libc-long-running-tests". This suite is helpful is adding long running tests which take a long time to finish that they can be run on the public builders. They will probably be run on special builders in future. Reviewed By: lntue Differential Revision: https://reviews.llvm.org/D104816 --- libc/cmake/modules/LLVMLibCTestRules.cmake | 5 +++++ libc/test/CMakeLists.txt | 1 + 2 files changed, 6 insertions(+) diff --git a/libc/cmake/modules/LLVMLibCTestRules.cmake b/libc/cmake/modules/LLVMLibCTestRules.cmake index e16a81197a96..ba06ccfef536 100644 --- a/libc/cmake/modules/LLVMLibCTestRules.cmake +++ b/libc/cmake/modules/LLVMLibCTestRules.cmake @@ -178,6 +178,11 @@ function(add_libc_exhaustive_testsuite suite_name) add_dependencies(exhaustive-check-libc ${suite_name}) endfunction(add_libc_exhaustive_testsuite) +function(add_libc_long_running_testsuite suite_name) + add_custom_target(${suite_name}) + add_dependencies(libc-long-running-tests ${suite_name}) +endfunction(add_libc_long_running_testsuite) + # Rule to add a fuzzer test. # Usage # add_libc_fuzzer( diff --git a/libc/test/CMakeLists.txt b/libc/test/CMakeLists.txt index 969ee0d83600..3cf1f8d59d95 100644 --- a/libc/test/CMakeLists.txt +++ b/libc/test/CMakeLists.txt @@ -9,6 +9,7 @@ add_custom_target(check-llvmlibc) add_dependencies(check-libc check-llvmlibc) add_custom_target(exhaustive-check-libc) +add_custom_target(libc-long-running-tests) add_subdirectory(src) add_subdirectory(utils)