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

Unified Diff: pydir/szbuild_spec2k.py

Issue 944333002: Subzero: Update tests and build scripts for sandboxing. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: More code review changes Created 5 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 | « pydir/szbuild.py ('k') | runtime/szrt.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pydir/szbuild_spec2k.py
diff --git a/pydir/szbuild_spec2k.py b/pydir/szbuild_spec2k.py
index 092a8356620495dff4fc7c93cba5f1b7a6754c29..416252553b3a8fe5241bf9607d3d7051e3a3b8fa 100755
--- a/pydir/szbuild_spec2k.py
+++ b/pydir/szbuild_spec2k.py
@@ -14,6 +14,8 @@ def main():
Afterwards, the executables can be run from the
native_client/tests/spec2k/ directory as:
'./run_all.sh RunBenchmarks SetupGccX8632Opt {train|ref} ...'
+ -- or --
+ './run_all.sh RunBenchmarks SetupPnaclX8632Opt {train|ref} ...'
"""
nacl_root = FindBaseNaCl()
# Use the same default ordering as spec2k/run_all.sh.
@@ -31,6 +33,7 @@ def main():
print 'Unknown component{s}: '.format(s='s' if len(bad) > 1 else '') + \
' '.join(x for x in bad)
sys.exit(1)
+ suffix = 'pnacl.opt.x8632' if args.sandbox else 'gcc.opt.x8632'
for comp in args.comps:
name = os.path.splitext(comp)[1] or comp
if name[0] == '.':
@@ -40,8 +43,9 @@ def main():
'{name}.opt.stripped.pexe'
).format(root=nacl_root, comp=comp, name=name),
('{root}/tests/spec2k/{comp}/' +
- '{name}.gcc.opt.x8632'
- ).format(root=nacl_root, comp=comp, name=name))
+ '{name}.{suffix}'
+ ).format(root=nacl_root, comp=comp, name=name,
+ suffix=suffix))
if __name__ == '__main__':
main()
« no previous file with comments | « pydir/szbuild.py ('k') | runtime/szrt.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698