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

Unified Diff: pydir/crosstest_generator.py

Issue 1665263003: Subzero. ARM32. Nonsfi. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Addresses comments. Created 4 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/crosstest.py ('k') | runtime/szrt.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pydir/crosstest_generator.py
diff --git a/pydir/crosstest_generator.py b/pydir/crosstest_generator.py
index 5dbaecba124b51889e6be5fbfbdda488745170cd..8bc8f8d2530d46819fdd675ba55ff215ef4313d2 100755
--- a/pydir/crosstest_generator.py
+++ b/pydir/crosstest_generator.py
@@ -42,6 +42,13 @@ def RunNativePrefix(toolchain_root, target, run_cmd):
prefix = arch_map[target]
return (prefix + ' ' + run_cmd) if prefix else run_cmd
+def NonsfiLoaderArch(target):
+ """Returns the arch for the nonsfi_loader"""
+ arch_map = { 'arm32' : 'arm',
+ 'x8632' : 'x86-32',
+ }
+ return arch_map[target]
+
def main():
"""Framework for cross test generation and execution.
@@ -176,8 +183,11 @@ def main():
if sb == 'sandbox':
run_cmd = '{root}/run.py -q '.format(root=root) + run_cmd
elif sb == 'nonsfi':
- run_cmd = ('{root}/scons-out/opt-linux-x86-32/obj/src/nonsfi/' +
- 'loader/nonsfi_loader ').format(root=root) + run_cmd
+ run_cmd = (
+ '{root}/scons-out/opt-linux-{arch}/obj/src/nonsfi/' +
+ 'loader/nonsfi_loader ').format(
+ root=root, arch=NonsfiLoaderArch(target)) + run_cmd
+ run_cmd = RunNativePrefix(args.toolchain_root, target, run_cmd)
else:
run_cmd = RunNativePrefix(args.toolchain_root, target, run_cmd)
if args.lit:
« no previous file with comments | « pydir/crosstest.py ('k') | runtime/szrt.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698