| Index: src/trusted/validator/caching/build.scons
|
| diff --git a/src/trusted/validator/caching/build.scons b/src/trusted/validator/caching/build.scons
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..a0f8f7ca1abc0e5f4134abbf36fd65a9e6a525c8
|
| --- /dev/null
|
| +++ b/src/trusted/validator/caching/build.scons
|
| @@ -0,0 +1,30 @@
|
| +# -*- python -*-
|
| +# Copyright (c) 2012 The Native Client Authors. All rights reserved.
|
| +# Use of this source code is governed by a BSD-style license that can be
|
| +# found in the LICENSE file.
|
| +
|
| +Import('env')
|
| +
|
| +gtest_env = env.MakeGTestEnv()
|
| +
|
| +if env.Bit('target_x86'):
|
| + validator_libs = [gtest_env.NaClTargetArchSuffix('ncval_base')]
|
| +else:
|
| + validator_libs = ['arm_validator_core']
|
| +
|
| +gtest_env.Append(CPPPATH=[
|
| + '${SCONSTRUCT_DIR}/../third_party/openssl',
|
| + '${SCONSTRUCT_DIR}/../third_party/openssl/openssl/crypto'])
|
| +
|
| +validation_caching_test_exe = gtest_env.ComponentProgram(
|
| + 'validation_caching_test',
|
| + ['validation_caching_test.cc',
|
| + 'validation_signature.cc',
|
| + '${SCONSTRUCT_DIR}/../third_party/openssl/openssl/crypto/sha/sha256.c'],
|
| + EXTRA_LIBS=validator_libs)
|
| +
|
| +node = gtest_env.CommandTest(
|
| + 'validation_caching_test.out',
|
| + command=[validation_caching_test_exe])
|
| +
|
| +env.AddNodeToTestSuite(node, ['small_tests'], 'run_validation_caching_test')
|
|
|