[llvm] [lit] Add readfile substitution (PR #158441)
James Henderson via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 15 03:11:19 PDT 2025
================
@@ -0,0 +1,17 @@
+## Tests the readfile substitution
+
+# RUN: not %{lit} -a -v %{inputs}/shtest-readfile | FileCheck -match-full-lines %s
+
+# CHECK: -- Testing: 3 tests{{.*}}
+
+# CHECK-LABEL: FAIL: shtest-readfile :: absolute-paths.txt ({{[^)]*}})
+# CHECK: echo hello
+# CHECK: # executed command: echo '%{readfile:{{.*}}}'
----------------
jh7370 wrote:
Could you use FileCheck's -D option or similar to allow you to more precisely match the file name mentioned here?
https://github.com/llvm/llvm-project/pull/158441
More information about the llvm-commits
mailing list