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 atexit | 6 import atexit |
7 import os | 7 import os |
8 import platform | 8 import platform |
9 import subprocess | 9 import subprocess |
10 import sys | 10 import sys |
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
329 desc='Use the zero-address-based x86-64 sandbox model instead of ' | 329 desc='Use the zero-address-based x86-64 sandbox model instead of ' |
330 'the r15-based model.') | 330 'the r15-based model.') |
331 | 331 |
332 ######################################################################### | 332 ######################################################################### |
333 # EXPERIMENTAL | 333 # EXPERIMENTAL |
334 # This is for generating a testing library for use within private test | 334 # This is for generating a testing library for use within private test |
335 # enuminsts, where we want to compare and test different validators. | 335 # enuminsts, where we want to compare and test different validators. |
336 # | 336 # |
337 BitFromArgument(env, 'ncval_testing', default=False, | 337 BitFromArgument(env, 'ncval_testing', default=False, |
338 desc='EXPERIMENTAL: Compile validator code for testing within enuminsts') | 338 desc='EXPERIMENTAL: Compile validator code for testing within enuminsts') |
339 # Diff test comparing old validator with new R-DFA validator | |
340 BitFromArgument(env, 'validator_diff_tests', default=False, | |
bradn
2012/08/28 21:14:10
So I think you should be able to drop this.
This i
Brad Chen
2012/08/28 22:09:42
Done.
| |
341 desc='Compare validator implementations') | |
339 | 342 |
340 # PNaCl sanity checks | 343 # PNaCl sanity checks |
341 if ((env.Bit('pnacl_generate_pexe') or env.Bit('use_sandboxed_translator')) | 344 if ((env.Bit('pnacl_generate_pexe') or env.Bit('use_sandboxed_translator')) |
342 and not env.Bit('bitcode')): | 345 and not env.Bit('bitcode')): |
343 raise ValueError("pnacl_generate_pexe and use_sandboxed_translator" | 346 raise ValueError("pnacl_generate_pexe and use_sandboxed_translator" |
344 "don't make sense without bitcode") | 347 "don't make sense without bitcode") |
345 | 348 |
346 | 349 |
347 def CheckArguments(): | 350 def CheckArguments(): |
348 for key in ARGUMENTS: | 351 for key in ARGUMENTS: |
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
619 'pepper_browser_tests', | 622 'pepper_browser_tests', |
620 # Lightweight browser tests | 623 # Lightweight browser tests |
621 'chrome_browser_tests', | 624 'chrome_browser_tests', |
622 # Tests written using Chrome's PyAuto test jig | 625 # Tests written using Chrome's PyAuto test jig |
623 'pyauto_tests', | 626 'pyauto_tests', |
624 'huge_tests', | 627 'huge_tests', |
625 'memcheck_bot_tests', | 628 'memcheck_bot_tests', |
626 'tsan_bot_tests', | 629 'tsan_bot_tests', |
627 # Special testing environment for testing comparing x86 validators. | 630 # Special testing environment for testing comparing x86 validators. |
628 'ncval_testing', | 631 'ncval_testing', |
632 # Environment for validator difference testing | |
633 'validator_diff_tests', | |
629 ]) | 634 ]) |
630 | 635 |
631 # These are the test suites we know exist, but aren't run on a regular basis. | 636 # These are the test suites we know exist, but aren't run on a regular basis. |
632 # These test suites are essentially shortcuts that run a specific subset of the | 637 # These test suites are essentially shortcuts that run a specific subset of the |
633 # test cases. | 638 # test cases. |
634 ACCEPTABLE_TEST_SUITES = set([ | 639 ACCEPTABLE_TEST_SUITES = set([ |
635 'barebones_tests', | 640 'barebones_tests', |
636 'dynamic_load_tests', | 641 'dynamic_load_tests', |
637 'exception_tests', | 642 'exception_tests', |
638 'exit_status_tests', | 643 'exit_status_tests', |
(...skipping 889 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1528 | 1533 |
1529 pre_base_env.AddMethod(CommandSelLdrTestNacl) | 1534 pre_base_env.AddMethod(CommandSelLdrTestNacl) |
1530 | 1535 |
1531 | 1536 |
1532 TEST_EXTRA_ARGS = ['stdin', 'log_file', | 1537 TEST_EXTRA_ARGS = ['stdin', 'log_file', |
1533 'stdout_golden', 'stderr_golden', 'log_golden', | 1538 'stdout_golden', 'stderr_golden', 'log_golden', |
1534 'filter_regex', 'filter_inverse', 'filter_group_only', | 1539 'filter_regex', 'filter_inverse', 'filter_group_only', |
1535 'osenv', 'arch', 'subarch', 'exit_status', 'track_cmdtime', | 1540 'osenv', 'arch', 'subarch', 'exit_status', 'track_cmdtime', |
1536 'num_runs', 'process_output_single', | 1541 'num_runs', 'process_output_single', |
1537 'process_output_combined', 'using_nacl_signal_handler', | 1542 'process_output_combined', 'using_nacl_signal_handler', |
1538 'declares_exit_status'] | 1543 'declares_exit_status', 'time_warning', 'time_error'] |
1539 | 1544 |
1540 TEST_TIME_THRESHOLD = { | 1545 TEST_TIME_THRESHOLD = { |
1541 'small': 2, | 1546 'small': 2, |
1542 'medium': 10, | 1547 'medium': 10, |
1543 'large': 60, | 1548 'large': 60, |
1544 'huge': 1800, | 1549 'huge': 1800, |
1545 } | 1550 } |
1546 | 1551 |
1547 # Valgrind handles SIGSEGV in a way our testing tools do not expect. | 1552 # Valgrind handles SIGSEGV in a way our testing tools do not expect. |
1548 UNSUPPORTED_VALGRIND_EXIT_STATUS = ['sigabrt', | 1553 UNSUPPORTED_VALGRIND_EXIT_STATUS = ['sigabrt', |
(...skipping 1788 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
3337 nacl_env.ValidateSdk() | 3342 nacl_env.ValidateSdk() |
3338 | 3343 |
3339 if BROKEN_TEST_COUNT > 0: | 3344 if BROKEN_TEST_COUNT > 0: |
3340 msg = "There are %d broken tests." % BROKEN_TEST_COUNT | 3345 msg = "There are %d broken tests." % BROKEN_TEST_COUNT |
3341 if GetOption('brief_comstr'): | 3346 if GetOption('brief_comstr'): |
3342 msg += " Add --verbose to the command line for more information." | 3347 msg += " Add --verbose to the command line for more information." |
3343 print msg | 3348 print msg |
3344 | 3349 |
3345 # separate warnings from actual build output | 3350 # separate warnings from actual build output |
3346 Banner('B U I L D - O U T P U T:') | 3351 Banner('B U I L D - O U T P U T:') |
OLD | NEW |