[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:54:41 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"))
----------------
kaladron wrote:
I renamed the directory to libctest. libcxx has theirs under libcxx/utils/libcxx/test so it seems like having this under utils is consistent. I'm not fussy and I'm still very new to lit, though. I'm happy to move this if that would be better! =)
https://github.com/llvm/llvm-project/pull/178746
More information about the libc-commits
mailing list