[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
GitOrigin-RevId: 5e147d3058a0a01c19c83d322bef50bdaf8873ee
diff --git a/cmake/modules/LLVMLibCTestRules.cmake b/cmake/modules/LLVMLibCTestRules.cmake
index e16a811..ba06ccf 100644
--- a/cmake/modules/LLVMLibCTestRules.cmake
+++ b/cmake/modules/LLVMLibCTestRules.cmake
@@ -178,6 +178,11 @@
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/test/CMakeLists.txt b/test/CMakeLists.txt
index 969ee0d..3cf1f8d 100644
--- a/test/CMakeLists.txt
+++ b/test/CMakeLists.txt
@@ -9,6 +9,7 @@
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)