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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 self.dependency = dependency | 44 self.dependency = dependency |
45 | 45 |
46 def GetLabel(self): | 46 def GetLabel(self): |
47 return "%s %s %s" % (self.mode, self.path[-2], self.path[-1]) | 47 return "%s %s %s" % (self.mode, self.path[-2], self.path[-1]) |
48 | 48 |
49 def GetName(self): | 49 def GetName(self): |
50 return self.path[-1] | 50 return self.path[-1] |
51 | 51 |
52 def BuildCommand(self, name): | 52 def BuildCommand(self, name): |
53 serialization_file = join('obj', 'test', self.mode, 'serdes') | 53 serialization_file = join('obj', 'test', self.mode, 'serdes') |
| 54 serialization_file += '_' + self.GetName() |
54 serialization_option = '--testing_serialization_file=' + serialization_file | 55 serialization_option = '--testing_serialization_file=' + serialization_file |
55 result = [ self.executable, name, serialization_option ] | 56 result = [ self.executable, name, serialization_option ] |
56 if self.mode == 'debug': | 57 if self.mode == 'debug': |
57 result += DEBUG_FLAGS | 58 result += DEBUG_FLAGS |
58 return result | 59 return result |
59 | 60 |
60 def GetCommand(self): | 61 def GetCommand(self): |
61 return self.BuildCommand(self.raw_name) | 62 return self.BuildCommand(self.raw_name) |
62 | 63 |
63 def Run(self): | 64 def Run(self): |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 return result | 99 return result |
99 | 100 |
100 def GetTestStatus(self, sections, defs): | 101 def GetTestStatus(self, sections, defs): |
101 status_file = join(self.root, 'cctest.status') | 102 status_file = join(self.root, 'cctest.status') |
102 if exists(status_file): | 103 if exists(status_file): |
103 test.ReadConfigurationInto(status_file, sections, defs) | 104 test.ReadConfigurationInto(status_file, sections, defs) |
104 | 105 |
105 | 106 |
106 def GetConfiguration(context, root): | 107 def GetConfiguration(context, root): |
107 return CcTestConfiguration(context, root) | 108 return CcTestConfiguration(context, root) |
OLD | NEW |