mirror of
https://github.com/intel/llvm.git
synced 2026-01-16 13:35:38 +08:00
[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
This commit is contained in:
@@ -371,3 +371,8 @@ function(add_libc_unittest target_name)
|
||||
)
|
||||
endif()
|
||||
endfunction(add_libc_unittest)
|
||||
|
||||
function(add_libc_testsuite suite_name)
|
||||
add_custom_target(${suite_name})
|
||||
add_dependencies(check-libc ${suite_name})
|
||||
endfunction(add_libc_testsuite)
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
add_custom_target(check_libc)
|
||||
add_custom_target(check-libc)
|
||||
|
||||
add_subdirectory(config)
|
||||
add_subdirectory(src)
|
||||
|
||||
@@ -1 +1 @@
|
||||
add_subdirectory(linux)
|
||||
add_subdirectory(${LIBC_TARGET_OS})
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
add_custom_target(libc_linux_tests)
|
||||
add_dependencies(check_libc libc_linux_tests)
|
||||
add_libc_testsuite(libc_linux_tests)
|
||||
|
||||
add_subdirectory(x86_64)
|
||||
add_subdirectory(${LIBC_TARGET_MACHINE})
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
add_custom_target(libc_linux_x86_64_tests)
|
||||
add_dependencies(libc_linux_tests libc_linux_x86_64_tests)
|
||||
|
||||
add_libc_unittest(
|
||||
libc_linux_x86_64_syscall_unittest
|
||||
SUITE libc_linux_x86_64_tests
|
||||
SUITE libc_linux_tests
|
||||
SRCS syscall_test.cpp
|
||||
DEPENDS
|
||||
syscall_impl_h
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user