Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 #!/usr/bin/python | 1 #!/usr/bin/python |
| 2 # Copyright (c) 2012 The Native Client Authors. All rights reserved. | 2 # Copyright (c) 2012 The Native Client 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 # Enable 'with' statements in Python 2.5 | 6 # Enable 'with' statements in Python 2.5 |
| 7 from __future__ import with_statement | 7 from __future__ import with_statement |
| 8 | 8 |
| 9 import os.path | 9 import os.path |
| 10 import re | 10 import re |
| (...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 286 ValidatorTest( | 286 ValidatorTest( |
| 287 context, 'x86-32', | 287 context, 'x86-32', |
| 288 'scons-out/opt-linux-x86-32/staging/validator_test') | 288 'scons-out/opt-linux-x86-32/staging/validator_test') |
| 289 with Step('validator_regression_test ragel x86-64', status, | 289 with Step('validator_regression_test ragel x86-64', status, |
| 290 halt_on_fail=False): | 290 halt_on_fail=False): |
| 291 ValidatorTest( | 291 ValidatorTest( |
| 292 context, 'x86-64', | 292 context, 'x86-64', |
| 293 'scons-out/opt-linux-x86-64/staging/validator_test') | 293 'scons-out/opt-linux-x86-64/staging/validator_test') |
| 294 with Step('validator_diff_tests', status, halt_on_fail=False): | 294 with Step('validator_diff_tests', status, halt_on_fail=False): |
| 295 SCons(context, args=['validator_diff_tests']) | 295 SCons(context, args=['validator_diff_tests']) |
| 296 | |
| 296 return | 297 return |
| 297 | 298 |
| 298 # Run checkdeps script to vet #includes. | 299 # Run checkdeps script to vet #includes. |
| 299 with Step('checkdeps', status): | 300 with Step('checkdeps', status): |
| 300 Command(context, cmd=[sys.executable, 'tools/checkdeps/checkdeps.py']) | 301 Command(context, cmd=[sys.executable, 'tools/checkdeps/checkdeps.py']) |
| 301 | 302 |
| 302 # Make sure our Gyp build is working. | 303 # Make sure our Gyp build is working. |
| 303 with Step('gyp_compile', status): | 304 with Step('gyp_compile', status): |
| 304 CommandGypBuild(context) | 305 CommandGypBuild(context) |
| 305 | 306 |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 360 'small_tests', | 361 'small_tests', |
| 361 'medium_tests', | 362 'medium_tests', |
| 362 'large_tests', | 363 'large_tests', |
| 363 ] | 364 ] |
| 364 # Add nacl_irt_test mode to be able to run run_hello_world_test_irt that | 365 # Add nacl_irt_test mode to be able to run run_hello_world_test_irt that |
| 365 # tests validation of the IRT. | 366 # tests validation of the IRT. |
| 366 SCons(context, | 367 SCons(context, |
| 367 mode=context['default_scons_mode'] + ['nacl_irt_test'], | 368 mode=context['default_scons_mode'] + ['nacl_irt_test'], |
| 368 args=args) | 369 args=args) |
| 369 | 370 |
| 371 with Step('validator_tf_test', status, halt_on_fail=False): | |
|
Mark Seaborn
2012/09/10 19:38:06
Don't add a new Buildbot step, please. Scons is s
Vlad Shcherbina
2012/09/11 14:26:00
Done.
| |
| 372 SCons(context, parallel=True, args=['validator_tf_test']) | |
| 373 | |
| 370 | 374 |
| 371 def Main(): | 375 def Main(): |
| 372 # TODO(ncbray) make buildbot scripts composable to support toolchain use case. | 376 # TODO(ncbray) make buildbot scripts composable to support toolchain use case. |
| 373 context = BuildContext() | 377 context = BuildContext() |
| 374 status = BuildStatus(context) | 378 status = BuildStatus(context) |
| 375 ParseStandardCommandLine(context) | 379 ParseStandardCommandLine(context) |
| 376 SetupContextVars(context) | 380 SetupContextVars(context) |
| 377 if context.Windows(): | 381 if context.Windows(): |
| 378 SetupWindowsEnvironment(context) | 382 SetupWindowsEnvironment(context) |
| 379 elif context.Linux(): | 383 elif context.Linux(): |
| 380 SetupLinuxEnvironment(context) | 384 SetupLinuxEnvironment(context) |
| 381 elif context.Mac(): | 385 elif context.Mac(): |
| 382 SetupMacEnvironment(context) | 386 SetupMacEnvironment(context) |
| 383 else: | 387 else: |
| 384 raise Exception("Unsupported platform.") | 388 raise Exception("Unsupported platform.") |
| 385 RunBuild(BuildScript, status) | 389 RunBuild(BuildScript, status) |
| 386 | 390 |
| 387 | 391 |
| 388 if __name__ == '__main__': | 392 if __name__ == '__main__': |
| 389 Main() | 393 Main() |
| OLD | NEW |