Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / native_client / tests / inbrowser_test_runner / selection.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(['nacl_env'])
7
8 # Select the set of tests to run through inbrowser_test_runner.
9 exe_list = [
10     'random_test',
11 ]
12 # These conditionals mirror conditionals in
13 # dynamic_code_loading/nacl.scons.  The dyncode tests don't work with
14 # dynamic linking yet, and they don't build with non-ARM PNaCl.
15 if (nacl_env.Bit('nacl_static_link') and
16     not (nacl_env.Bit('bitcode') and not nacl_env.Bit('target_arm'))):
17   exe_list.append('dynamic_load_test')
18
19   # Dynamic code modification is not implemented for ARM yet.
20   if not nacl_env.Bit('target_arm'):
21     exe_list.append('dynamic_modify_test')
22
23 if nacl_env.Clone().AllowInlineAssembly():
24   exe_list.append('exception_test')
25
26 nacl_env['TESTS_TO_RUN_INBROWSER'] = exe_list