Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1216)

Unified Diff: src/trusted/validator/build.scons

Issue 9535001: Add validation caching interface. (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: More edits Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/trusted/service_runtime/sel_validate_image.c ('k') | src/trusted/validator/ncvalidate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/trusted/validator/build.scons
diff --git a/src/trusted/validator/build.scons b/src/trusted/validator/build.scons
index d8cb9a6146a3df5e0607e03ca89a163e0f2331c7..5da720bfce63a18c1b885c32d94edda34fe6655c 100644
--- a/src/trusted/validator/build.scons
+++ b/src/trusted/validator/build.scons
@@ -15,3 +15,23 @@ lib_env = env.Clone();
lib_env.Append(CPPPATH=['${TARGET_ROOT}'])
lib_env.ComponentLibrary(lib_env.NaClTargetArchSuffix('ncfileutils'),
['ncfileutil.c'])
+
+
+if env.Bit('target_x86'):
+ # TODO(ncbray) support ARM. This will require making validation caching safe
+ # for ARM and embedding ARM binary chunks in the test that can trigger various
+ # validation scenarios.
+ gtest_env = env.MakeGTestEnv()
+ validator_libs = [gtest_env.NaClTargetArchSuffix('ncvalidate')]
+
+ validation_cache_test_exe = gtest_env.ComponentProgram(
+ 'validation_cache_test',
+ ['validation_cache_test.cc'],
+ EXTRA_LIBS=validator_libs)
+
+ node = gtest_env.CommandTest(
+ 'validation_cache_test.out',
+ command=[validation_cache_test_exe])
+
+ env.AddNodeToTestSuite(node, ['small_tests', 'validator_tests'],
+ 'run_validation_cache_test')
« no previous file with comments | « src/trusted/service_runtime/sel_validate_image.c ('k') | src/trusted/validator/ncvalidate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698