OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 | 5 |
6 ''' Runs various chrome tests through valgrind_test.py.''' | 6 ''' Runs various chrome tests through valgrind_test.py.''' |
7 | 7 |
8 import glob | 8 import glob |
9 import logging | 9 import logging |
10 import optparse | 10 import optparse |
11 import os | 11 import os |
12 import stat | 12 import stat |
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
274 def TestSql(self): | 274 def TestSql(self): |
275 return self.SimpleTest("chrome", "sql_unittests") | 275 return self.SimpleTest("chrome", "sql_unittests") |
276 | 276 |
277 def TestSync(self): | 277 def TestSync(self): |
278 return self.SimpleTest("chrome", "sync_unit_tests") | 278 return self.SimpleTest("chrome", "sync_unit_tests") |
279 | 279 |
280 def TestTestShell(self): | 280 def TestTestShell(self): |
281 return self.SimpleTest("webkit", "test_shell_tests") | 281 return self.SimpleTest("webkit", "test_shell_tests") |
282 | 282 |
283 def TestUnit(self): | 283 def TestUnit(self): |
| 284 # http://crbug.com/51716 |
| 285 # Disabling all unit tests |
| 286 # Problems reappeared after r119922 |
| 287 if common.IsMac() and (self._options.valgrind_tool == "memcheck"): |
| 288 logging.warning("unit_tests are disabled for memcheck on MacOS.") |
| 289 return 0; |
284 return self.SimpleTest("chrome", "unit_tests") | 290 return self.SimpleTest("chrome", "unit_tests") |
285 | 291 |
286 def TestUIUnit(self): | 292 def TestUIUnit(self): |
287 return self.SimpleTest("chrome", "ui_unittests") | 293 return self.SimpleTest("chrome", "ui_unittests") |
288 | 294 |
289 def TestViews(self): | 295 def TestViews(self): |
290 return self.SimpleTest("views", "views_unittests") | 296 return self.SimpleTest("views", "views_unittests") |
291 | 297 |
292 # Valgrind timeouts are in seconds. | 298 # Valgrind timeouts are in seconds. |
293 UI_VALGRIND_ARGS = ["--timeout=14400", "--trace_children", "--indirect"] | 299 UI_VALGRIND_ARGS = ["--timeout=14400", "--trace_children", "--indirect"] |
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
519 | 525 |
520 for t in options.test: | 526 for t in options.test: |
521 tests = ChromeTests(options, args, t) | 527 tests = ChromeTests(options, args, t) |
522 ret = tests.Run() | 528 ret = tests.Run() |
523 if ret: return ret | 529 if ret: return ret |
524 return 0 | 530 return 0 |
525 | 531 |
526 | 532 |
527 if __name__ == "__main__": | 533 if __name__ == "__main__": |
528 sys.exit(_main()) | 534 sys.exit(_main()) |
OLD | NEW |