| 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 29 matching lines...) Expand all Loading... |
| 40 super(CcTestSuite, self).__init__(name, root) | 40 super(CcTestSuite, self).__init__(name, root) |
| 41 self.serdes_dir = os.path.normpath( | 41 self.serdes_dir = os.path.normpath( |
| 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, |
| 53 '--list', | 53 "--list", |
| 54 context.extra_flags]) | 54 context.extra_flags]) |
| 55 if output.exit_code != 0: | 55 if output.exit_code != 0: |
| 56 print output.stdout | 56 print output.stdout |
| 57 print output.stderr | 57 print output.stderr |
| 58 return [] | 58 return [] |
| 59 tests = [] | 59 tests = [] |
| 60 for test_desc in output.stdout.strip().split(): | 60 for test_desc in output.stdout.strip().split(): |
| 61 raw_test, dependency = test_desc.split('<') | 61 raw_test, dependency = test_desc.split('<') |
| 62 if dependency != '': | 62 if dependency != '': |
| 63 dependency = raw_test.split('/')[0] + '/' + dependency | 63 dependency = raw_test.split('/')[0] + '/' + dependency |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 return result | 171 return result |
| 172 | 172 |
| 173 def GetTestStatus(self, sections, defs): | 173 def GetTestStatus(self, sections, defs): |
| 174 status_file = join(self.root, 'cctest.status') | 174 status_file = join(self.root, 'cctest.status') |
| 175 if exists(status_file): | 175 if exists(status_file): |
| 176 test.ReadConfigurationInto(status_file, sections, defs) | 176 test.ReadConfigurationInto(status_file, sections, defs) |
| 177 | 177 |
| 178 | 178 |
| 179 def GetConfiguration(context, root): | 179 def GetConfiguration(context, root): |
| 180 return CcTestConfiguration(context, root) | 180 return CcTestConfiguration(context, root) |
| OLD | NEW |