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 os.path.join(root, "..", "..", "out", ".serdes")) | 42 os.path.join(root, "..", "..", "out", ".serdes")) |
43 if os.path.exists(self.serdes_dir): | 43 if os.path.exists(self.serdes_dir): |
44 shutil.rmtree(self.serdes_dir, True) | 44 shutil.rmtree(self.serdes_dir, True) |
45 os.makedirs(self.serdes_dir) | 45 os.makedirs(self.serdes_dir) |
46 | 46 |
47 def ListTests(self, context): | 47 def ListTests(self, context): |
48 shell = os.path.abspath(os.path.join(context.shell_dir, self.shell())) | 48 shell = os.path.abspath(os.path.join(context.shell_dir, self.shell())) |
49 if utils.IsWindows(): | 49 if utils.IsWindows(): |
50 shell += ".exe" | 50 shell += ".exe" |
51 output = commands.Execute(context.command_prefix + | 51 output = commands.Execute(context.command_prefix + |
52 [shell, | 52 [shell, "--list"] + |
53 "--list", | 53 context.extra_flags) |
54 context.extra_flags]) | |
55 if output.exit_code != 0: | 54 if output.exit_code != 0: |
56 print output.stdout | 55 print output.stdout |
57 print output.stderr | 56 print output.stderr |
58 return [] | 57 return [] |
59 tests = [] | 58 tests = [] |
60 for test_desc in output.stdout.strip().split(): | 59 for test_desc in output.stdout.strip().split(): |
61 raw_test, dependency = test_desc.split('<') | 60 raw_test, dependency = test_desc.split('<') |
62 if dependency != '': | 61 if dependency != '': |
63 dependency = raw_test.split('/')[0] + '/' + dependency | 62 dependency = raw_test.split('/')[0] + '/' + dependency |
64 else: | 63 else: |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 return result | 170 return result |
172 | 171 |
173 def GetTestStatus(self, sections, defs): | 172 def GetTestStatus(self, sections, defs): |
174 status_file = join(self.root, 'cctest.status') | 173 status_file = join(self.root, 'cctest.status') |
175 if exists(status_file): | 174 if exists(status_file): |
176 test.ReadConfigurationInto(status_file, sections, defs) | 175 test.ReadConfigurationInto(status_file, sections, defs) |
177 | 176 |
178 | 177 |
179 def GetConfiguration(context, root): | 178 def GetConfiguration(context, root): |
180 return CcTestConfiguration(context, root) | 179 return CcTestConfiguration(context, root) |
OLD | NEW |