[llvm] r213227 - [lit] Add --show-unsupported flag to LIT
Eric Fiselier
eric at efcs.ca
Wed Jul 16 22:53:01 PDT 2014
Author: ericwf
Date: Thu Jul 17 00:53:00 2014
New Revision: 213227
URL: http://llvm.org/viewvc/llvm-project?rev=213227&view=rev
Log:
[lit] Add --show-unsupported flag to LIT
Modified:
llvm/trunk/utils/lit/TODO
llvm/trunk/utils/lit/lit/main.py
Modified: llvm/trunk/utils/lit/TODO
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/lit/TODO?rev=213227&r1=213226&r2=213227&view=diff
==============================================================================
--- llvm/trunk/utils/lit/TODO (original)
+++ llvm/trunk/utils/lit/TODO Thu Jul 17 00:53:00 2014
@@ -156,8 +156,6 @@ Miscellaneous
* Move temp directory name into local test config.
-* Add --show-unsupported, don't show by default?
-
* Support valgrind in all configs, and LLVM style valgrind.
* Support a timeout / ulimit.
Modified: llvm/trunk/utils/lit/lit/main.py
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/lit/lit/main.py?rev=213227&r1=213226&r2=213227&view=diff
==============================================================================
--- llvm/trunk/utils/lit/lit/main.py (original)
+++ llvm/trunk/utils/lit/lit/main.py Thu Jul 17 00:53:00 2014
@@ -42,8 +42,10 @@ class TestingProgressDisplay(object):
self.progressBar.update(float(self.completed)/self.numTests,
test.getFullName())
- if not test.result.code.isFailure and \
- (self.opts.quiet or self.opts.succinct):
+ shouldShow = test.result.code.isFailure or \
+ (self.opts.show_unsupported and test.result.code.name == 'UNSUPPORTED') or \
+ (not self.opts.quiet and not self.opts.succinct)
+ if not shouldShow:
return
if self.progressBar:
@@ -168,6 +170,9 @@ def main(builtinParameters = {}):
group.add_option("", "--no-progress-bar", dest="useProgressBar",
help="Do not use curses based progress bar",
action="store_false", default=True)
+ group.add_option("", "--show-unsupported", dest="show_unsupported",
+ help="Show unsupported tests",
+ action="store_true", default=False)
parser.add_option_group(group)
group = OptionGroup(parser, "Test Execution")
More information about the llvm-commits
mailing list