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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 return [] | 85 return [] |
86 result = [] | 86 result = [] |
87 for test_desc in output.stdout.strip().split(): | 87 for test_desc in output.stdout.strip().split(): |
88 raw_test, dependency = test_desc.split('<') | 88 raw_test, dependency = test_desc.split('<') |
89 relative_path = raw_test.split('/') | 89 relative_path = raw_test.split('/') |
90 full_path = current_path + relative_path | 90 full_path = current_path + relative_path |
91 if dependency != '': | 91 if dependency != '': |
92 dependency = relative_path[0] + '/' + dependency | 92 dependency = relative_path[0] + '/' + dependency |
93 if self.Contains(path, full_path): | 93 if self.Contains(path, full_path): |
94 result.append(CcTestCase(full_path, executable, mode, raw_test, dependen
cy, self.context)) | 94 result.append(CcTestCase(full_path, executable, mode, raw_test, dependen
cy, self.context)) |
| 95 result.sort() |
95 return result | 96 return result |
96 | 97 |
97 def GetTestStatus(self, sections, defs): | 98 def GetTestStatus(self, sections, defs): |
98 status_file = join(self.root, 'cctest.status') | 99 status_file = join(self.root, 'cctest.status') |
99 if exists(status_file): | 100 if exists(status_file): |
100 test.ReadConfigurationInto(status_file, sections, defs) | 101 test.ReadConfigurationInto(status_file, sections, defs) |
101 | 102 |
102 | 103 |
103 def GetConfiguration(context, root): | 104 def GetConfiguration(context, root): |
104 return CcTestConfiguration(context, root) | 105 return CcTestConfiguration(context, root) |
OLD | NEW |