| OLD | NEW |
| 1 # Copyright 2008 the V8 project authors. All rights reserved. | 1 # Copyright 2008 the V8 project authors. All rights reserved. |
| 2 # Redistribution and use in source and binary forms, with or without | 2 # Redistribution and use in source and binary forms, with or without |
| 3 # modification, are permitted provided that the following conditions are | 3 # modification, are permitted provided that the following conditions are |
| 4 # met: | 4 # met: |
| 5 # | 5 # |
| 6 # * Redistributions of source code must retain the above copyright | 6 # * Redistributions of source code must retain the above copyright |
| 7 # notice, this list of conditions and the following disclaimer. | 7 # notice, this list of conditions and the following disclaimer. |
| 8 # * Redistributions in binary form must reproduce the above | 8 # * Redistributions in binary form must reproduce the above |
| 9 # copyright notice, this list of conditions and the following | 9 # copyright notice, this list of conditions and the following |
| 10 # disclaimer in the documentation and/or other materials provided | 10 # disclaimer in the documentation and/or other materials provided |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 self.mode = mode | 42 self.mode = mode |
| 43 self.raw_name = raw_name | 43 self.raw_name = raw_name |
| 44 | 44 |
| 45 def GetLabel(self): | 45 def GetLabel(self): |
| 46 return "%s %s %s" % (self.mode, self.path[-2], self.path[-1]) | 46 return "%s %s %s" % (self.mode, self.path[-2], self.path[-1]) |
| 47 | 47 |
| 48 def GetName(self): | 48 def GetName(self): |
| 49 return self.path[-1] | 49 return self.path[-1] |
| 50 | 50 |
| 51 def GetCommand(self): | 51 def GetCommand(self): |
| 52 result = [ self.executable, self.raw_name ] | 52 serialization_file = join('obj', 'test', self.mode, 'serdes') |
| 53 serialization_option = '--testing_serialization_file=' + serialization_file |
| 54 result = [ self.executable, self.raw_name, serialization_option ] |
| 53 if self.mode == 'debug': | 55 if self.mode == 'debug': |
| 54 result += DEBUG_FLAGS | 56 result += DEBUG_FLAGS |
| 55 return result | 57 return result |
| 56 | 58 |
| 57 | 59 |
| 58 class CcTestConfiguration(test.TestConfiguration): | 60 class CcTestConfiguration(test.TestConfiguration): |
| 59 | 61 |
| 60 def __init__(self, context, root): | 62 def __init__(self, context, root): |
| 61 super(CcTestConfiguration, self).__init__(context, root) | 63 super(CcTestConfiguration, self).__init__(context, root) |
| 62 | 64 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 80 return result | 82 return result |
| 81 | 83 |
| 82 def GetTestStatus(self, sections, defs): | 84 def GetTestStatus(self, sections, defs): |
| 83 status_file = join(self.root, 'cctest.status') | 85 status_file = join(self.root, 'cctest.status') |
| 84 if exists(status_file): | 86 if exists(status_file): |
| 85 test.ReadConfigurationInto(status_file, sections, defs) | 87 test.ReadConfigurationInto(status_file, sections, defs) |
| 86 | 88 |
| 87 | 89 |
| 88 def GetConfiguration(context, root): | 90 def GetConfiguration(context, root): |
| 89 return CcTestConfiguration(context, root) | 91 return CcTestConfiguration(context, root) |
| OLD | NEW |