diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2012-08-22 15:18:45 -0400 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2012-08-22 15:18:45 -0400 |
commit | f90c9ce0e255e531fee4f07dbe53f0c6c893e700 (patch) | |
tree | a7562df35ce3a399a2f373f79a5fd019d92b0a75 /tools/gyp/gyptest.py | |
parent | 2e1f2b535e91506a128062ead055da0a9447b17e (diff) | |
download | android-node-v8-f90c9ce0e255e531fee4f07dbe53f0c6c893e700.tar.gz android-node-v8-f90c9ce0e255e531fee4f07dbe53f0c6c893e700.tar.bz2 android-node-v8-f90c9ce0e255e531fee4f07dbe53f0c6c893e700.zip |
Upgrade GYP to r1477
Diffstat (limited to 'tools/gyp/gyptest.py')
-rwxr-xr-x | tools/gyp/gyptest.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/tools/gyp/gyptest.py b/tools/gyp/gyptest.py index d9c814f3fa..c84f3d3306 100755 --- a/tools/gyp/gyptest.py +++ b/tools/gyp/gyptest.py @@ -153,6 +153,8 @@ def main(argv=None): help="chdir to the specified directory") parser.add_option("-f", "--format", action="store", default='', help="run tests with the specified formats") + parser.add_option("-G", '--gyp_option', action="append", default=[], + help="Add -G options to the gyp command line") parser.add_option("-l", "--list", action="store_true", help="list available tests and exit") parser.add_option("-n", "--no-exec", action="store_true", @@ -220,8 +222,14 @@ def main(argv=None): if not opts.quiet: sys.stdout.write('TESTGYP_FORMAT=%s\n' % format) + gyp_options = [] + for option in opts.gyp_option: + gyp_options += ['-G', option] + if gyp_options and not opts.quiet: + sys.stdout.write('Extra Gyp options: %s\n' % gyp_options) + for test in tests: - status = cr.run([sys.executable, test], + status = cr.run([sys.executable, test] + gyp_options, stdout=sys.stdout, stderr=sys.stderr) if status == 2: |