Reviewers: Christian Plesner Hansen, Description: 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. Please review this at http://codereview.chromium.org/200077 SVN Base: http://v8.googlecode.com/svn/branches/bleeding_edge/ Affected files: M tools/test.py Index: tools/test.py =================================================================== --- tools/test.py (revision 2868) +++ tools/test.py (working copy) @@ -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 [email protected] http://groups.google.com/group/v8-dev -~----------~----~----~----~------~----~------~--~---
