Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[lit] Add --show-xxx command line options
Provide `--show-xxx` flags for all non-failure result codes, just as we already do for `--show-xfail` and `--show-unsupported`. Reviewed By: jdenny Differential Revision: https://reviews.llvm.org/D82233
- Loading branch information
Julian Lettner
committed
Jul 9, 2020
1 parent
2308487
commit f06d242
Showing
8 changed files
with
48 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
RUN: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import lit.formats | ||
config.name = 'show-result-codes' | ||
config.suffixes = ['.txt'] | ||
config.test_format = lit.formats.ShTest() | ||
config.test_source_root = None | ||
config.test_exec_root = None |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
RUN: true |
2 changes: 2 additions & 0 deletions
2
llvm/utils/lit/tests/Inputs/show-result-codes/unsupported.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
REQUIRES: missing-feature | ||
RUN: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
XFAIL: * | ||
RUN: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Test the --show-<result-code> {pass,unsupported,xfail,...} options. | ||
# | ||
# RUN: not %{lit} %{inputs}/show-result-codes | FileCheck %s --check-prefix=NONE | ||
# RUN: not %{lit} %{inputs}/show-result-codes --show-unsupported | FileCheck %s --check-prefix=ONE | ||
# RUN: not %{lit} %{inputs}/show-result-codes --show-pass --show-xfail | FileCheck %s --check-prefix=MULTIPLE | ||
|
||
# Failing tests are always shown | ||
# NONE-NOT: Unsupported Tests (1) | ||
# NONE-NOT: Passed Tests (1) | ||
# NONE-NOT: Expectedly Failed Tests (1) | ||
# NONE: Failed Tests (1) | ||
|
||
# ONE: Unsupported Tests (1) | ||
# ONE-NOT: Passed Tests (1) | ||
# ONE-NOT: Expectedly Failed Tests (1) | ||
# ONE: Failed Tests (1) | ||
|
||
# MULTIPLE-NOT: Unsupported Tests (1) | ||
# MULTIPLE: Passed Tests (1) | ||
# MULTIPLE: Expectedly Failed Tests (1) | ||
# MULTIPLE: Failed Tests (1) |