210a0fcc7ed1c28f9514542cf61720542c2cb185
[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     'imc_shm_mmap_test',
11     'random_test',
12 ]
13 # These conditionals mirror conditionals in
14 # dynamic_code_loading/nacl.scons.  The dyncode tests don't work with
15 # dynamic linking yet, and they don't build with non-ARM PNaCl.
16 if (nacl_env.Bit('nacl_static_link') and
17     not (nacl_env.Bit('bitcode') and not nacl_env.Bit('target_arm'))):
18   exe_list.append('dynamic_load_test')
19
20   # Dynamic code modification is not implemented for ARM yet.
21   if not nacl_env.Bit('target_arm'):
22     exe_list.append('dynamic_modify_test')
23
24 if nacl_env.Clone().AllowInlineAssembly():
25   exe_list.append('exception_test')
26
27 nacl_env['TESTS_TO_RUN_INBROWSER'] = exe_list