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('env') | 6 Import('env') |
7 | 7 |
8 if 'TRUSTED_ENV' not in env: | 8 if 'TRUSTED_ENV' not in env: |
9 Return() | 9 Return() |
10 | 10 |
(...skipping 27 matching lines...) Expand all Loading... | |
38 stubout_tool = env['TRUSTED_ENV'].File( | 38 stubout_tool = env['TRUSTED_ENV'].File( |
39 '${STAGING_DIR}/${PROGPREFIX}ncval_stubout${PROGSUFFIX}') | 39 '${STAGING_DIR}/${PROGPREFIX}ncval_stubout${PROGSUFFIX}') |
40 | 40 |
41 partly_invalid_nexe = env.ComponentProgram('partly_invalid', 'partly_invalid.c', | 41 partly_invalid_nexe = env.ComponentProgram('partly_invalid', 'partly_invalid.c', |
42 EXTRA_LIBS=['${NONIRT_LIBS}']) | 42 EXTRA_LIBS=['${NONIRT_LIBS}']) |
43 | 43 |
44 | 44 |
45 # R-DFA does not support stubout mode but we need to create at least file | 45 # R-DFA does not support stubout mode but we need to create at least file |
46 # partly_invalid.nexe used in PPAPI tests thus we first create a rule for | 46 # partly_invalid.nexe used in PPAPI tests thus we first create a rule for |
47 # this file and only then bail out. | 47 # this file and only then bail out. |
48 if env.Bit('validator_ragel'): | 48 # TODO(shyamsundarr): given that neither arm not x86 support stubout mode |
49 # and mips tests aren't run on bots, investigate deleting. | |
50 if env.Bit('build_x86'): | |
Mark Seaborn
2014/10/06 17:47:55
This disables the rest of the file on both x86 and
shyamsundarr
2014/10/06 23:06:57
Done here for now but i will break it out if i spl
| |
49 Return() | 51 Return() |
50 | 52 |
51 partly_invalid_stubout_nexe = env.File('partly_invalid_stubout${PROGSUFFIX}') | 53 partly_invalid_stubout_nexe = env.File('partly_invalid_stubout${PROGSUFFIX}') |
52 | 54 |
53 node = env.Command( | 55 node = env.Command( |
54 target=partly_invalid_stubout_nexe, | 56 target=partly_invalid_stubout_nexe, |
55 source=[stubout_tool, partly_invalid_nexe], | 57 source=[stubout_tool, partly_invalid_nexe], |
56 action=[Action('${SOURCES[0]} ${SOURCES[1]} -o $TARGET')]) | 58 action=[Action('${SOURCES[0]} ${SOURCES[1]} -o $TARGET')]) |
57 # This alias is to ensure this test works with built_elsewhere=1, | 59 # This alias is to ensure this test works with built_elsewhere=1, |
58 # because with that option CommandSelLdrTestNacl() assumes all its | 60 # because with that option CommandSelLdrTestNacl() assumes all its |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
108 # offline should be equivalent to using sel_ldr's "-s" option. | 110 # offline should be equivalent to using sel_ldr's "-s" option. |
109 # This tool exists only for x86. | 111 # This tool exists only for x86. |
110 node = env.CommandSelLdrTestNacl( | 112 node = env.CommandSelLdrTestNacl( |
111 'partly_invalid_stubout.out', | 113 'partly_invalid_stubout.out', |
112 partly_invalid_stubout_nexe, | 114 partly_invalid_stubout_nexe, |
113 stdout_golden=env.File('with_stubout.stdout'), | 115 stdout_golden=env.File('with_stubout.stdout'), |
114 exit_status='untrusted_sigsegv') | 116 exit_status='untrusted_sigsegv') |
115 env.AddNodeToTestSuite(node, test_suites, 'run_offline_stubout_test', | 117 env.AddNodeToTestSuite(node, test_suites, 'run_offline_stubout_test', |
116 is_broken=(env.Bit('target_mips32') or | 118 is_broken=(env.Bit('target_mips32') or |
117 testing_on_asan_or_valgrind)) | 119 testing_on_asan_or_valgrind)) |
OLD | NEW |