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