OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # | 2 # |
3 # Copyright 2008 the V8 project authors. All rights reserved. | 3 # Copyright 2008 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 566 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
577 | 577 |
578 def __init__(self, name): | 578 def __init__(self, name): |
579 self.name = name | 579 self.name = name |
580 | 580 |
581 def GetName(self): | 581 def GetName(self): |
582 return self.name | 582 return self.name |
583 | 583 |
584 | 584 |
585 # Use this to run several variants of the tests, e.g.: | 585 # Use this to run several variants of the tests, e.g.: |
586 # VARIANT_FLAGS = [[], ['--always_compact', '--noflush_code']] | 586 # VARIANT_FLAGS = [[], ['--always_compact', '--noflush_code']] |
587 VARIANT_FLAGS = [[], | 587 VARIANT_FLAGS = [[], ['--stress-opt', '--always-opt'], ['--nocrankshaft']] |
588 ['--stress-opt', '--always-opt'], | |
589 ['--always-full-compiler']] | |
590 | 588 |
591 | 589 |
592 class TestRepository(TestSuite): | 590 class TestRepository(TestSuite): |
593 | 591 |
594 def __init__(self, path): | 592 def __init__(self, path): |
595 normalized_path = abspath(path) | 593 normalized_path = abspath(path) |
596 super(TestRepository, self).__init__(basename(normalized_path)) | 594 super(TestRepository, self).__init__(basename(normalized_path)) |
597 self.path = normalized_path | 595 self.path = normalized_path |
598 self.is_loaded = False | 596 self.is_loaded = False |
599 self.config = None | 597 self.config = None |
(...skipping 881 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1481 for entry in timed_tests[:20]: | 1479 for entry in timed_tests[:20]: |
1482 t = FormatTime(entry.duration) | 1480 t = FormatTime(entry.duration) |
1483 sys.stderr.write("%4i (%s) %s\n" % (index, t, entry.GetLabel())) | 1481 sys.stderr.write("%4i (%s) %s\n" % (index, t, entry.GetLabel())) |
1484 index += 1 | 1482 index += 1 |
1485 | 1483 |
1486 return result | 1484 return result |
1487 | 1485 |
1488 | 1486 |
1489 if __name__ == '__main__': | 1487 if __name__ == '__main__': |
1490 sys.exit(Main()) | 1488 sys.exit(Main()) |
OLD | NEW |