| 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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 380 SetupLinuxEnvironment(context) | 381 SetupLinuxEnvironment(context) |
| 381 elif context.Mac(): | 382 elif context.Mac(): |
| 382 SetupMacEnvironment(context) | 383 SetupMacEnvironment(context) |
| 383 else: | 384 else: |
| 384 raise Exception("Unsupported platform.") | 385 raise Exception("Unsupported platform.") |
| 385 RunBuild(BuildScript, status) | 386 RunBuild(BuildScript, status) |
| 386 | 387 |
| 387 | 388 |
| 388 if __name__ == '__main__': | 389 if __name__ == '__main__': |
| 389 Main() | 390 Main() |
| OLD | NEW |