[llvm] [llvm][lit] Add option to run only the failed tests (PR #158043)
Michael Buch via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 18 23:57:28 PDT 2025
================
@@ -0,0 +1,14 @@
+# Shows behaviour when a previously failed test was deleted
+# before running with --filter-failed.
+
+# RUN: rm -rf %t
+# RUN: cp -r %{inputs}/filter-failed %t
+#
+# RUN: not %{lit} %t | FileCheck %s --check-prefix=CHECK-FIRST
+#
+# RUN: rm %t/fail.txt
+# RUN: not %{lit} --filter-failed %t | FileCheck %s --check-prefix=CHECK-RERUN
+
+# CHECK-FIRST: FAIL: filter-failed :: fail.txt
+
+# CHECK-RERUN-NOT: filter-failed :: fail.txt
----------------
Michael137 wrote:
Heh this is fun. Just found out `CHECK` directives like `CHECK-RERUN` get interpreted by `lit` as a `RUN` directive (though `CHECK-RERUN-NOT` doesn't). I'll change the `RERUN` occurrences to a different name to avoid running into potential `lit` pitfalls.
https://github.com/llvm/llvm-project/pull/158043
More information about the llvm-commits
mailing list