1 add_custom_target(check-libc)
2 add_custom_target(libc-unit-tests)
3 add_custom_target(libc-hermetic-tests)
4 add_dependencies(check-libc libc-unit-tests libc-hermetic-tests)
6 add_custom_target(exhaustive-check-libc)
7 add_custom_target(libc-long-running-tests)
9 add_subdirectory(UnitTest)
11 if(LIBC_TARGET_ARCHITECTURE_IS_GPU AND
12 (NOT TARGET libc.utils.gpu.loader OR NOT TARGET libc.startup.gpu.crt1))
13 message(WARNING "Cannot build libc GPU tests, missing loader implementation")
18 add_subdirectory(utils)
20 if(LLVM_LIBC_FULL_BUILD AND NOT LIBC_TARGET_OS_IS_BAREMETAL)
21 add_subdirectory(IntegrationTest)
24 if(NOT LLVM_LIBC_FULL_BUILD)
28 if(NOT ${LIBC_TARGET_OS} STREQUAL "linux" AND
29 NOT ${LIBC_TARGET_OS} STREQUAL "gpu")
30 # Integration tests are currently only available for linux and the GPU.
33 add_subdirectory(integration)