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
48 lines
1.9 KiB
Plaintext
48 lines
1.9 KiB
Plaintext
@LIT_SITE_CFG_IN_HEADER@
|
|
|
|
import os
|
|
import site
|
|
|
|
# Configuration values from CMake
|
|
config.llvm_tools_dir = lit_config.substitute(path(r"@LLVM_TOOLS_DIR@"))
|
|
config.libc_src_root = path(r"@LIBC_SOURCE_DIR@")
|
|
config.libc_obj_root = path(r"@LIBC_BUILD_DIR@")
|
|
config.libc_test_cmd = "@LIBC_TEST_CMD@"
|
|
config.libc_crosscompiling_emulator = path(r"@CMAKE_CROSSCOMPILING_EMULATOR@")
|
|
|
|
# If no explicit test command is set, use the cross-compiling emulator.
|
|
if not config.libc_test_cmd and config.libc_crosscompiling_emulator:
|
|
config.libc_test_cmd = config.libc_crosscompiling_emulator
|
|
|
|
# Add libc's utils directory to the path so we can import the test format.
|
|
site.addsitedir(os.path.join(config.libc_src_root, "utils"))
|
|
import libctest
|
|
|
|
# name: The name of this test suite.
|
|
config.name = "libc"
|
|
|
|
# testFormat: Use libc's custom test format that discovers pre-built
|
|
# test executables (Libc*Tests) in the build directory.
|
|
config.test_format = libctest.LibcTest()
|
|
|
|
# excludes: A list of directories to exclude from the testsuite.
|
|
config.excludes = ["Inputs", "CMakeLists.txt", "README.txt", "LICENSE.txt"]
|
|
|
|
# test_source_root: The root path where tests are located.
|
|
# test_exec_root: The root path where test executables are built.
|
|
# Set both to the build directory so ExecutableTest finds executables correctly.
|
|
config.test_exec_root = os.path.join(config.libc_obj_root, "test")
|
|
config.test_source_root = config.test_exec_root
|
|
|
|
# Add tool directories to PATH (in case we add FileCheck tests later).
|
|
if hasattr(config, "llvm_tools_dir") and config.llvm_tools_dir:
|
|
config.environment["PATH"] = os.path.pathsep.join(
|
|
[config.llvm_tools_dir, config.environment.get("PATH", "")]
|
|
)
|
|
|
|
# Limit concurrent GPU tests to avoid overloading the GPU driver.
|
|
libc_gpu_test_jobs = "@LIBC_GPU_TEST_JOBS@"
|
|
if libc_gpu_test_jobs:
|
|
lit_config.parallelism_groups["libc-gpu"] = int(libc_gpu_test_jobs)
|
|
config.parallelism_group = "libc-gpu"
|