OLD | NEW |
(Empty) | |
| 1 # -*- python -*- |
| 2 # Copyright (c) 2013 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 os |
| 7 Import('env') |
| 8 |
| 9 env.ComponentLibrary('cpu_features', |
| 10 ['arch/arm/cpu_arm.c', |
| 11 'arch/mips/cpu_mips.c', |
| 12 'arch/x86/cpu_x86.c', |
| 13 'arch/x86/cpu_xgetbv.S']) |
| 14 |
| 15 if env.Bit('target_x86'): |
| 16 # Create environment for command-line tools and testing, rather than |
| 17 # part of the TCB. Then define compile-time flag that communicates |
| 18 # that we are compiling in the test environment (rather than for the TCB). |
| 19 test_env = env.Clone() |
| 20 test_env.Append(CCFLAGS=['-DNACL_TRUSTED_BUT_NOT_TCB']) |
| 21 |
| 22 cpu_x86_test = test_env.ComponentProgram( |
| 23 'cpu_x86_test', |
| 24 ['arch/x86/cpu_x86_test.c'], |
| 25 EXTRA_LIBS=[ |
| 26 test_env.NaClTargetArchSuffix('ncval_base'), |
| 27 'cpu_features', |
| 28 'platform' |
| 29 ]) |
| 30 |
| 31 node = test_env.CommandTest( |
| 32 'cpu_x86_test.out', |
| 33 [cpu_x86_test]) |
| 34 test_env.AddNodeToTestSuite(node, ['large_tests'], 'run_cpu_x86_test') |
OLD | NEW |