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

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

Issue 2720007: Enable remoting unittests to run on build bots (Closed)
Patch Set: done again Created 10 years, 6 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
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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 # Recognise the original abbreviations as well as full executable names. 80 # Recognise the original abbreviations as well as full executable names.
81 self._test_list = { 81 self._test_list = {
82 "base": self.TestBase, "base_unittests": self.TestBase, 82 "base": self.TestBase, "base_unittests": self.TestBase,
83 "browser": self.TestBrowser, "browser_tests": self.TestBrowser, 83 "browser": self.TestBrowser, "browser_tests": self.TestBrowser,
84 "googleurl": self.TestGURL, "googleurl_unittests": self.TestGURL, 84 "googleurl": self.TestGURL, "googleurl_unittests": self.TestGURL,
85 "ipc": self.TestIpc, "ipc_tests": self.TestIpc, 85 "ipc": self.TestIpc, "ipc_tests": self.TestIpc,
86 "layout": self.TestLayout, "layout_tests": self.TestLayout, 86 "layout": self.TestLayout, "layout_tests": self.TestLayout,
87 "media": self.TestMedia, "media_unittests": self.TestMedia, 87 "media": self.TestMedia, "media_unittests": self.TestMedia,
88 "net": self.TestNet, "net_unittests": self.TestNet, 88 "net": self.TestNet, "net_unittests": self.TestNet,
89 "printing": self.TestPrinting, "printing_unittests": self.TestPrinting, 89 "printing": self.TestPrinting, "printing_unittests": self.TestPrinting,
90 "remoting": self.TestRemoting, "remoting_unittests": self.TestRemoting,
90 "startup": self.TestStartup, "startup_tests": self.TestStartup, 91 "startup": self.TestStartup, "startup_tests": self.TestStartup,
91 "test_shell": self.TestTestShell, "test_shell_tests": self.TestTestShell, 92 "test_shell": self.TestTestShell, "test_shell_tests": self.TestTestShell,
92 "ui": self.TestUI, "ui_tests": self.TestUI, 93 "ui": self.TestUI, "ui_tests": self.TestUI,
93 "unit": self.TestUnit, "unit_tests": self.TestUnit, 94 "unit": self.TestUnit, "unit_tests": self.TestUnit,
94 "app": self.TestApp, "app_unittests": self.TestApp, 95 "app": self.TestApp, "app_unittests": self.TestApp,
95 } 96 }
96 97
97 if test not in self._test_list: 98 if test not in self._test_list:
98 raise TestNotFound("Unknown test: %s" % test) 99 raise TestNotFound("Unknown test: %s" % test)
99 100
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 248
248 def TestGURL(self): 249 def TestGURL(self):
249 return self.SimpleTest("chrome", "googleurl_unittests") 250 return self.SimpleTest("chrome", "googleurl_unittests")
250 251
251 def TestMedia(self): 252 def TestMedia(self):
252 return self.SimpleTest("chrome", "media_unittests") 253 return self.SimpleTest("chrome", "media_unittests")
253 254
254 def TestPrinting(self): 255 def TestPrinting(self):
255 return self.SimpleTest("chrome", "printing_unittests") 256 return self.SimpleTest("chrome", "printing_unittests")
256 257
258 def TestRemoting(self):
259 return self.SimpleTest("chrome", "remoting_unittests")
260
257 def TestIpc(self): 261 def TestIpc(self):
258 return self.SimpleTest("ipc", "ipc_tests") 262 return self.SimpleTest("ipc", "ipc_tests")
259 263
260 def TestNet(self): 264 def TestNet(self):
261 return self.SimpleTest("net", "net_unittests") 265 return self.SimpleTest("net", "net_unittests")
262 266
263 def TestStartup(self): 267 def TestStartup(self):
264 # We don't need the performance results, we're just looking for pointer 268 # We don't need the performance results, we're just looking for pointer
265 # errors, so set number of iterations down to the minimum. 269 # errors, so set number of iterations down to the minimum.
266 os.putenv("STARTUP_TESTS_NUMCYCLES", "1") 270 os.putenv("STARTUP_TESTS_NUMCYCLES", "1")
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
430 return 0 434 return 0
431 435
432 436
433 if __name__ == "__main__": 437 if __name__ == "__main__":
434 if sys.platform == 'linux2': 438 if sys.platform == 'linux2':
435 ret = _main(sys.argv) 439 ret = _main(sys.argv)
436 else: 440 else:
437 logging.error("Heap checking works only on Linux at the moment.") 441 logging.error("Heap checking works only on Linux at the moment.")
438 ret = 1 442 ret = 1
439 sys.exit(ret) 443 sys.exit(ret)
OLDNEW
« build/common.gypi ('K') | « remoting/remoting.gyp ('k') | tools/valgrind/chrome_tests.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698