summaryrefslogtreecommitdiffstats
path: root/libc/test/src
diff options
context:
space:
mode:
authorSiva Chandra Reddy <sivachandra@google.com>2020-01-07 11:09:40 -0800
committerSiva Chandra Reddy <sivachandra@google.com>2020-01-07 23:04:52 -0800
commit880734aebb396891d8e6596ae85d597ca43359b1 (patch)
treee73943473fa60e446e9713fa63aa888019de3ea9 /libc/test/src
parent44f78f368c2cafd9dfce5d65f5e2ebfcfb30105a (diff)
downloadbcm5719-llvm-880734aebb396891d8e6596ae85d597ca43359b1.tar.gz
bcm5719-llvm-880734aebb396891d8e6596ae85d597ca43359b1.zip
[libc] Add a convenience CMake rule to add testsuites.
Summary: This rule helps avoid repeated setting of check-libc's dependency on the various testsuites. Reviewers: abrachet Subscribers: mgorny, MaskRay, tschuett, libc-commits Tags: #libc-project Differential Revision: https://reviews.llvm.org/D72353
Diffstat (limited to 'libc/test/src')
-rw-r--r--libc/test/src/errno/CMakeLists.txt3
-rw-r--r--libc/test/src/string/CMakeLists.txt3
-rw-r--r--libc/test/src/sys/mman/CMakeLists.txt3
3 files changed, 3 insertions, 6 deletions
diff --git a/libc/test/src/errno/CMakeLists.txt b/libc/test/src/errno/CMakeLists.txt
index 6c21da5701b..1e361790e20 100644
--- a/libc/test/src/errno/CMakeLists.txt
+++ b/libc/test/src/errno/CMakeLists.txt
@@ -1,5 +1,4 @@
-add_custom_target(libc_errno_unittests)
-add_dependencies(check_libc libc_errno_unittests)
+add_libc_testsuite(libc_errno_unittests)
add_libc_unittest(
errno_test
diff --git a/libc/test/src/string/CMakeLists.txt b/libc/test/src/string/CMakeLists.txt
index bc5c088d169..152bcbbc2ae 100644
--- a/libc/test/src/string/CMakeLists.txt
+++ b/libc/test/src/string/CMakeLists.txt
@@ -1,5 +1,4 @@
-add_custom_target(libc_string_unittests)
-add_dependencies(check_libc libc_string_unittests)
+add_libc_testsuite(libc_string_unittests)
add_libc_unittest(
strcat_test
diff --git a/libc/test/src/sys/mman/CMakeLists.txt b/libc/test/src/sys/mman/CMakeLists.txt
index 3e153eb1134..b2f378387a6 100644
--- a/libc/test/src/sys/mman/CMakeLists.txt
+++ b/libc/test/src/sys/mman/CMakeLists.txt
@@ -1,5 +1,4 @@
-add_custom_target(libc_sys_mman_unittests)
-add_dependencies(check_libc libc_sys_mman_unittests)
+add_libc_testsuite(libc_sys_mman_unittests)
add_libc_unittest(
mmap_test
OpenPOWER on IntegriCloud