Debian Codegraph @

llvm/utils/lit/tests/filter-failed-rerun.py

raw
1 # Checks that --filter-failed won't re-run tests that have passed
2 # since the last time --filter-failed was run.
3
4 # RUN: rm -rf %t
5 # RUN: cp -r %{inputs}%{fs-sep}filter-failed %t
6 #
7 # RUN: not %{lit} %t | FileCheck %s --check-prefix=CHECK-FIRST
8 #
9 # RUN: cp %t%{fs-sep}pass.txt %t%{fs-sep}fail.txt
10 # RUN: not %{lit} %t | FileCheck %s --check-prefix=CHECK-SECOND
11 # RUN: not %{lit} --filter-failed %t | FileCheck %s --check-prefix=CHECK-THIRD
12
13 # CHECK-FIRST: FAIL: filter-failed :: fail.txt
14
15 # CHECK-SECOND: PASS: filter-failed :: fail.txt
16
17 # CHECK-THIRD: Testing: 2 of 5 tests
18 # CHECK-THIRD-NOT: filter-failed :: fail.txt