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 | 6 |
7 import os | 7 import os |
8 import sys | 8 import sys |
9 Import('env') | 9 Import('env') |
10 | 10 |
11 # | 11 # |
12 # Build common file handling utilities for all validators. | 12 # Build common file handling utilities for all validators. |
13 # | 13 # |
14 lib_env = env.Clone(); | 14 lib_env = env.Clone(); |
15 lib_env.Append(CPPPATH=['${TARGET_ROOT}']) | 15 lib_env.Append(CPPPATH=['${TARGET_ROOT}']) |
16 lib_env.ComponentLibrary(lib_env.NaClTargetArchSuffix('ncfileutils'), | 16 lib_env.ComponentLibrary(lib_env.NaClTargetArchSuffix('ncfileutils'), |
17 ['ncfileutil.c']) | 17 ['ncfileutil.c']) |
18 | |
19 | |
20 if env.Bit('target_x86'): | |
Mark Seaborn
2012/02/29 21:33:34
Add a TODO for ARM.
Nick Bray (chromium)
2012/02/29 22:58:09
Done.
| |
21 gtest_env = env.MakeGTestEnv() | |
22 validator_libs = [gtest_env.NaClTargetArchSuffix('ncvalidate')] | |
23 | |
24 validation_cache_test_exe = gtest_env.ComponentProgram( | |
25 'validation_cache_test', | |
26 ['validation_cache_test.cc'], | |
27 EXTRA_LIBS=validator_libs) | |
28 | |
29 node = gtest_env.CommandTest( | |
30 'validation_cache_test.out', | |
31 command=[validation_cache_test_exe]) | |
32 | |
33 env.AddNodeToTestSuite(node, ['small_tests', 'validator_tests'], | |
34 'run_validation_cache_test') | |
OLD | NEW |