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

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

Issue 664803003: Update from chromium a8e7c94b1b79a0948d05a1fcfff53391d22ce37a (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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
« no previous file with comments | « tools/android/heap_profiler/heap_profiler_unittest.cc ('k') | url/url_canon_icu.h » ('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) 2012 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 multiprocessing 10 import multiprocessing
(...skipping 457 matching lines...) Expand 10 before | Expand all | Expand 10 after
468 468
469 def TestUnit(self): 469 def TestUnit(self):
470 # http://crbug.com/51716 470 # http://crbug.com/51716
471 # Disabling all unit tests 471 # Disabling all unit tests
472 # Problems reappeared after r119922 472 # Problems reappeared after r119922
473 if common.IsMac() and (self._options.valgrind_tool == "memcheck"): 473 if common.IsMac() and (self._options.valgrind_tool == "memcheck"):
474 logging.warning("unit_tests are disabled for memcheck on MacOS.") 474 logging.warning("unit_tests are disabled for memcheck on MacOS.")
475 return 0; 475 return 0;
476 return self.SimpleTest("chrome", "unit_tests") 476 return self.SimpleTest("chrome", "unit_tests")
477 477
478 def TestUIBaseUnit(self):
479 return self.SimpleTest("chrome", "ui_base_unittests")
480
478 def TestUIUnit(self): 481 def TestUIUnit(self):
479 return self.SimpleTest("chrome", "ui_unittests") 482 return self.SimpleTest("chrome", "ui_unittests")
480 483
481 def TestURL(self): 484 def TestURL(self):
482 return self.SimpleTest("chrome", "url_unittests") 485 return self.SimpleTest("chrome", "url_unittests")
483 486
484 def TestViews(self): 487 def TestViews(self):
485 return self.SimpleTest("views", "views_unittests") 488 return self.SimpleTest("views", "views_unittests")
486 489
487 490
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
716 "libphonenumber_unittests": TestPhoneNumber, 719 "libphonenumber_unittests": TestPhoneNumber,
717 "ppapi": TestPPAPI, "ppapi_unittests": TestPPAPI, 720 "ppapi": TestPPAPI, "ppapi_unittests": TestPPAPI,
718 "printing": TestPrinting, "printing_unittests": TestPrinting, 721 "printing": TestPrinting, "printing_unittests": TestPrinting,
719 "remoting": TestRemoting, "remoting_unittests": TestRemoting, 722 "remoting": TestRemoting, "remoting_unittests": TestRemoting,
720 "safe_browsing": TestSafeBrowsing, "safe_browsing_tests": TestSafeBrowsing, 723 "safe_browsing": TestSafeBrowsing, "safe_browsing_tests": TestSafeBrowsing,
721 "sandbox": TestLinuxSandbox, "sandbox_linux_unittests": TestLinuxSandbox, 724 "sandbox": TestLinuxSandbox, "sandbox_linux_unittests": TestLinuxSandbox,
722 "sql": TestSql, "sql_unittests": TestSql, 725 "sql": TestSql, "sql_unittests": TestSql,
723 "sync": TestSync, "sync_unit_tests": TestSync, 726 "sync": TestSync, "sync_unit_tests": TestSync,
724 "sync_integration_tests": TestSyncIntegration, 727 "sync_integration_tests": TestSyncIntegration,
725 "sync_integration": TestSyncIntegration, 728 "sync_integration": TestSyncIntegration,
729 "ui_base_unit": TestUIBaseUnit, "ui_base_unittests": TestUIBaseUnit,
726 "ui_unit": TestUIUnit, "ui_unittests": TestUIUnit, 730 "ui_unit": TestUIUnit, "ui_unittests": TestUIUnit,
727 "unit": TestUnit, "unit_tests": TestUnit, 731 "unit": TestUnit, "unit_tests": TestUnit,
728 "url": TestURL, "url_unittests": TestURL, 732 "url": TestURL, "url_unittests": TestURL,
729 "views": TestViews, "views_unittests": TestViews, 733 "views": TestViews, "views_unittests": TestViews,
730 "webkit": TestLayout, 734 "webkit": TestLayout,
731 } 735 }
732 736
733 737
734 def _main(): 738 def _main():
735 parser = optparse.OptionParser("usage: %prog -b <dir> -t <test> " 739 parser = optparse.OptionParser("usage: %prog -b <dir> -t <test> "
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
798 802
799 for t in options.test: 803 for t in options.test:
800 tests = ChromeTests(options, args, t) 804 tests = ChromeTests(options, args, t)
801 ret = tests.Run() 805 ret = tests.Run()
802 if ret: return ret 806 if ret: return ret
803 return 0 807 return 0
804 808
805 809
806 if __name__ == "__main__": 810 if __name__ == "__main__":
807 sys.exit(_main()) 811 sys.exit(_main())
OLDNEW
« no previous file with comments | « tools/android/heap_profiler/heap_profiler_unittest.cc ('k') | url/url_canon_icu.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698