- add third_party src.
[platform/framework/web/crosswalk.git] / src / native_client / tests / tls_segment_x86_32 / nacl.scons
1 # -*- python -*-
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
4 # found in the LICENSE file.
5
6 Import('env')
7
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():
10   Return()
11
12 test_prog = env.ComponentProgram(
13     'gs_segment_read_only_test', ['gs_segment_test.c'],
14     EXTRA_LIBS=['${PTHREAD_LIBS}', '${NONIRT_LIBS}'])
15
16 for subtest in ('gs_segment_read_only_test',
17                 'gs_segment_read_only_test_thread',
18                 'gs_segment_size_test',
19                 'gs_segment_size_test_thread'):
20   node = env.CommandSelLdrTestNacl('%s.out' % subtest,
21       test_prog, [subtest], declares_exit_status=True,
22       # R-DFA rejects unaligned access to %gs at validation stage
23       sel_ldr_flags=(['-c'] if env.Bit('validator_ragel') else None))
24   env.AddNodeToTestSuite(node, ['small_tests', 'nonpexe_tests'],
25                          'run_%s' % subtest)