| OLD | NEW |
| 1 # -*- python -*- | 1 # -*- python -*- |
| 2 # Copyright 2008 The Native Client Authors. All rights reserved. | 2 # Copyright 2008 The Native Client Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can | 3 # Use of this source code is governed by a BSD-style license that can |
| 4 # be found in the LICENSE file. | 4 # be found in the LICENSE file. |
| 5 | 5 |
| 6 import atexit | 6 import atexit |
| 7 import glob | 7 import glob |
| 8 import os | 8 import os |
| 9 import stat | 9 import stat |
| 10 import subprocess | 10 import subprocess |
| (...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 357 TEST_SUITES[s] = None | 357 TEST_SUITES[s] = None |
| 358 env.Alias(s, node) | 358 env.Alias(s, node) |
| 359 if node_name: | 359 if node_name: |
| 360 env.ComponentTestOutput(node_name, node) | 360 env.ComponentTestOutput(node_name, node) |
| 361 | 361 |
| 362 pre_base_env.AddMethod(AddNodeToTestSuite) | 362 pre_base_env.AddMethod(AddNodeToTestSuite) |
| 363 | 363 |
| 364 # ---------------------------------------------------------- | 364 # ---------------------------------------------------------- |
| 365 # Convenient testing aliases | 365 # Convenient testing aliases |
| 366 # NOTE: work around for scons non-determinism in the following two lines | 366 # NOTE: work around for scons non-determinism in the following two lines |
| 367 Alias('small_tests', []) | 367 Alias('sel_ldr_sled_tests', []) |
| 368 |
| 369 Alias('small_tests', [ 'sel_ldr_sled_tests' ]) |
| 368 Alias('medium_tests', []) | 370 Alias('medium_tests', []) |
| 369 Alias('large_tests', []) | 371 Alias('large_tests', []) |
| 370 Alias('browser_tests', []) | 372 Alias('browser_tests', []) |
| 371 | 373 |
| 372 Alias('unit_tests', 'small_tests') | 374 Alias('unit_tests', 'small_tests') |
| 373 Alias('smoke_tests', ['small_tests', 'medium_tests']) | 375 Alias('smoke_tests', ['small_tests', 'medium_tests']) |
| 374 | 376 |
| 375 Alias('memcheck_bot_tests', ['small_tests', 'medium_tests', 'large_tests']) | 377 Alias('memcheck_bot_tests', ['small_tests', 'medium_tests', 'large_tests']) |
| 376 Alias('tsan_bot_tests', []) | 378 Alias('tsan_bot_tests', []) |
| 377 | 379 |
| (...skipping 1196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1574 nacl_env['LINKCOM'] += '&& $PYTHON -c "import os; import sys;\ | 1576 nacl_env['LINKCOM'] += '&& $PYTHON -c "import os; import sys;\ |
| 1575 print(sys.argv[1] + sys.argv[2] + \ | 1577 print(sys.argv[1] + sys.argv[2] + \ |
| 1576 str(os.stat(sys.argv[1])[6]) + sys.argv[3])" \ | 1578 str(os.stat(sys.argv[1])[6]) + sys.argv[3])" \ |
| 1577 $TARGET " is " " bytes"' | 1579 $TARGET " is " " bytes"' |
| 1578 | 1580 |
| 1579 environment_list.append(nacl_env) | 1581 environment_list.append(nacl_env) |
| 1580 | 1582 |
| 1581 nacl_env.Append( | 1583 nacl_env.Append( |
| 1582 BUILD_SCONSCRIPTS = [ | 1584 BUILD_SCONSCRIPTS = [ |
| 1583 #### ALPHABETICALLY SORTED #### | 1585 #### ALPHABETICALLY SORTED #### |
| 1586 'src/trusted/service_runtime/nacl.scons', |
| 1584 'tests/app_lib/nacl.scons', | 1587 'tests/app_lib/nacl.scons', |
| 1585 'tests/autoloader/nacl.scons', | 1588 'tests/autoloader/nacl.scons', |
| 1586 'tests/barebones/nacl.scons', | 1589 'tests/barebones/nacl.scons', |
| 1587 'tests/bundle_size/nacl.scons', | 1590 'tests/bundle_size/nacl.scons', |
| 1588 'tests/contest_issues/nacl.scons', | 1591 'tests/contest_issues/nacl.scons', |
| 1589 'tests/data_not_executable/nacl.scons', | 1592 'tests/data_not_executable/nacl.scons', |
| 1590 'tests/dynamic_code_loading/nacl.scons', | 1593 'tests/dynamic_code_loading/nacl.scons', |
| 1591 'tests/egyptian_cotton/nacl.scons', | 1594 'tests/egyptian_cotton/nacl.scons', |
| 1592 'tests/environment_variables/nacl.scons', | 1595 'tests/environment_variables/nacl.scons', |
| 1593 'tests/fake_browser/nacl.scons', | 1596 'tests/fake_browser/nacl.scons', |
| (...skipping 547 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2141 | 2144 |
| 2142 # Note: BuildEnvironments calls FilterEnvironments internally. | 2145 # Note: BuildEnvironments calls FilterEnvironments internally. |
| 2143 # Passing environment_list is OK | 2146 # Passing environment_list is OK |
| 2144 BuildEnvironments(environment_list) | 2147 BuildEnvironments(environment_list) |
| 2145 | 2148 |
| 2146 # Change default to build everything, but not run tests. | 2149 # Change default to build everything, but not run tests. |
| 2147 Default(['all_programs', 'all_bundles', 'all_test_programs', 'all_libraries']) | 2150 Default(['all_programs', 'all_bundles', 'all_test_programs', 'all_libraries']) |
| 2148 | 2151 |
| 2149 # separate warnings from actual build output | 2152 # separate warnings from actual build output |
| 2150 Banner('B U I L D - O U T P U T:') | 2153 Banner('B U I L D - O U T P U T:') |
| OLD | NEW |