[libc-commits] [libc] [libc] Implement lit-based test execution for Libc (PR #178746)

Jeff Bailey via libc-commits libc-commits at lists.llvm.org
Thu Feb 12 09:50:26 PST 2026


================
@@ -0,0 +1,49 @@
+# -*- 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
+#
+# ===----------------------------------------------------------------------===##
+#
+# This is the lit configuration for LLVM libc tests.
+#
+# ===----------------------------------------------------------------------===##
+
+import os
+import site
+import sys
+
+import lit.formats
+import lit.util
+
+# 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 LibcTestFormat
+
+# Configuration file for the 'lit' test runner.
+
+# 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 = LibcTestFormat.LibcTest()
+
+# suffixes: Not used by LibcTest format, but kept for compatibility
----------------
kaladron wrote:

Sorry, this slipped through from a more drastic change I'd tried first.  Dropped

https://github.com/llvm/llvm-project/pull/178746


More information about the libc-commits mailing list