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

Unified Diff: SConstruct

Issue 7242011: Get rid of assumptions about ".nexe" extension. (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client/
Patch Set: '' Created 9 years, 6 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 | « no previous file | site_scons/site_tools/component_builders.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: SConstruct
===================================================================
--- SConstruct (revision 5777)
+++ SConstruct (working copy)
@@ -1120,7 +1120,7 @@
def ExtractPublishedFiles(env, target_name):
run_files = ['$STAGING_DIR/' + os.path.basename(published_file.path)
for published_file in env.GetPublished(target_name, 'run')]
- nexe = '$STAGING_DIR/' + target_name
+ nexe = '$STAGING_DIR/%s${PROGSUFFIX}' % target_name
return [env.File(file) for file in run_files + [nexe]]
pre_base_env.AddMethod(ExtractPublishedFiles)
@@ -1443,7 +1443,7 @@
pre_base_env.AddMethod(CommandGdbTestNacl)
-def SelUniversalTest(env, name, command, sel_universal_flags=None, **kwargs):
+def SelUniversalTest(env, name, nexe, sel_universal_flags=None, **kwargs):
# The dynamic linker's ability to receive arguments over IPC at
# startup currently requires it to reject the plugin's first
# connection, but this interferes with the sel_universal-based
@@ -1464,7 +1464,7 @@
node = CommandSelLdrTestNacl(env,
name,
- command,
+ nexe,
loader='sel_universal',
sel_ldr_flags=sel_universal_flags,
**kwargs)
@@ -1505,7 +1505,8 @@
'log_golden' in extra)
# ----------------------------------------------------------
-def CommandSelLdrTestNacl(env, name, command,
+def CommandSelLdrTestNacl(env, name, nexe,
+ args = None,
log_verbosity=2,
sel_ldr_flags=None,
loader='sel_ldr',
@@ -1522,6 +1523,10 @@
env['TRUSTED_ENV'].Bit('windows')):
return []
+ command = [nexe]
+ if args is not None:
+ command += args
+
sel_ldr = GetSelLdr(env, loader);
if not sel_ldr:
print 'WARNING: no sel_ldr found. Skipping test %s' % name
« no previous file with comments | « no previous file | site_scons/site_tools/component_builders.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698