OLD | NEW |
1 # -*- python -*- | 1 # -*- python -*- |
2 # Copyright (c) 2011 The Native Client Authors. All rights reserved. | 2 # Copyright (c) 2011 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 platform | 6 import platform |
7 import re # For StripArchFromLDCommand hack. | 7 import re # For StripArchFromLDCommand hack. |
8 import os.path # For getting basenames. | 8 import os.path # For getting basenames. |
9 | 9 |
10 Import('env') | 10 Import('env') |
11 | 11 |
12 # Browser tests for the pnacl translator. | 12 # Browser tests for the pnacl translator. |
13 | 13 |
14 # TODO(jvoung): allow pnacl to reuse normal NaCl browser tests. | 14 # TODO(jvoung): allow pnacl to reuse normal NaCl browser tests. |
15 if not env.Bit('bitcode'): | 15 if not env.Bit('bitcode'): |
16 Return() | 16 Return() |
17 | 17 |
18 # With current scons native lib lookups, we can't build the pexe | |
19 # unless platform=x86-32. | |
20 # http://code.google.com/p/nativeclient/issues/detail?id=2028 | |
21 if not env.Bit('target_x86_32'): | |
22 Return() | |
23 | |
24 #---------------------------------------------------------------------- | 18 #---------------------------------------------------------------------- |
25 # Get list of translator files | 19 # Get list of translator files |
26 | 20 |
27 # Seriously, we need to make up our minds about whether or not we | 21 # Seriously, we need to make up our minds about whether or not we |
28 # want a dash in the ISA string. My vote is for keeping the dash, | 22 # want a dash in the ISA string. My vote is for keeping the dash, |
29 # since that is what the plugin will respond with. | 23 # since that is what the plugin will respond with. |
30 def DashFreeArch(arch): | 24 def DashFreeArch(arch): |
31 return arch.replace('-', '') | 25 return arch.replace('-', '') |
32 | 26 |
33 # Sigh, cases where we use the dash. | 27 # Sigh, cases where we use the dash. |
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
201 args=['--enable_experimental_js']) | 195 args=['--enable_experimental_js']) |
202 | 196 |
203 # Make sure the files are actually staged when this test runs. | 197 # Make sure the files are actually staged when this test runs. |
204 env.Depends(node, replicates_toolchain + replicates_page) | 198 env.Depends(node, replicates_toolchain + replicates_page) |
205 | 199 |
206 bitcode_env.AddNodeToTestSuite(node, | 200 bitcode_env.AddNodeToTestSuite(node, |
207 ['chrome_browser_tests'], | 201 ['chrome_browser_tests'], |
208 'run_pnacl_srpc_hw2_browser_test', | 202 'run_pnacl_srpc_hw2_browser_test', |
209 is_broken=( | 203 is_broken=( |
210 bitcode_env.PPAPIBrowserTesterIsBroken())) | 204 bitcode_env.PPAPIBrowserTesterIsBroken())) |
OLD | NEW |