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 667 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
678 def GetTestStatus(self, context, sections, defs): | 678 def GetTestStatus(self, context, sections, defs): |
679 for test in self.tests: | 679 for test in self.tests: |
680 test.GetTestStatus(context, sections, defs) | 680 test.GetTestStatus(context, sections, defs) |
681 | 681 |
682 | 682 |
683 SUFFIX = { | 683 SUFFIX = { |
684 'debug' : '_g', | 684 'debug' : '_g', |
685 'release' : '' } | 685 'release' : '' } |
686 FLAGS = { | 686 FLAGS = { |
687 'debug' : ['--nobreak-on-abort', '--nodead-code-elimination', | 687 'debug' : ['--nobreak-on-abort', '--nodead-code-elimination', |
688 '--enable-slow-asserts', '--debug-code', '--verify-heap'], | 688 '--nofold-constants', '--enable-slow-asserts', |
689 'release' : ['--nobreak-on-abort', '--nodead-code-elimination']} | 689 '--debug-code', '--verify-heap'], |
| 690 'release' : ['--nobreak-on-abort', '--nodead-code-elimination', |
| 691 '--nofold-constants']} |
690 TIMEOUT_SCALEFACTOR = { | 692 TIMEOUT_SCALEFACTOR = { |
691 'debug' : 4, | 693 'debug' : 4, |
692 'release' : 1 } | 694 'release' : 1 } |
693 | 695 |
694 | 696 |
695 class Context(object): | 697 class Context(object): |
696 | 698 |
697 def __init__(self, workspace, buildspace, verbose, vm, timeout, processor, sup
press_dialogs, store_unexpected_output): | 699 def __init__(self, workspace, buildspace, verbose, vm, timeout, processor, sup
press_dialogs, store_unexpected_output): |
698 self.workspace = workspace | 700 self.workspace = workspace |
699 self.buildspace = buildspace | 701 self.buildspace = buildspace |
(...skipping 848 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1548 for entry in timed_tests[:20]: | 1550 for entry in timed_tests[:20]: |
1549 t = FormatTime(entry.duration) | 1551 t = FormatTime(entry.duration) |
1550 sys.stderr.write("%4i (%s) %s\n" % (index, t, entry.GetLabel())) | 1552 sys.stderr.write("%4i (%s) %s\n" % (index, t, entry.GetLabel())) |
1551 index += 1 | 1553 index += 1 |
1552 | 1554 |
1553 return result | 1555 return result |
1554 | 1556 |
1555 | 1557 |
1556 if __name__ == '__main__': | 1558 if __name__ == '__main__': |
1557 sys.exit(Main()) | 1559 sys.exit(Main()) |
OLD | NEW |