diff options
author | Daniel Dunbar <daniel@zuster.org> | 2016-09-26 23:38:23 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2016-09-26 23:38:23 +0000 |
commit | 40b6500445099e2114f5f02300e425d18aa99ada (patch) | |
tree | 69315258912068d2690906ed8215c647ac15e7fa /llvm/utils/lit/tests | |
parent | a9f85d68ccabdcbb06c4f506c0fe6c992d45481f (diff) | |
download | bcm5719-llvm-40b6500445099e2114f5f02300e425d18aa99ada.tar.gz bcm5719-llvm-40b6500445099e2114f5f02300e425d18aa99ada.zip |
[lit] Add a --max-failures option.
- This is primarily useful as a "fail fast" mode for lit, where it will stop
running tests after the first failure.
- Patch by Max Moiseev.
llvm-svn: 282452
Diffstat (limited to 'llvm/utils/lit/tests')
-rw-r--r-- | llvm/utils/lit/tests/max-failures.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/llvm/utils/lit/tests/max-failures.py b/llvm/utils/lit/tests/max-failures.py new file mode 100644 index 00000000000..5cc258dd08a --- /dev/null +++ b/llvm/utils/lit/tests/max-failures.py @@ -0,0 +1,14 @@ +# Check the behavior of --max-failures option. +# +# RUN: not %{lit} -j 1 -v %{inputs}/shtest-shell > %t.out +# RUN: not %{lit} --max-failures=1 -j 1 -v %{inputs}/shtest-shell >> %t.out +# RUN: not %{lit} --max-failures=2 -j 1 -v %{inputs}/shtest-shell >> %t.out +# RUN: not %{lit} --max-failures=0 -j 1 -v %{inputs}/shtest-shell 2>> %t.out +# RUN: FileCheck < %t.out %s +# +# END. + +# CHECK: Failing Tests (3) +# CHECK: Failing Tests (1) +# CHECK: Failing Tests (2) +# CHECK: error: Setting --max-failures to 0 does not have any effect. |