CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
77 lines
2.0 KiB
CMake
77 lines
2.0 KiB
CMake
add_custom_target(libc-unit-tests)
|
|
add_custom_target(libc-hermetic-tests)
|
|
|
|
add_custom_target(exhaustive-check-libc)
|
|
add_custom_target(libc-long-running-tests)
|
|
|
|
# Build-only targets for lit (don't run tests, just build executables)
|
|
add_custom_target(libc-unit-tests-build)
|
|
add_custom_target(libc-hermetic-tests-build)
|
|
add_custom_target(libc-integration-tests-build)
|
|
add_custom_target(libc_include_tests-build)
|
|
|
|
# Configure the site config file for lit
|
|
configure_lit_site_cfg(
|
|
${LIBC_SOURCE_DIR}/test/lit.site.cfg.py.in
|
|
${LIBC_BUILD_DIR}/test/lit.site.cfg.py
|
|
MAIN_CONFIG
|
|
${LIBC_SOURCE_DIR}/test/lit.cfg.py
|
|
PATHS
|
|
"LLVM_SOURCE_DIR"
|
|
"LLVM_BINARY_DIR"
|
|
"LLVM_TOOLS_DIR"
|
|
"LLVM_LIBS_DIR"
|
|
"LIBC_SOURCE_DIR"
|
|
"LIBC_BUILD_DIR"
|
|
"CMAKE_CROSSCOMPILING_EMULATOR"
|
|
)
|
|
|
|
add_custom_target(check-libc-build)
|
|
add_lit_testsuite(check-libc
|
|
"Running libc tests via lit"
|
|
${LIBC_BUILD_DIR}/test
|
|
)
|
|
add_dependencies(check-libc check-libc-build)
|
|
|
|
if (TARGET check-hdrgen)
|
|
add_dependencies(check-libc check-hdrgen)
|
|
endif()
|
|
|
|
if(LIBC_ENABLE_UNITTESTS AND NOT LIBC_TEST_HERMETIC_TEST_ONLY)
|
|
add_dependencies(check-libc-build libc-unit-tests-build)
|
|
endif()
|
|
if(LIBC_ENABLE_HERMETIC_TESTS AND NOT LIBC_TEST_UNIT_TEST_ONLY)
|
|
add_dependencies(check-libc-build libc-hermetic-tests-build)
|
|
endif()
|
|
|
|
add_subdirectory(UnitTest)
|
|
|
|
if(LIBC_TARGET_OS_IS_GPU)
|
|
if(NOT CMAKE_CROSSCOMPILING_EMULATOR)
|
|
message(WARNING "Cannot build libc GPU tests, set CMAKE_CROSSCOMPILING_EMULATOR.")
|
|
return()
|
|
elseif(LIBC_GPU_TESTS_DISABLED)
|
|
message(WARNING "Cannot build libc GPU tests, missing target architecture.")
|
|
return()
|
|
endif()
|
|
endif()
|
|
|
|
add_subdirectory(src)
|
|
add_subdirectory(utils)
|
|
add_subdirectory(shared)
|
|
|
|
if(NOT LLVM_LIBC_FULL_BUILD)
|
|
return()
|
|
endif()
|
|
|
|
add_subdirectory(include)
|
|
|
|
if(NOT ${LIBC_TARGET_OS} STREQUAL "linux" AND
|
|
NOT ${LIBC_TARGET_OS} STREQUAL "gpu")
|
|
# Integration tests are currently only available for linux and the GPU.
|
|
return()
|
|
endif()
|
|
|
|
add_subdirectory(IntegrationTest)
|
|
add_subdirectory(integration)
|