llvm.org GIT mirror llvm / 2785e77
[lit] Add --show-xfail flag to LIT. Summary: This patch add a --show-xfail flag. If this flag is specified then each xfail test will be printed to output. When it is not given xfail tests are ignored. Ignoring xfail tests is the current behavior. This flag is meant to mirror the --show-unsupported flag that was recently added. Reviewers: ddunbar, EricWF Reviewed By: EricWF Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D4750 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@214609 91177308-0d34-0410-b5e6-96231b3b80d8 Eric Fiselier 5 years ago
2 changed file(s) with 8 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
8686 .. option:: --show-unsupported
8787
8888 Show the names of unsupported tests.
89
90 .. option:: --show-xfail
91
92 Show the names of tests that were expected to fail.
8993
9094 .. _execution-options:
9195
4343
4444 shouldShow = test.result.code.isFailure or \
4545 (self.opts.show_unsupported and test.result.code.name == 'UNSUPPORTED') or \
46 (self.opts.show_xfail and test.result.code.name == 'XFAIL') or \
4647 (not self.opts.quiet and not self.opts.succinct)
4748 if not shouldShow:
4849 return
171172 action="store_false", default=True)
172173 group.add_option("", "--show-unsupported", dest="show_unsupported",
173174 help="Show unsupported tests",
175 action="store_true", default=False)
176 group.add_option("", "--show-xfail", dest="show_xfail",
177 help="Show tests that were expected to fail",
174178 action="store_true", default=False)
175179 parser.add_option_group(group)
176180