[llvm] [llvm][lit] Add option to run only the failed tests (PR #158043)
Michael Buch via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 16 04:20:05 PDT 2025
================
@@ -0,0 +1,14 @@
+# Shows behaviour when a previously failed test was deleted
+# before running with --filter-failed.
+
+# RUN: not %{lit} %{inputs}/filter-failed-delete | FileCheck %s --check-prefix=CHECK-FIRST
+#
+# RUN: mv %{inputs}/filter-failed-delete/fail.txt %{inputs}/filter-failed-delete/fail.txt.bk
+# RUN: not %{lit} --filter-failed %{inputs}/filter-failed-delete > %s.rerun.log
+# RUN: mv %{inputs}/filter-failed-delete/fail.txt.bk %{inputs}/filter-failed-delete/fail.txt
----------------
Michael137 wrote:
Good point! In the latest commit i copy the inputs to `%t` and do all the manipulation there. That makes the tests much shorter and removes the need for three separate input directories. Is this what you meant? Not sure if the `rm -rf %t` is valid for read-only contexts though.
https://github.com/llvm/llvm-project/pull/158043
More information about the llvm-commits
mailing list