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 608 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
619 'pepper_browser_tests', | 619 'pepper_browser_tests', |
620 # Lightweight browser tests | 620 # Lightweight browser tests |
621 'chrome_browser_tests', | 621 'chrome_browser_tests', |
622 # Tests written using Chrome's PyAuto test jig | 622 # Tests written using Chrome's PyAuto test jig |
623 'pyauto_tests', | 623 'pyauto_tests', |
624 'huge_tests', | 624 'huge_tests', |
625 'memcheck_bot_tests', | 625 'memcheck_bot_tests', |
626 'tsan_bot_tests', | 626 'tsan_bot_tests', |
627 # Special testing environment for testing comparing x86 validators. | 627 # Special testing environment for testing comparing x86 validators. |
628 'ncval_testing', | 628 'ncval_testing', |
| 629 # Environment for validator difference testing |
| 630 'validator_diff_tests', |
629 ]) | 631 ]) |
630 | 632 |
631 # These are the test suites we know exist, but aren't run on a regular basis. | 633 # 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 | 634 # These test suites are essentially shortcuts that run a specific subset of the |
633 # test cases. | 635 # test cases. |
634 ACCEPTABLE_TEST_SUITES = set([ | 636 ACCEPTABLE_TEST_SUITES = set([ |
635 'barebones_tests', | 637 'barebones_tests', |
636 'dynamic_load_tests', | 638 'dynamic_load_tests', |
637 'exception_tests', | 639 'exception_tests', |
638 'exit_status_tests', | 640 'exit_status_tests', |
(...skipping 889 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1528 | 1530 |
1529 pre_base_env.AddMethod(CommandSelLdrTestNacl) | 1531 pre_base_env.AddMethod(CommandSelLdrTestNacl) |
1530 | 1532 |
1531 | 1533 |
1532 TEST_EXTRA_ARGS = ['stdin', 'log_file', | 1534 TEST_EXTRA_ARGS = ['stdin', 'log_file', |
1533 'stdout_golden', 'stderr_golden', 'log_golden', | 1535 'stdout_golden', 'stderr_golden', 'log_golden', |
1534 'filter_regex', 'filter_inverse', 'filter_group_only', | 1536 'filter_regex', 'filter_inverse', 'filter_group_only', |
1535 'osenv', 'arch', 'subarch', 'exit_status', 'track_cmdtime', | 1537 'osenv', 'arch', 'subarch', 'exit_status', 'track_cmdtime', |
1536 'num_runs', 'process_output_single', | 1538 'num_runs', 'process_output_single', |
1537 'process_output_combined', 'using_nacl_signal_handler', | 1539 'process_output_combined', 'using_nacl_signal_handler', |
1538 'declares_exit_status'] | 1540 'declares_exit_status', 'time_warning', 'time_error'] |
1539 | 1541 |
1540 TEST_TIME_THRESHOLD = { | 1542 TEST_TIME_THRESHOLD = { |
1541 'small': 2, | 1543 'small': 2, |
1542 'medium': 10, | 1544 'medium': 10, |
1543 'large': 60, | 1545 'large': 60, |
1544 'huge': 1800, | 1546 'huge': 1800, |
1545 } | 1547 } |
1546 | 1548 |
1547 # Valgrind handles SIGSEGV in a way our testing tools do not expect. | 1549 # Valgrind handles SIGSEGV in a way our testing tools do not expect. |
1548 UNSUPPORTED_VALGRIND_EXIT_STATUS = ['sigabrt', | 1550 UNSUPPORTED_VALGRIND_EXIT_STATUS = ['sigabrt', |
(...skipping 1788 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3337 nacl_env.ValidateSdk() | 3339 nacl_env.ValidateSdk() |
3338 | 3340 |
3339 if BROKEN_TEST_COUNT > 0: | 3341 if BROKEN_TEST_COUNT > 0: |
3340 msg = "There are %d broken tests." % BROKEN_TEST_COUNT | 3342 msg = "There are %d broken tests." % BROKEN_TEST_COUNT |
3341 if GetOption('brief_comstr'): | 3343 if GetOption('brief_comstr'): |
3342 msg += " Add --verbose to the command line for more information." | 3344 msg += " Add --verbose to the command line for more information." |
3343 print msg | 3345 print msg |
3344 | 3346 |
3345 # separate warnings from actual build output | 3347 # separate warnings from actual build output |
3346 Banner('B U I L D - O U T P U T:') | 3348 Banner('B U I L D - O U T P U T:') |
OLD | NEW |