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

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

Issue 6688007: Normalize the top-level ui/ module. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: chmod gfx_unittests Created 9 years, 9 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
OLDNEW
1 #!/usr/bin/python 1 #!/usr/bin/python
2 2
3 # Copyright (c) 2009 The Chromium Authors. All rights reserved. 3 # Copyright (c) 2009 The Chromium Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 6
7 ''' Runs various chrome tests through heapcheck_test.py. 7 ''' Runs various chrome tests through heapcheck_test.py.
8 8
9 Most of this code is copied from ../valgrind/chrome_tests.py. 9 Most of this code is copied from ../valgrind/chrome_tests.py.
10 TODO(glider): put common functions to a standalone module. 10 TODO(glider): put common functions to a standalone module.
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 "media": self.TestMedia, "media_unittests": self.TestMedia, 89 "media": self.TestMedia, "media_unittests": self.TestMedia,
90 "net": self.TestNet, "net_unittests": self.TestNet, 90 "net": self.TestNet, "net_unittests": self.TestNet,
91 "printing": self.TestPrinting, "printing_unittests": self.TestPrinting, 91 "printing": self.TestPrinting, "printing_unittests": self.TestPrinting,
92 "remoting": self.TestRemoting, "remoting_unittests": self.TestRemoting, 92 "remoting": self.TestRemoting, "remoting_unittests": self.TestRemoting,
93 "startup": self.TestStartup, "startup_tests": self.TestStartup, 93 "startup": self.TestStartup, "startup_tests": self.TestStartup,
94 "sync": self.TestSync, "sync_unit_tests": self.TestSync, 94 "sync": self.TestSync, "sync_unit_tests": self.TestSync,
95 "test_shell": self.TestTestShell, "test_shell_tests": self.TestTestShell, 95 "test_shell": self.TestTestShell, "test_shell_tests": self.TestTestShell,
96 "ui": self.TestUI, "ui_tests": self.TestUI, 96 "ui": self.TestUI, "ui_tests": self.TestUI,
97 "unit": self.TestUnit, "unit_tests": self.TestUnit, 97 "unit": self.TestUnit, "unit_tests": self.TestUnit,
98 "app": self.TestApp, "app_unittests": self.TestApp, 98 "app": self.TestApp, "app_unittests": self.TestApp,
99 "ui_base": self.TestUIBase, "ui_base_unittests": self.TestUIBase, 99 "ui_unit": self.TestUIUnit, "ui_unittests": self.TestUIUnit,
100 "gfx": self.TestGfx, "gfx_unittests": self.TestGfx, 100 "gfx": self.TestGfx, "gfx_unittests": self.TestGfx,
101 } 101 }
102 102
103 if test not in self._test_list: 103 if test not in self._test_list:
104 raise TestNotFound("Unknown test: %s" % test) 104 raise TestNotFound("Unknown test: %s" % test)
105 105
106 self._options = options 106 self._options = options
107 self._args = args 107 self._args = args
108 self._test = test 108 self._test = test
109 109
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 287
288 def TestTestShell(self): 288 def TestTestShell(self):
289 return self.SimpleTest("webkit", "test_shell_tests") 289 return self.SimpleTest("webkit", "test_shell_tests")
290 290
291 def TestUnit(self): 291 def TestUnit(self):
292 return self.SimpleTest("chrome", "unit_tests") 292 return self.SimpleTest("chrome", "unit_tests")
293 293
294 def TestApp(self): 294 def TestApp(self):
295 return self.SimpleTest("chrome", "app_unittests") 295 return self.SimpleTest("chrome", "app_unittests")
296 296
297 def TestUIBase(self): 297 def TestUIUnit(self):
298 return self.SimpleTest("chrome", "ui_base_unittests") 298 return self.SimpleTest("chrome", "ui_unittests")
299 299
300 def TestGfx(self): 300 def TestGfx(self):
301 return self.SimpleTest("chrome", "gfx_unittests") 301 return self.SimpleTest("chrome", "gfx_unittests")
302 302
303 def TestUI(self): 303 def TestUI(self):
304 return self.SimpleTest("chrome", "ui_tests", 304 return self.SimpleTest("chrome", "ui_tests",
305 cmd_args=[ 305 cmd_args=[
306 "--ui-test-timeout=120000", 306 "--ui-test-timeout=120000",
307 "--ui-test-action-timeout=80000", 307 "--ui-test-action-timeout=80000",
308 "--ui-test-action-max-timeout=180000", 308 "--ui-test-action-max-timeout=180000",
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
454 return 0 454 return 0
455 455
456 456
457 if __name__ == "__main__": 457 if __name__ == "__main__":
458 if sys.platform == 'linux2': 458 if sys.platform == 'linux2':
459 ret = _main(sys.argv) 459 ret = _main(sys.argv)
460 else: 460 else:
461 logging.error("Heap checking works only on Linux at the moment.") 461 logging.error("Heap checking works only on Linux at the moment.")
462 ret = 1 462 ret = 1
463 sys.exit(ret) 463 sys.exit(ret)
OLDNEW
« no previous file with comments | « remoting/remoting.gyp ('k') | tools/valgrind/chrome_tests.py » ('j') | ui/ui_gfx.gypi » ('J')

Powered by Google App Engine
This is Rietveld 408576698