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

Unified Diff: pnacl/driver/tests/build.scons

Issue 12459004: Adjust pnacl-translate sbtc flag override mechanism to append. (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: do cpu check Created 7 years, 9 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 | « pnacl/driver/pnacl-translate.py ('k') | pnacl/driver/tests/driver_test_utils.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pnacl/driver/tests/build.scons
diff --git a/pnacl/driver/tests/build.scons b/pnacl/driver/tests/build.scons
index 0df539496a3e3fd250881c0499125484f37ebdf5..5965a7ca245ab2eeb5554fa94671ab040492d1bf 100644
--- a/pnacl/driver/tests/build.scons
+++ b/pnacl/driver/tests/build.scons
@@ -6,9 +6,24 @@
Import('env')
+# Depends on the opt-host version of sel_ldr and sel_universal.
+if 'TRUSTED_ENV' not in env or env['OPTIMIZATION_LEVEL'] == 'dbg':
+ Return()
+
+sel_universal = env['TRUSTED_ENV'].File(
+ '${STAGING_DIR}/${PROGPREFIX}sel_universal${PROGSUFFIX}')
+sel_ldr = env.GetSelLdr()
+
node = env.CommandTest('pnacl_driver_tests.out',
command=['${PYTHON}',
- env.File('driver_tests.py')],
+ env.File('driver_tests.py'),
+ '--platform=' + env.GetPlatform()],
direct_emulation=False)
env.AddNodeToTestSuite(node, ['small_tests'], 'run_pnacl_driver_tests')
+# The pnacl-translate driver does a sanity check that sel_ldr and
+# sel_universal are built when '--pnacl-sb' is specified.
+# We may also want it to run the sandboxed translator all the way through
+# to check if the sandboxed LLC got the right input.
+env.Depends(node, sel_ldr)
+env.Depends(node, sel_universal)
« no previous file with comments | « pnacl/driver/pnacl-translate.py ('k') | pnacl/driver/tests/driver_test_utils.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698