)
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)
-add_custom_target(check_libc)
+add_custom_target(check-libc)
add_subdirectory(config)
add_subdirectory(src)
-add_subdirectory(linux)
+add_subdirectory(${LIBC_TARGET_OS})
-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})
-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
-add_custom_target(libc_errno_unittests)
-add_dependencies(check_libc libc_errno_unittests)
+add_libc_testsuite(libc_errno_unittests)
add_libc_unittest(
errno_test
-add_custom_target(libc_string_unittests)
-add_dependencies(check_libc libc_string_unittests)
+add_libc_testsuite(libc_string_unittests)
add_libc_unittest(
strcat_test
-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