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

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

Issue 5535003: scons: excise more scons references from the code base (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 years 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/heapcheck/chrome_tests.py ('k') | tools/valgrind/valgrind.sh » ('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/python 1 #!/usr/bin/python
2 # Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2006-2008 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 # chrome_tests.py 6 # chrome_tests.py
7 7
8 ''' Runs various chrome tests through valgrind_test.py.''' 8 ''' Runs various chrome tests through valgrind_test.py.'''
9 9
10 import glob 10 import glob
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 if exe and common.IsWindows(): 92 if exe and common.IsWindows():
93 exe = exe + '.exe' 93 exe = exe + '.exe'
94 94
95 if not self._options.build_dir: 95 if not self._options.build_dir:
96 if common.IsWine(): 96 if common.IsWine():
97 self._options.build_dir = os.path.join( 97 self._options.build_dir = os.path.join(
98 self._source_dir, "chrome", "Debug") 98 self._source_dir, "chrome", "Debug")
99 else: 99 else:
100 dirs = [ 100 dirs = [
101 os.path.join(self._source_dir, "xcodebuild", "Debug"), 101 os.path.join(self._source_dir, "xcodebuild", "Debug"),
102 os.path.join(self._source_dir, "sconsbuild", "Debug"),
103 os.path.join(self._source_dir, "out", "Debug"), 102 os.path.join(self._source_dir, "out", "Debug"),
104 os.path.join(self._source_dir, "build", "Debug"), 103 os.path.join(self._source_dir, "build", "Debug"),
105 ] 104 ]
106 if exe: 105 if exe:
107 self._options.build_dir = FindDirContainingNewestFile(dirs, exe) 106 self._options.build_dir = FindDirContainingNewestFile(dirs, exe)
108 else: 107 else:
109 self._options.build_dir = FindNewestDir(dirs) 108 self._options.build_dir = FindNewestDir(dirs)
110 109
111 cmd = list(self._command_preamble) 110 cmd = list(self._command_preamble)
112 111
(...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after
454 for t in options.test: 453 for t in options.test:
455 tests = ChromeTests(options, args, t) 454 tests = ChromeTests(options, args, t)
456 ret = tests.Run() 455 ret = tests.Run()
457 if ret: return ret 456 if ret: return ret
458 return 0 457 return 0
459 458
460 459
461 if __name__ == "__main__": 460 if __name__ == "__main__":
462 ret = _main(sys.argv) 461 ret = _main(sys.argv)
463 sys.exit(ret) 462 sys.exit(ret)
OLDNEW
« no previous file with comments | « tools/heapcheck/chrome_tests.py ('k') | tools/valgrind/valgrind.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698