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 # This test is specific to the x86-32 sandbox, and is not portable. | 8 # This test is specific to the x86-32 sandbox, and is not portable. |
9 if not env.Bit('build_x86_32') or not env.AllowInlineAssembly(): | 9 if not env.Bit('build_x86_32') or not env.AllowInlineAssembly(): |
10 Return() | 10 Return() |
11 | 11 |
12 test_prog = env.ComponentProgram( | 12 test_prog = env.ComponentProgram( |
13 'gs_segment_read_only_test', ['gs_segment_test.c'], | 13 'gs_segment_read_only_test', ['gs_segment_test.c'], |
14 EXTRA_LIBS=['${PTHREAD_LIBS}', '${NONIRT_LIBS}']) | 14 EXTRA_LIBS=['${PTHREAD_LIBS}', '${NONIRT_LIBS}']) |
15 | 15 |
16 for subtest in ('gs_segment_read_only_test', | 16 for subtest in ('gs_segment_read_only_test', |
17 'gs_segment_read_only_test_thread', | 17 'gs_segment_read_only_test_thread', |
18 'gs_segment_size_test', | 18 'gs_segment_size_test', |
19 'gs_segment_size_test_thread'): | 19 'gs_segment_size_test_thread'): |
20 node = env.CommandSelLdrTestNacl('%s.out' % subtest, | 20 node = env.CommandSelLdrTestNacl('%s.out' % subtest, |
21 test_prog, [subtest], declares_exit_status=True, | 21 test_prog, [subtest], declares_exit_status=True, |
22 # R-DFA rejects unaligned access to %gs at validation stage | 22 # R-DFA rejects unaligned access to %gs at validation stage |
23 sel_ldr_flags=(['-c'] if env.Bit('validator_ragel') else None)) | 23 sel_ldr_flags=['-c']) |
24 env.AddNodeToTestSuite(node, ['small_tests', 'nonpexe_tests'], | 24 env.AddNodeToTestSuite(node, ['small_tests', 'nonpexe_tests'], |
25 'run_%s' % subtest) | 25 'run_%s' % subtest) |
OLD | NEW |