Index: tools/gypv8sh.py |
diff --git a/tools/gypv8sh.py b/tools/gypv8sh.py |
index ed47649971083f2d748bd6ea92662dd05236f02d..edb14020cae767bf2954def5acf60a09fdd70b2c 100644 |
--- a/tools/gypv8sh.py |
+++ b/tools/gypv8sh.py |
@@ -7,7 +7,8 @@ |
argument lists and to generate inlinable tests. |
Usage: |
- python tools/gypv8sh.py v8_shell js2webui.js inputfile outputfile |
+ python tools/gypv8sh.py v8_shell mock.js test_api.js js2webui.js \ |
+ inputfile outputfile |
""" |
try: |
@@ -21,17 +22,19 @@ import sys |
def main (): |
parser = optparse.OptionParser() |
- parser.set_usage("%prog v8_shell js2webui.js inputfile outputfile") |
+ parser.set_usage( |
+ "%prog v8_shell mock.js test_api.js js2webui.js inputfile outputfile") |
parser.add_option('-v', '--verbose', action='store_true') |
parser.add_option('-n', '--impotent', action='store_true', |
help="don't execute; just print (as if verbose)") |
(opts, args) = parser.parse_args() |
- if len(args) != 4: |
+ if len(args) != 6: |
parser.error('all arguments are required.') |
- v8_shell, js2webui, inputfile, outputfile = args |
+ v8_shell, mock_js, test_api, js2webui, inputfile, outputfile = args |
arguments = [js2webui, inputfile, os.path.basename(inputfile), outputfile] |
- cmd = [v8_shell, '-e', "arguments=" + json.dumps(arguments), js2webui] |
+ cmd = [v8_shell, '-e', "arguments=" + json.dumps(arguments), mock_js, |
+ test_api, js2webui] |
if opts.verbose or opts.impotent: |
print cmd |
if not opts.impotent: |