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

Side by Side Diff: native_client_sdk/src/build_tools/test_sdk.py

Issue 1163843006: [NaCl SDK] Use seperate build dir for msan/tsan builds (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
« no previous file with comments | « no previous file | native_client_sdk/src/tools/common.mk » ('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 """Script for a testing an existing SDK. 6 """Script for a testing an existing SDK.
7 7
8 This script is normally run immediately after build_sdk.py. 8 This script is normally run immediately after build_sdk.py.
9 """ 9 """
10 10
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 # For sanitizer builds we pass extra argument for make, and do 80 # For sanitizer builds we pass extra argument for make, and do
81 # full clean build to make sure everything is rebuilt with the 81 # full clean build to make sure everything is rebuilt with the
82 # correct flags 82 # correct flags
83 deps = True 83 deps = True
84 if sanitizer == 'valgrind': 84 if sanitizer == 'valgrind':
85 args += ['RUN_UNDER=valgrind'] 85 args += ['RUN_UNDER=valgrind']
86 elif sanitizer == 'address': 86 elif sanitizer == 'address':
87 args += ['ASAN=1'] 87 args += ['ASAN=1']
88 elif sanitizer == 'thread': 88 elif sanitizer == 'thread':
89 args += ['TSAN=1'] 89 args += ['TSAN=1']
90 build_projects.BuildProjectsBranch(pepperdir, 'src', clean=False,
91 deps=deps, config=config,
92 args=args + ['clean'])
93 build_projects.BuildProjectsBranch(pepperdir, 'tests', clean=False,
94 deps=deps, config=config,
95 args=args + ['clean'])
96 90
97 build_projects.BuildProjectsBranch(pepperdir, test, clean=False, 91 build_projects.BuildProjectsBranch(pepperdir, test, clean=False,
98 deps=deps, config=config, 92 deps=deps, config=config,
99 args=args + ['run']) 93 args=args + ['run'])
100 94
101 if getos.GetPlatform() == 'win': 95 if getos.GetPlatform() == 'win':
102 # On win32 we only support running on the system 96 # On win32 we only support running on the system
103 # arch 97 # arch
104 archs = (getos.GetSystemArch('win'),) 98 archs = (getos.GetSystemArch('win'),)
105 elif getos.GetPlatform() == 'mac': 99 elif getos.GetPlatform() == 'mac':
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 phase_func(*phase_args) 223 phase_func(*phase_args)
230 224
231 return 0 225 return 0
232 226
233 227
234 if __name__ == '__main__': 228 if __name__ == '__main__':
235 try: 229 try:
236 sys.exit(main(sys.argv[1:])) 230 sys.exit(main(sys.argv[1:]))
237 except KeyboardInterrupt: 231 except KeyboardInterrupt:
238 buildbot_common.ErrorExit('test_sdk: interrupted') 232 buildbot_common.ErrorExit('test_sdk: interrupted')
OLDNEW
« no previous file with comments | « no previous file | native_client_sdk/src/tools/common.mk » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698