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 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
250 'git://github.com/mseaborn/x86-decoder.git', 'dfa_validator64']) | 250 'git://github.com/mseaborn/x86-decoder.git', 'dfa_validator64']) |
251 Command(context, cmd=[ | 251 Command(context, cmd=[ |
252 'git', 'checkout', '6ffa36f44cafd2cdad37e1e27254c498030ff712'], | 252 'git', 'checkout', '6ffa36f44cafd2cdad37e1e27254c498030ff712'], |
253 cwd='dfa_validator64') | 253 cwd='dfa_validator64') |
254 with Step('build dfa_validator_32', status): | 254 with Step('build dfa_validator_32', status): |
255 Command(context, cmd=['make'], cwd='dfa_validator32') | 255 Command(context, cmd=['make'], cwd='dfa_validator32') |
256 with Step('build dfa_validator_64', status): | 256 with Step('build dfa_validator_64', status): |
257 Command(context, cmd=['make'], cwd='dfa_validator64') | 257 Command(context, cmd=['make'], cwd='dfa_validator64') |
258 | 258 |
259 with Step('build ragel_validator-32', status): | 259 with Step('build ragel_validator-32', status): |
260 SCons(context, platform='x86-32', parallel=True, args=['validator_test']) | 260 SCons(context, platform='x86-32', parallel=True, args=['ncval_new']) |
261 with Step('build ragel_validator-64', status): | 261 with Step('build ragel_validator-64', status): |
262 SCons(context, platform='x86-64', parallel=True, args=['validator_test']) | 262 SCons(context, platform='x86-64', parallel=True, args=['ncval_new']) |
263 | 263 |
264 with Step('predownload validator corpus', status): | 264 with Step('predownload validator corpus', status): |
265 Command(context, | 265 Command(context, |
266 cmd=[sys.executable, | 266 cmd=[sys.executable, |
267 'tests/abi_corpus/validator_regression_test.py', | 267 'tests/abi_corpus/validator_regression_test.py', |
268 '--download-only']) | 268 '--download-only']) |
269 | 269 |
270 with Step('validator_regression_test current x86-32', status, | 270 with Step('validator_regression_test current x86-32', status, |
271 halt_on_fail=False): | 271 halt_on_fail=False): |
272 ValidatorTest( | 272 ValidatorTest( |
273 context, 'x86-32', 'scons-out/opt-linux-x86-32/staging/ncval') | 273 context, 'x86-32', 'scons-out/opt-linux-x86-32/staging/ncval') |
274 with Step('validator_regression_test current x86-64', status, | 274 with Step('validator_regression_test current x86-64', status, |
275 halt_on_fail=False): | 275 halt_on_fail=False): |
276 ValidatorTest( | 276 ValidatorTest( |
277 context, 'x86-64', 'scons-out/opt-linux-x86-64/staging/ncval') | 277 context, 'x86-64', 'scons-out/opt-linux-x86-64/staging/ncval') |
278 | 278 |
279 with Step('validator_regression_test dfa x86-32', status, | 279 with Step('validator_regression_test dfa x86-32', status, |
280 halt_on_fail=False): | 280 halt_on_fail=False): |
281 ValidatorTest( | 281 ValidatorTest( |
282 context, 'x86-32', 'dfa_validator32/dfa_ncval', warn_only=True) | 282 context, 'x86-32', 'dfa_validator32/dfa_ncval', warn_only=True) |
283 with Step('validator_regression_test dfa x86-64', status, | 283 with Step('validator_regression_test dfa x86-64', status, |
284 halt_on_fail=False): | 284 halt_on_fail=False): |
285 ValidatorTest( | 285 ValidatorTest( |
286 context, 'x86-64', 'dfa_validator64/dfa_ncval', warn_only=True) | 286 context, 'x86-64', 'dfa_validator64/dfa_ncval', warn_only=True) |
287 | 287 |
288 with Step('validator_regression_test ragel x86-32', status, | 288 with Step('validator_regression_test ragel x86-32', status, |
289 halt_on_fail=False): | 289 halt_on_fail=False): |
290 ValidatorTest( | 290 ValidatorTest( |
291 context, 'x86-32', | 291 context, 'x86-32', |
292 'scons-out/opt-linux-x86-32/staging/validator_test') | 292 'scons-out/opt-linux-x86-32/staging/ncval_new') |
293 with Step('validator_regression_test ragel x86-64', status, | 293 with Step('validator_regression_test ragel x86-64', status, |
294 halt_on_fail=False): | 294 halt_on_fail=False): |
295 ValidatorTest( | 295 ValidatorTest( |
296 context, 'x86-64', | 296 context, 'x86-64', |
297 'scons-out/opt-linux-x86-64/staging/validator_test') | 297 'scons-out/opt-linux-x86-64/staging/ncval_new') |
| 298 |
298 with Step('validator_diff_tests', status, halt_on_fail=False): | 299 with Step('validator_diff_tests', status, halt_on_fail=False): |
299 SCons(context, args=['validator_diff_tests']) | 300 SCons(context, args=['validator_diff_tests']) |
300 return | 301 return |
301 | 302 |
302 # Run checkdeps script to vet #includes. | 303 # Run checkdeps script to vet #includes. |
303 with Step('checkdeps', status): | 304 with Step('checkdeps', status): |
304 Command(context, cmd=[sys.executable, 'tools/checkdeps/checkdeps.py']) | 305 Command(context, cmd=[sys.executable, 'tools/checkdeps/checkdeps.py']) |
305 | 306 |
306 # Make sure our Gyp build is working. | 307 # Make sure our Gyp build is working. |
307 if not context['no_gyp']: | 308 if not context['no_gyp']: |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
386 SetupLinuxEnvironment(context) | 387 SetupLinuxEnvironment(context) |
387 elif context.Mac(): | 388 elif context.Mac(): |
388 SetupMacEnvironment(context) | 389 SetupMacEnvironment(context) |
389 else: | 390 else: |
390 raise Exception("Unsupported platform.") | 391 raise Exception("Unsupported platform.") |
391 RunBuild(BuildScript, status) | 392 RunBuild(BuildScript, status) |
392 | 393 |
393 | 394 |
394 if __name__ == '__main__': | 395 if __name__ == '__main__': |
395 Main() | 396 Main() |
OLD | NEW |