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 666 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
677 | 677 |
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', '--enable-slow-asserts', '--debug-code',
'--verify-heap'], | 687 'debug' : ['--nobreak-on-abort', '--nodead-code-elimination', |
688 'release' : ['--nobreak-on-abort']} | 688 '--enable-slow-asserts', '--debug-code', '--verify-heap'], |
| 689 'release' : ['--nobreak-on-abort', '--nodead-code-elimination']} |
689 TIMEOUT_SCALEFACTOR = { | 690 TIMEOUT_SCALEFACTOR = { |
690 'debug' : 4, | 691 'debug' : 4, |
691 'release' : 1 } | 692 'release' : 1 } |
692 | 693 |
693 | 694 |
694 class Context(object): | 695 class Context(object): |
695 | 696 |
696 def __init__(self, workspace, buildspace, verbose, vm, timeout, processor, sup
press_dialogs, store_unexpected_output): | 697 def __init__(self, workspace, buildspace, verbose, vm, timeout, processor, sup
press_dialogs, store_unexpected_output): |
697 self.workspace = workspace | 698 self.workspace = workspace |
698 self.buildspace = buildspace | 699 self.buildspace = buildspace |
(...skipping 847 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1546 for entry in timed_tests[:20]: | 1547 for entry in timed_tests[:20]: |
1547 t = FormatTime(entry.duration) | 1548 t = FormatTime(entry.duration) |
1548 sys.stderr.write("%4i (%s) %s\n" % (index, t, entry.GetLabel())) | 1549 sys.stderr.write("%4i (%s) %s\n" % (index, t, entry.GetLabel())) |
1549 index += 1 | 1550 index += 1 |
1550 | 1551 |
1551 return result | 1552 return result |
1552 | 1553 |
1553 | 1554 |
1554 if __name__ == '__main__': | 1555 if __name__ == '__main__': |
1555 sys.exit(Main()) | 1556 sys.exit(Main()) |
OLD | NEW |