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

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

Issue 14841004: Remove remaining references to test_shell_tests now that the bots have been updated. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 7 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 | « tools/code_coverage/coverage.py ('k') | tools/heapcheck/test_shell_tests.gtest-heapcheck.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) 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 heapcheck_test.py. 6 ''' Runs various chrome tests through heapcheck_test.py.
7 7
8 Most of this code is copied from ../valgrind/chrome_tests.py. 8 Most of this code is copied from ../valgrind/chrome_tests.py.
9 TODO(glider): put common functions to a standalone module. 9 TODO(glider): put common functions to a standalone module.
10 ''' 10 '''
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 "googleurl": self.TestGURL, "googleurl_unittests": self.TestGURL, 94 "googleurl": self.TestGURL, "googleurl_unittests": self.TestGURL,
95 "ipc": self.TestIpc, "ipc_tests": self.TestIpc, 95 "ipc": self.TestIpc, "ipc_tests": self.TestIpc,
96 "layout": self.TestLayout, "layout_tests": self.TestLayout, 96 "layout": self.TestLayout, "layout_tests": self.TestLayout,
97 "media": self.TestMedia, "media_unittests": self.TestMedia, 97 "media": self.TestMedia, "media_unittests": self.TestMedia,
98 "net": self.TestNet, "net_unittests": self.TestNet, 98 "net": self.TestNet, "net_unittests": self.TestNet,
99 "printing": self.TestPrinting, "printing_unittests": self.TestPrinting, 99 "printing": self.TestPrinting, "printing_unittests": self.TestPrinting,
100 "remoting": self.TestRemoting, "remoting_unittests": self.TestRemoting, 100 "remoting": self.TestRemoting, "remoting_unittests": self.TestRemoting,
101 "sql": self.TestSql, "sql_unittests": self.TestSql, 101 "sql": self.TestSql, "sql_unittests": self.TestSql,
102 "startup": self.TestStartup, "startup_tests": self.TestStartup, 102 "startup": self.TestStartup, "startup_tests": self.TestStartup,
103 "sync": self.TestSync, "sync_unit_tests": self.TestSync, 103 "sync": self.TestSync, "sync_unit_tests": self.TestSync,
104 "test_shell": self.TestTestShell, "test_shell_tests": self.TestTestShell,
105 "ui_unit": self.TestUIUnit, "ui_unittests": self.TestUIUnit, 104 "ui_unit": self.TestUIUnit, "ui_unittests": self.TestUIUnit,
106 "unit": self.TestUnit, "unit_tests": self.TestUnit, 105 "unit": self.TestUnit, "unit_tests": self.TestUnit,
107 "views": self.TestViews, "views_unittests": self.TestViews, 106 "views": self.TestViews, "views_unittests": self.TestViews,
108 } 107 }
109 108
110 if test not in self._test_list: 109 if test not in self._test_list:
111 raise TestNotFound("Unknown test: %s" % test) 110 raise TestNotFound("Unknown test: %s" % test)
112 111
113 self._options = options 112 self._options = options
114 self._args = args 113 self._args = args
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 def TestSync(self): 300 def TestSync(self):
302 return self.SimpleTest("chrome", "sync_unit_tests") 301 return self.SimpleTest("chrome", "sync_unit_tests")
303 302
304 def TestStartup(self): 303 def TestStartup(self):
305 # We don't need the performance results, we're just looking for pointer 304 # We don't need the performance results, we're just looking for pointer
306 # errors, so set number of iterations down to the minimum. 305 # errors, so set number of iterations down to the minimum.
307 os.putenv("STARTUP_TESTS_NUMCYCLES", "1") 306 os.putenv("STARTUP_TESTS_NUMCYCLES", "1")
308 logging.info("export STARTUP_TESTS_NUMCYCLES=1"); 307 logging.info("export STARTUP_TESTS_NUMCYCLES=1");
309 return self.SimpleTest("chrome", "startup_tests") 308 return self.SimpleTest("chrome", "startup_tests")
310 309
311 def TestTestShell(self):
312 return self.SimpleTest("webkit", "test_shell_tests")
313
314 def TestUIUnit(self): 310 def TestUIUnit(self):
315 return self.SimpleTest("chrome", "ui_unittests") 311 return self.SimpleTest("chrome", "ui_unittests")
316 312
317 def TestUnit(self): 313 def TestUnit(self):
318 return self.SimpleTest("chrome", "unit_tests") 314 return self.SimpleTest("chrome", "unit_tests")
319 315
320 def TestSql(self): 316 def TestSql(self):
321 return self.SimpleTest("chrome", "sql_unittests") 317 return self.SimpleTest("chrome", "sql_unittests")
322 318
323 def TestViews(self): 319 def TestViews(self):
(...skipping 10 matching lines...) Expand all
334 # It's going to be roughly 330 # It's going to be roughly
335 # python heapcheck_test.py ... python run_webkit_tests.py ... 331 # python heapcheck_test.py ... python run_webkit_tests.py ...
336 # but we'll use the --indirect flag to heapcheck_test.py 332 # but we'll use the --indirect flag to heapcheck_test.py
337 # to avoid heapchecking python. 333 # to avoid heapchecking python.
338 # Start by building the heapcheck_test.py commandline. 334 # Start by building the heapcheck_test.py commandline.
339 cmd = self._DefaultCommand("webkit") 335 cmd = self._DefaultCommand("webkit")
340 336
341 # Now build script_cmd, the run_webkits_tests.py commandline 337 # Now build script_cmd, the run_webkits_tests.py commandline
342 # Store each chunk in its own directory so that we can find the data later 338 # Store each chunk in its own directory so that we can find the data later
343 chunk_dir = os.path.join("layout", "chunk_%05d" % chunk_num) 339 chunk_dir = os.path.join("layout", "chunk_%05d" % chunk_num)
344 test_shell = os.path.join(self._options.build_dir, "test_shell")
345 out_dir = os.path.join(path_utils.ScriptDir(), "latest") 340 out_dir = os.path.join(path_utils.ScriptDir(), "latest")
346 out_dir = os.path.join(out_dir, chunk_dir) 341 out_dir = os.path.join(out_dir, chunk_dir)
347 if os.path.exists(out_dir): 342 if os.path.exists(out_dir):
348 old_files = glob.glob(os.path.join(out_dir, "*.txt")) 343 old_files = glob.glob(os.path.join(out_dir, "*.txt"))
349 for f in old_files: 344 for f in old_files:
350 os.remove(f) 345 os.remove(f)
351 else: 346 else:
352 os.makedirs(out_dir) 347 os.makedirs(out_dir)
353 348
354 script = os.path.join(self._source_dir, "webkit", "tools", "layout_tests", 349 script = os.path.join(self._source_dir, "webkit", "tools", "layout_tests",
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
468 for t in options.test: 463 for t in options.test:
469 tests = ChromeTests(options, args, t) 464 tests = ChromeTests(options, args, t)
470 ret = tests.Run() 465 ret = tests.Run()
471 if ret: 466 if ret:
472 return ret 467 return ret
473 return 0 468 return 0
474 469
475 470
476 if __name__ == "__main__": 471 if __name__ == "__main__":
477 sys.exit(main()) 472 sys.exit(main())
OLDNEW
« no previous file with comments | « tools/code_coverage/coverage.py ('k') | tools/heapcheck/test_shell_tests.gtest-heapcheck.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698