[llvm] [llvm-lit] Add precommit test to verify current behavior of glob expansion in lit's internal shell (PR #106325)

via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 29 23:03:26 PDT 2024


================
@@ -0,0 +1,13 @@
+## Tests glob pattern handling in echo command.
+
+# RUN: not %{lit} -a -v %{inputs}/shtest-glob \ 
+# RUN: | FileCheck -dump-input=fail -match-full-lines %s
+#
+# END.
+
+# CHECK: UNRESOLVED: shtest-glob :: glob-echo.txt ({{[^)]*}})
+# CHECK: TypeError: string argument expected, got 'GlobItem'
+
+# CHECK: FAIL: shtest-glob :: glob-mkdir.txt ({{[^)]*}})
+# CHECK: # error: command failed with exit status: 1
----------------
Harini0924 wrote:

A patch to address that would be great, and I’m looking forward to seeing it once this commit lands. 

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


More information about the llvm-commits mailing list