OLD | NEW |
1 # -*- python -*- | 1 # -*- python -*- |
2 # Copyright (c) 2014 The Native Client Authors. All rights reserved. | 2 # Copyright (c) 2014 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 # Some of the inline assembly constraints in this test aren't supported by |
| 9 # the old version of GCC that the nacl-glibc toolchain uses, so we disable |
| 10 # the test for that case. |
| 11 if (env.Bit('build_x86') and env.AllowInlineAssembly() and |
| 12 not env.Bit('nacl_glibc')): |
| 13 rewrite_nontemporals_nexe = env.ComponentProgram( |
| 14 'rewrite_nontemporals_test', ['rewrite_nontemporals.c'], |
| 15 EXTRA_LIBS=['${NONIRT_LIBS}']) |
| 16 |
| 17 node = env.CommandSelLdrTestNacl( |
| 18 'rewrite_nontemporals_test.out', |
| 19 rewrite_nontemporals_nexe) |
| 20 |
| 21 env.AddNodeToTestSuite(node, |
| 22 ['small_tests', 'nonpexe_tests'], |
| 23 'run_rewrite_nontemporals_test') |
| 24 |
| 25 |
8 # The following test is specific to the x86_64 sandbox, and is not portable. | 26 # The following test is specific to the x86_64 sandbox, and is not portable. |
9 if env.Bit('build_x86_64') and env.AllowInlineAssembly(): | 27 if env.Bit('build_x86_64') and env.AllowInlineAssembly(): |
10 lahf_sahf_nexe = env.ComponentProgram( | 28 lahf_sahf_nexe = env.ComponentProgram( |
11 'lahf_sahf_test', ['lahf_sahf_test.c'], | 29 'lahf_sahf_test', ['lahf_sahf_test.c'], |
12 EXTRA_LIBS=['${NONIRT_LIBS}']) | 30 EXTRA_LIBS=['${NONIRT_LIBS}']) |
13 | 31 |
14 node = env.CommandSelLdrTestNacl( | 32 node = env.CommandSelLdrTestNacl( |
15 'lahf_sahf_test.out', | 33 'lahf_sahf_test.out', |
16 lahf_sahf_nexe) | 34 lahf_sahf_nexe) |
17 | 35 |
18 env.AddNodeToTestSuite(node, | 36 env.AddNodeToTestSuite(node, |
19 ['small_tests', 'nonpexe_tests'], | 37 ['small_tests', 'nonpexe_tests'], |
20 'run_lahf_sahf_test') | 38 'run_lahf_sahf_test') |
OLD | NEW |