[llvm] [llvm-lit][test] Precommit tests for lit's built-in cat command (PR #101530)

via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 2 14:38:29 PDT 2024


================
@@ -0,0 +1,27 @@
+## Test the cat command
+
+# RUN: not %{lit} -a -v %{inputs}/shtest-cat \
+# RUN: | FileCheck -match-full-lines %s
+#
+# END.
+
+# CHECK: FAIL: shtest-cat :: cat-e.txt ({{[^)]*}})
+# CHECK: cat -e {{.+}}/allchars | FileCheck {{.*}}
+# CHECK: # executed command: cat -e {{.*}}
+# CHECK: # | Unsupported: 'cat':  option -e not recognized
+# CHECK: # error: command failed with exit status: {{.*}}
+# CHECK: # executed command: FileCheck {{.*}}
+# CHECK: # error: command failed with exit status: {{.*}}
+
+# CHECK: PASS: shtest-cat :: cat-v.txt ({{[^)]*}})
+# CHECK: cat -v {{.+}}/allchars | FileCheck {{.*}}
+# CHECK: # executed command: cat -v {{.*}}
----------------
connieyzhu wrote:

done

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


More information about the llvm-commits mailing list