OLD | NEW |
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 Loading... |
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 Loading... |
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') |
OLD | NEW |