Revision: 2871 Author: sgje...@chromium.org Date: Thu Sep 10 05:59:49 2009 Log: Add option --build-only to the test runner.
This new option is convenient for cross-compilation as actually running the targets build does not make sense. Review URL: http://codereview.chromium.org/200077 http://code.google.com/p/v8/source/detail?r=2871 Modified: /branches/bleeding_edge/tools/test.py ======================================= --- /branches/bleeding_edge/tools/test.py Tue Jul 14 04:39:45 2009 +++ /branches/bleeding_edge/tools/test.py Thu Sep 10 05:59:49 2009 @@ -1084,6 +1084,8 @@ choices=PROGRESS_INDICATORS.keys(), default="mono") result.add_option("--no-build", help="Don't build requirements", default=False, action="store_true") + result.add_option("--build-only", help="Only build requirements, don't run the tests", + default=False, action="store_true") result.add_option("--report", help="Print a summary of the tests to be run", default=False, action="store_true") result.add_option("-s", "--suite", help="A test suite", @@ -1261,6 +1263,10 @@ if not BuildRequirements(context, reqs, options.mode, options.scons_flags): return 1 + # Just return if we are only building the targets for running the tests. + if options.build_only: + return 0 + # Get status for tests sections = [ ] defs = { } --~--~---------~--~----~------------~-------~--~----~ v8-dev mailing list v8-dev@googlegroups.com http://groups.google.com/group/v8-dev -~----------~----~----~----~------~----~------~--~---