[libc-commits] [libc] 5e147d3 - [libc] Add a new suite called "libc-long-running-tests".

Siva Chandra Reddy via libc-commits libc-commits at lists.llvm.org
Fri Aug 20 22:01:50 PDT 2021


Author: Siva Chandra Reddy
Date: 2021-08-21T05:01:28Z
New Revision: 5e147d3058a0a01c19c83d322bef50bdaf8873ee

URL: https://github.com/llvm/llvm-project/commit/5e147d3058a0a01c19c83d322bef50bdaf8873ee
DIFF: https://github.com/llvm/llvm-project/commit/5e147d3058a0a01c19c83d322bef50bdaf8873ee.diff

LOG: [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

Added: 
    

Modified: 
    libc/cmake/modules/LLVMLibCTestRules.cmake
    libc/test/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/libc/cmake/modules/LLVMLibCTestRules.cmake b/libc/cmake/modules/LLVMLibCTestRules.cmake
index e16a81197a96a..ba06ccfef536a 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 969ee0d83600d..3cf1f8d59d953 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)


        


More information about the libc-commits mailing list