| 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 | 46 |
| 47 def GetName(self): | 47 def GetName(self): |
| 48 return self.path[-1] | 48 return self.path[-1] |
| 49 | 49 |
| 50 def BuildCommand(self, name): | 50 def BuildCommand(self, name): |
| 51 serialization_file = '' | 51 serialization_file = '' |
| 52 if exists(join(self.context.buildspace, 'obj', 'test', self.mode)): | 52 if exists(join(self.context.buildspace, 'obj', 'test', self.mode)): |
| 53 serialization_file = join('obj', 'test', self.mode, 'serdes') | 53 serialization_file = join('obj', 'test', self.mode, 'serdes') |
| 54 else: | 54 else: |
| 55 serialization_file = join('obj', 'serdes') | 55 serialization_file = join('obj', 'serdes') |
| 56 if not exists(join(self.context.buildspace, 'obj')): |
| 57 os.makedirs(join(self.context.buildspace, 'obj')) |
| 56 serialization_file += '_' + self.GetName() | 58 serialization_file += '_' + self.GetName() |
| 57 serialization_file = join(self.context.buildspace, serialization_file) | 59 serialization_file = join(self.context.buildspace, serialization_file) |
| 58 serialization_file += ''.join(self.variant_flags).replace('-', '_') | 60 serialization_file += ''.join(self.variant_flags).replace('-', '_') |
| 59 serialization_option = '--testing_serialization_file=' + serialization_file | 61 serialization_option = '--testing_serialization_file=' + serialization_file |
| 60 result = [ self.executable, name, serialization_option ] | 62 result = [ self.executable, name, serialization_option ] |
| 61 result += self.context.GetVmFlags(self, self.mode) | 63 result += self.context.GetVmFlags(self, self.mode) |
| 62 return result | 64 return result |
| 63 | 65 |
| 64 def GetCommand(self): | 66 def GetCommand(self): |
| 65 return self.BuildCommand(self.raw_name) | 67 return self.BuildCommand(self.raw_name) |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 return result | 111 return result |
| 110 | 112 |
| 111 def GetTestStatus(self, sections, defs): | 113 def GetTestStatus(self, sections, defs): |
| 112 status_file = join(self.root, 'cctest.status') | 114 status_file = join(self.root, 'cctest.status') |
| 113 if exists(status_file): | 115 if exists(status_file): |
| 114 test.ReadConfigurationInto(status_file, sections, defs) | 116 test.ReadConfigurationInto(status_file, sections, defs) |
| 115 | 117 |
| 116 | 118 |
| 117 def GetConfiguration(context, root): | 119 def GetConfiguration(context, root): |
| 118 return CcTestConfiguration(context, root) | 120 return CcTestConfiguration(context, root) |
| OLD | NEW |