| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # | 2 # |
| 3 # Copyright 2012 the V8 project authors. All rights reserved. | 3 # Copyright 2012 the V8 project authors. All rights reserved. |
| 4 # Redistribution and use in source and binary forms, with or without | 4 # Redistribution and use in source and binary forms, with or without |
| 5 # modification, are permitted provided that the following conditions are | 5 # modification, are permitted provided that the following conditions are |
| 6 # met: | 6 # met: |
| 7 # | 7 # |
| 8 # * Redistributions of source code must retain the above copyright | 8 # * Redistributions of source code must retain the above copyright |
| 9 # notice, this list of conditions and the following disclaimer. | 9 # notice, this list of conditions and the following disclaimer. |
| 10 # * Redistributions in binary form must reproduce the above | 10 # * Redistributions in binary form must reproduce the above |
| (...skipping 580 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 591 for t in s.tests: | 591 for t in s.tests: |
| 592 t.id = test_id | 592 t.id = test_id |
| 593 test_id += 1 | 593 test_id += 1 |
| 594 | 594 |
| 595 if options.cat: | 595 if options.cat: |
| 596 return 0 # We're done here. | 596 return 0 # We're done here. |
| 597 | 597 |
| 598 if options.report: | 598 if options.report: |
| 599 verbose.PrintReport(all_tests) | 599 verbose.PrintReport(all_tests) |
| 600 | 600 |
| 601 if num_tests == 0: | |
| 602 print "No tests to run." | |
| 603 return 0 | |
| 604 | |
| 605 # Run the tests, either locally or distributed on the network. | 601 # Run the tests, either locally or distributed on the network. |
| 606 start_time = time.time() | 602 start_time = time.time() |
| 607 progress_indicator = progress.PROGRESS_INDICATORS[options.progress]() | 603 progress_indicator = progress.PROGRESS_INDICATORS[options.progress]() |
| 608 if options.junitout: | 604 if options.junitout: |
| 609 progress_indicator = progress.JUnitTestProgressIndicator( | 605 progress_indicator = progress.JUnitTestProgressIndicator( |
| 610 progress_indicator, options.junitout, options.junittestsuite) | 606 progress_indicator, options.junitout, options.junittestsuite) |
| 611 if options.json_test_results: | 607 if options.json_test_results: |
| 612 progress_indicator = progress.JsonTestProgressIndicator( | 608 progress_indicator = progress.JsonTestProgressIndicator( |
| 613 progress_indicator, options.json_test_results, arch, | 609 progress_indicator, options.json_test_results, arch, |
| 614 MODES[mode]["execution_mode"]) | 610 MODES[mode]["execution_mode"]) |
| (...skipping 26 matching lines...) Expand all Loading... |
| 641 exit_code = runner.Run(options.j) | 637 exit_code = runner.Run(options.j) |
| 642 overall_duration = time.time() - start_time | 638 overall_duration = time.time() - start_time |
| 643 | 639 |
| 644 if options.time: | 640 if options.time: |
| 645 verbose.PrintTestDurations(suites, overall_duration) | 641 verbose.PrintTestDurations(suites, overall_duration) |
| 646 return exit_code | 642 return exit_code |
| 647 | 643 |
| 648 | 644 |
| 649 if __name__ == "__main__": | 645 if __name__ == "__main__": |
| 650 sys.exit(Main()) | 646 sys.exit(Main()) |
| OLD | NEW |