Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(406)

Side by Side Diff: tools/valgrind/chrome_tests.py

Issue 9316020: Disable unit_tests for memcheck/Mac by checking in chrome_tests.py (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix copyright Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | tools/valgrind/gtest_exclude/unit_tests.gtest_mac.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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())
OLDNEW
« no previous file with comments | « no previous file | tools/valgrind/gtest_exclude/unit_tests.gtest_mac.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698