| OLD | NEW |
| 1 #!/usr/bin/python | |
| 2 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 5 | 4 |
| 6 # valgrind_test.py | |
| 7 | |
| 8 """Runs an exe through Valgrind and puts the intermediate files in a | 5 """Runs an exe through Valgrind and puts the intermediate files in a |
| 9 directory. | 6 directory. |
| 10 """ | 7 """ |
| 11 | 8 |
| 12 import datetime | 9 import datetime |
| 13 import glob | 10 import glob |
| 14 import logging | 11 import logging |
| 15 import optparse | 12 import optparse |
| 16 import os | 13 import os |
| 17 import re | 14 import re |
| (...skipping 1164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1182 return Asan() | 1179 return Asan() |
| 1183 try: | 1180 try: |
| 1184 platform_name = common.PlatformNames()[0] | 1181 platform_name = common.PlatformNames()[0] |
| 1185 except common.NotImplementedError: | 1182 except common.NotImplementedError: |
| 1186 platform_name = sys.platform + "(Unknown)" | 1183 platform_name = sys.platform + "(Unknown)" |
| 1187 raise RuntimeError, "Unknown tool (tool=%s, platform=%s)" % (tool_name, | 1184 raise RuntimeError, "Unknown tool (tool=%s, platform=%s)" % (tool_name, |
| 1188 platform_name) | 1185 platform_name) |
| 1189 | 1186 |
| 1190 def CreateTool(tool): | 1187 def CreateTool(tool): |
| 1191 return ToolFactory().Create(tool) | 1188 return ToolFactory().Create(tool) |
| 1192 | |
| 1193 if __name__ == '__main__': | |
| 1194 logging.error(sys.argv[0] + " can not be run from command line") | |
| 1195 sys.exit(1) | |
| OLD | NEW |