| 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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 | 96 |
| 97 def __init__(self, context, root): | 97 def __init__(self, context, root): |
| 98 super(MessageTestConfiguration, self).__init__(context, root) | 98 super(MessageTestConfiguration, self).__init__(context, root) |
| 99 | 99 |
| 100 def Ls(self, path): | 100 def Ls(self, path): |
| 101 if isdir(path): | 101 if isdir(path): |
| 102 return [f[:-3] for f in os.listdir(path) if f.endswith('.js')] | 102 return [f[:-3] for f in os.listdir(path) if f.endswith('.js')] |
| 103 else: | 103 else: |
| 104 return [] | 104 return [] |
| 105 | 105 |
| 106 def ListTests(self, current_path, path, mode): | 106 def ListTests(self, current_path, path, mode, variant_flags): |
| 107 mjsunit = [current_path + [t] for t in self.Ls(self.root)] | 107 mjsunit = [current_path + [t] for t in self.Ls(self.root)] |
| 108 regress = [current_path + ['regress', t] for t in self.Ls(join(self.root, 'r
egress'))] | 108 regress = [current_path + ['regress', t] for t in self.Ls(join(self.root, 'r
egress'))] |
| 109 bugs = [current_path + ['bugs', t] for t in self.Ls(join(self.root, 'bugs'))
] | 109 bugs = [current_path + ['bugs', t] for t in self.Ls(join(self.root, 'bugs'))
] |
| 110 mjsunit.sort() | 110 mjsunit.sort() |
| 111 regress.sort() | 111 regress.sort() |
| 112 bugs.sort() | 112 bugs.sort() |
| 113 all_tests = mjsunit + regress + bugs | 113 all_tests = mjsunit + regress + bugs |
| 114 result = [] | 114 result = [] |
| 115 for test in all_tests: | 115 for test in all_tests: |
| 116 if self.Contains(path, test): | 116 if self.Contains(path, test): |
| (...skipping 11 matching lines...) Expand all Loading... |
| 128 return ['sample', 'sample=shell'] | 128 return ['sample', 'sample=shell'] |
| 129 | 129 |
| 130 def GetTestStatus(self, sections, defs): | 130 def GetTestStatus(self, sections, defs): |
| 131 status_file = join(self.root, 'message.status') | 131 status_file = join(self.root, 'message.status') |
| 132 if exists(status_file): | 132 if exists(status_file): |
| 133 test.ReadConfigurationInto(status_file, sections, defs) | 133 test.ReadConfigurationInto(status_file, sections, defs) |
| 134 | 134 |
| 135 | 135 |
| 136 def GetConfiguration(context, root): | 136 def GetConfiguration(context, root): |
| 137 return MessageTestConfiguration(context, root) | 137 return MessageTestConfiguration(context, root) |
| OLD | NEW |