OLD | NEW |
(Empty) | |
| 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('env') |
| 7 |
| 8 gtest_env = env.MakeGTestEnv() |
| 9 |
| 10 if env.Bit('target_x86'): |
| 11 validator_libs = [gtest_env.NaClTargetArchSuffix('ncval_base')] |
| 12 else: |
| 13 validator_libs = ['arm_validator_core'] |
| 14 |
| 15 gtest_env.Append(CPPPATH=[ |
| 16 '${SCONSTRUCT_DIR}/../third_party/openssl', |
| 17 '${SCONSTRUCT_DIR}/../third_party/openssl/openssl/crypto']) |
| 18 |
| 19 validation_caching_test_exe = gtest_env.ComponentProgram( |
| 20 'validation_caching_test', |
| 21 ['validation_caching_test.cc', |
| 22 'validation_signature.cc', |
| 23 '${SCONSTRUCT_DIR}/../third_party/openssl/openssl/crypto/sha/sha256.c'], |
| 24 EXTRA_LIBS=validator_libs) |
| 25 |
| 26 node = gtest_env.CommandTest( |
| 27 'validation_caching_test.out', |
| 28 command=[validation_caching_test_exe]) |
| 29 |
| 30 env.AddNodeToTestSuite(node, ['small_tests'], 'run_validation_caching_test') |
OLD | NEW |