Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 # -*- python -*- | 1 # -*- 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 import json | 6 import json |
| 7 import hashlib | 7 import hashlib |
| 8 import os | 8 import os |
| 9 import platform | 9 import platform |
| 10 import sys | 10 import sys |
| (...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 330 env.File('verify_regular_instructions.py'), | 330 env.File('verify_regular_instructions.py'), |
| 331 xml, | 331 xml, |
| 332 '--bitness', bitness, | 332 '--bitness', bitness, |
| 333 '--validator_dll', validator_dll, | 333 '--validator_dll', validator_dll, |
| 334 '--decoder_dll', decoder_dll]) | 334 '--decoder_dll', decoder_dll]) |
| 335 | 335 |
| 336 # Never run exhaustive tests in parallel because they can take all CPU. | 336 # Never run exhaustive tests in parallel because they can take all CPU. |
| 337 env.AlwaysBuild(regular_instructions_test) | 337 env.AlwaysBuild(regular_instructions_test) |
| 338 SideEffect('check_validator', regular_instructions_test) | 338 SideEffect('check_validator', regular_instructions_test) |
| 339 dfacheckvalidator_tests.append(regular_instructions_test) | 339 dfacheckvalidator_tests.append(regular_instructions_test) |
| 340 | 340 |
|
Mark Seaborn
2014/10/07 21:53:46
Style nit: remove 1 empty line here (so that there
shyamsundarr
2014/10/08 19:59:03
Done.
| |
| 341 env32 = env.Clone(BUILD_TARGET_NAME='x86-32') | |
| 342 env64 = env.Clone(BUILD_TARGET_NAME='x86-64') | |
| 343 old_ncval32 = env32.File('$STAGING_DIR/ncval$PROGSUFFIX') | |
| 344 old_ncval64 = env64.File('$STAGING_DIR/ncval$PROGSUFFIX') | |
| 345 | |
| 346 regular_instructions_old_test = env.AutoDepsCommand( | |
| 347 'regular_instructions_old_test_x86_%s.out' % bitness, | |
| 348 ['${PYTHON}', | |
| 349 env.File('verify_regular_instructions_old.py'), | |
|
Mark Seaborn
2014/10/07 21:53:46
This would be an appropriate change in which to al
shyamsundarr
2014/10/08 19:59:03
Done.
| |
| 350 xml, | |
| 351 '--bitness', bitness, | |
| 352 '--gas', gas, | |
| 353 '--objdump', objdump, | |
| 354 '--validator_dll', validator_dll, | |
| 355 '--ncval32', old_ncval32, | |
| 356 '--ncval64', old_ncval64, | |
| 357 '--errors', '${TARGET}']) | |
| 358 | |
| 359 # Never run exhaustive tests in parallel because they can take all CPU. | |
| 360 env.AlwaysBuild(regular_instructions_old_test) | |
| 361 SideEffect('check_validator', regular_instructions_old_test) | |
| 362 dfacheckvalidator_tests.append(regular_instructions_old_test) | |
| 363 | 341 |
| 364 # There are three categories of protected files: validator files, generated | 342 # There are three categories of protected files: validator files, generated |
| 365 # files (those of validator files that lie withing 'gen' directory) and | 343 # files (those of validator files that lie withing 'gen' directory) and |
| 366 # generating files (programs and input data used to produce generated | 344 # generating files (programs and input data used to produce generated |
| 367 # files). | 345 # files). |
| 368 # | 346 # |
| 369 # When validator files are changed, exhaustive validator tests have to be | 347 # When validator files are changed, exhaustive validator tests have to be |
| 370 # rerun. When generating files are changed, dfagen must be run to ensure | 348 # rerun. When generating files are changed, dfagen must be run to ensure |
| 371 # that generated files are up to date. Presubmit script uses | 349 # that generated files are up to date. Presubmit script uses |
| 372 # protected_files.json to perform these checks. | 350 # protected_files.json to perform these checks. |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 491 | 469 |
| 492 if env.Bit('regenerate_golden'): | 470 if env.Bit('regenerate_golden'): |
| 493 # Don't want these tests run in parallel because they write | 471 # Don't want these tests run in parallel because they write |
| 494 # to .test files. | 472 # to .test files. |
| 495 SideEffect(tests_mask, spec_test) | 473 SideEffect(tests_mask, spec_test) |
| 496 | 474 |
| 497 # Spec test uses @dis section in test files, which in turn is updated | 475 # Spec test uses @dis section in test files, which in turn is updated |
| 498 # by dis_section_test. | 476 # by dis_section_test. |
| 499 if env.Bit('target_x86'): | 477 if env.Bit('target_x86'): |
| 500 env.Depends(spec_test, dis_section_test) | 478 env.Depends(spec_test, dis_section_test) |
| OLD | NEW |