Index: docs/CommandGuide/lit.rst =================================================================== --- docs/CommandGuide/lit.rst +++ docs/CommandGuide/lit.rst @@ -92,6 +92,10 @@ Show the names of tests that were expected to fail. +.. option:: --show-passing + +Show the names of the tests that passed. + .. _execution-options: EXECUTION OPTIONS Index: utils/lit/lit/main.py =================================================================== --- utils/lit/lit/main.py +++ utils/lit/lit/main.py @@ -175,6 +175,8 @@ group.add_option("", "--show-xfail", dest="show_xfail", help="Show tests that were expected to fail", action="store_true", default=False) + group.add_option("", "--show-passing", dest="show_passing", + action="store_true", default=False) parser.add_option_group(group) group = OptionGroup(parser, "Test Execution") @@ -387,13 +389,15 @@ hasFailures = True # Print each test in any of the failing groups. - for title,code in (('Unexpected Passing Tests', lit.Test.XPASS), + for title,code in (('Passing tests', lit.Test.PASS), + ('Unexpected Passing Tests', lit.Test.XPASS), ('Failing Tests', lit.Test.FAIL), ('Unresolved Tests', lit.Test.UNRESOLVED), ('Unsupported Tests', lit.Test.UNSUPPORTED), ('Expected Failing Tests', lit.Test.XFAIL)): if (lit.Test.XFAIL == code and not opts.show_xfail) or \ - (lit.Test.UNSUPPORTED == code and not opts.show_unsupported): + (lit.Test.UNSUPPORTED == code and not opts.show_unsupported) or \ + (lit.Test.PASS == code and not opts.show_passing): continue elts = byCode.get(code) if not elts: