| OLD | NEW |
| 1 # -*- python -*- | 1 # -*- python -*- |
| 2 # Copyright 2010 The Native Client Authors. All rights reserved. | 2 # Copyright 2010 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('env') | 6 Import('env') |
| 7 | 7 |
| 8 # tests in this directory contain (inline) assembler | 8 # tests in this directory contain (inline) assembler |
| 9 if env.Bit('bitcode'): | 9 if env.Bit('bitcode'): |
| 10 Return() | 10 Return() |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 else: | 31 else: |
| 32 return 'templates_x86.S' | 32 return 'templates_x86.S' |
| 33 | 33 |
| 34 template_obj = env.ComponentObject(GetTemplate(env)) | 34 template_obj = env.ComponentObject(GetTemplate(env)) |
| 35 | 35 |
| 36 env.ComponentProgram('dynamic_load_test.nexe', | 36 env.ComponentProgram('dynamic_load_test.nexe', |
| 37 ['dynamic_load_test.c', | 37 ['dynamic_load_test.c', |
| 38 template_obj], | 38 template_obj], |
| 39 EXTRA_LIBS=['testrunner', 'srpc', 'pthread']) | 39 EXTRA_LIBS=['testrunner', 'srpc', 'pthread']) |
| 40 | 40 |
| 41 # Uncomment once the toolchain gets the new syscalls: | 41 env.ComponentProgram('dynamic_modify_test.nexe', |
| 42 #env.ComponentProgram('dynamic_modify_test.nexe', | 42 ['dynamic_modify_test.c', |
| 43 # ['dynamic_modify_test.c', | 43 template_obj], |
| 44 # template_obj]) | 44 EXTRA_LIBS=['testrunner', 'srpc', 'pthread']) |
| 45 | 45 |
| 46 env.ComponentProgram('write_to_dyncode.nexe', | 46 env.ComponentProgram('write_to_dyncode.nexe', |
| 47 ['write_to_dyncode.c']) | 47 ['write_to_dyncode.c']) |
| 48 | 48 |
| 49 env.ComponentProgram('dyncode_disabled_test.nexe', | 49 env.ComponentProgram('dyncode_disabled_test.nexe', |
| 50 ['dyncode_disabled_test.c']) | 50 ['dyncode_disabled_test.c']) |
| 51 | 51 |
| 52 env.ComponentProgram('debug_mode_test.nexe', | 52 env.ComponentProgram('debug_mode_test.nexe', |
| 53 ['debug_mode_test.c', | 53 ['debug_mode_test.c', |
| 54 template_obj]) | 54 template_obj]) |
| (...skipping 18 matching lines...) Expand all Loading... |
| 73 'dyncode_disabled_test.out', | 73 'dyncode_disabled_test.out', |
| 74 command=[env.File('dyncode_disabled_test.nexe')], | 74 command=[env.File('dyncode_disabled_test.nexe')], |
| 75 osenv='NACL_DISABLE_DYNAMIC_LOADING=1', | 75 osenv='NACL_DISABLE_DYNAMIC_LOADING=1', |
| 76 ), | 76 ), |
| 77 env.CommandSelLdrTestNacl( | 77 env.CommandSelLdrTestNacl( |
| 78 'debug_mode_test.out', | 78 'debug_mode_test.out', |
| 79 # NOTE: the data we are loading does not pass the validator | 79 # NOTE: the data we are loading does not pass the validator |
| 80 sel_ldr_flags=["-c"], | 80 sel_ldr_flags=["-c"], |
| 81 command=[env.File('debug_mode_test.nexe')], | 81 command=[env.File('debug_mode_test.nexe')], |
| 82 ), | 82 ), |
| 83 # Uncomment once the toolchain gets the new syscalls: | 83 env.CommandSelLdrTestNacl( |
| 84 # env.CommandSelLdrTestNacl( | 84 'dynamic_modify_test_disabled.out', |
| 85 # 'dynamic_modify_test_disabled.out', | 85 command=[env.File('dynamic_modify_test.nexe')], |
| 86 # command=[env.File('dynamic_modify_test.nexe')], | 86 osenv='NACL_SRPC_STANDALONE=1', |
| 87 # ), | 87 ), |
| 88 # env.CommandSelLdrTestNacl( | 88 env.CommandSelLdrTestNacl( |
| 89 # 'dynamic_modify_test_enabled.out', | 89 'dynamic_modify_test_enabled.out', |
| 90 # command=[env.File('dynamic_modify_test.nexe')], | 90 command=[env.File('dynamic_modify_test.nexe')], |
| 91 # osenv='NACL_ALLOW_DYNCODE_REPLACEMENT=1', | 91 osenv='NACL_ALLOW_DYNCODE_REPLACEMENT=1,NACL_SRPC_STANDALONE=1', |
| 92 # ), | 92 ), |
| 93 ] | 93 ] |
| 94 | 94 |
| 95 # TODO(kcc): non-standard linking options confuse Valgrind debug info reader. | 95 # TODO(kcc): non-standard linking options confuse Valgrind debug info reader. |
| 96 if not env.IsRunningUnderValgrind(): | 96 if not env.IsRunningUnderValgrind(): |
| 97 env.AddNodeToTestSuite(tests, | 97 env.AddNodeToTestSuite(tests, |
| 98 ['small_tests', 'sel_ldr_tests'], | 98 ['small_tests', 'sel_ldr_tests'], |
| 99 'run_dynamic_load_test') | 99 'run_dynamic_load_test') |
| OLD | NEW |