Files
llvm-project/libc/utils/libctest/__init__.py
Jeff Bailey c776a52fa2 [libc] Implement lit-based test execution for Libc (#178746)
This provides optional lit-based test execution for the LLVM Libc tests,
alongside the existing CMake-based test execution.

Usage:
  ninja -C build check-libc-lit
  cd build && bin/llvm-lit libc/test/src/

Partially addresses
[#118694](https://github.com/llvm/llvm-project/issues/118694). A future
PR once this lands will flip the default (per suggestion in the RFC)
2026-02-13 18:39:54 +00:00

22 lines
784 B
Python

# ===----------------------------------------------------------------------===##
#
# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
#
# ===----------------------------------------------------------------------===##
"""
Lit test format for LLVM libc unit tests.
This format extends lit.formats.ExecutableTest to discover pre-built test
executables in the build directory. Test executables are expected to follow
the naming pattern used by add_libc_test():
libc.test.src.<category>.<test_name>.__unit__.__build__
libc.test.src.<category>.<test_name>.__hermetic__.__build__
"""
from .format import LibcTest
__all__ = ["LibcTest"]