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 579 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
590 # Use the v8 root as cwd as some test cases use "load" with relative paths. | 590 # Use the v8 root as cwd as some test cases use "load" with relative paths. |
591 os.chdir(BASE_DIR) | 591 os.chdir(BASE_DIR) |
592 | 592 |
593 parser = BuildOptions() | 593 parser = BuildOptions() |
594 (options, args) = parser.parse_args() | 594 (options, args) = parser.parse_args() |
595 if not ProcessOptions(options): | 595 if not ProcessOptions(options): |
596 parser.print_help() | 596 parser.print_help() |
597 return 1 | 597 return 1 |
598 SetupEnvironment(options) | 598 SetupEnvironment(options) |
599 | 599 |
| 600 if options.swarming: |
| 601 # Swarming doesn't print how isolated commands are called. Lets make this |
| 602 # less cryptic by printing it ourselves. |
| 603 print ' '.join(sys.argv) |
| 604 |
600 exit_code = 0 | 605 exit_code = 0 |
601 if not options.no_presubmit: | 606 if not options.no_presubmit: |
602 print ">>> running presubmit tests" | 607 print ">>> running presubmit tests" |
603 exit_code = subprocess.call( | 608 exit_code = subprocess.call( |
604 [sys.executable, join(BASE_DIR, "tools", "presubmit.py")]) | 609 [sys.executable, join(BASE_DIR, "tools", "presubmit.py")]) |
605 | 610 |
606 suite_paths = utils.GetSuitePaths(join(BASE_DIR, "test")) | 611 suite_paths = utils.GetSuitePaths(join(BASE_DIR, "test")) |
607 | 612 |
608 # Use default tests if no test configuration was provided at the cmd line. | 613 # Use default tests if no test configuration was provided at the cmd line. |
609 if len(args) == 0: | 614 if len(args) == 0: |
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
837 "--coverage-dir=%s" % options.sancov_dir]) | 842 "--coverage-dir=%s" % options.sancov_dir]) |
838 except: | 843 except: |
839 print >> sys.stderr, "Error: Merging sancov files failed." | 844 print >> sys.stderr, "Error: Merging sancov files failed." |
840 exit_code = 1 | 845 exit_code = 1 |
841 | 846 |
842 return exit_code | 847 return exit_code |
843 | 848 |
844 | 849 |
845 if __name__ == "__main__": | 850 if __name__ == "__main__": |
846 sys.exit(Main()) | 851 sys.exit(Main()) |
OLD | NEW |