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

Unified Diff: pydir/crosstest_generator.py

Issue 1531623007: Add option to force filetype=asm for testing (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Formatting Created 5 years 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
Index: pydir/crosstest_generator.py
diff --git a/pydir/crosstest_generator.py b/pydir/crosstest_generator.py
index ef32a080b677a23a00bffaf450859e2df58a2b0f..9336535582de2f9f425d777b10ad903b26d68040 100755
--- a/pydir/crosstest_generator.py
+++ b/pydir/crosstest_generator.py
@@ -104,6 +104,8 @@ def main():
help='Generate files for lit testing')
argparser.add_argument('--toolchain-root', dest='toolchain_root',
help='Path to toolchain binaries.')
+ argparser.add_argument('--filetype', default=None, dest='filetype',
+ help='File type for compilation {asm, iasm, obj}.')
args = argparser.parse_args()
# Run from the crosstest directory to make it easy to grab inputs.
@@ -149,6 +151,8 @@ def main():
attr=attr)
extra = (tests.get(test, 'flags').split(' ')
if tests.has_option(test, 'flags') else [])
+ if args.filetype:
+ extra += ['--filetype={ftype}'.format(ftype=args.filetype)]
# Generate the compile command.
cmp_cmd = (
['{path}/crosstest.py'.format(path=pypath),

Powered by Google App Engine
This is Rietveld 408576698