Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 # This file is meant to be included into a target to provide a rule | 5 # This file is meant to be included into a target to provide a rule |
| 6 # to "build" .isolate files into a .isolated file. | 6 # to "build" .isolate files into a .isolated file. |
| 7 # | 7 # |
| 8 # To use this, create a gyp target with the following form: | 8 # To use this, create a gyp target with the following form: |
| 9 # 'conditions': [ | 9 # 'conditions': [ |
| 10 # ['test_isolation_mode != "noop"', { | 10 # ['test_isolation_mode != "noop"', { |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 48 # More importantly, it means that even if a isolate_dependency_tracked | 48 # More importantly, it means that even if a isolate_dependency_tracked |
| 49 # file is missing, for example if a file was deleted and the .isolate | 49 # file is missing, for example if a file was deleted and the .isolate |
| 50 # file was not updated, that won't break the build, especially in the | 50 # file was not updated, that won't break the build, especially in the |
| 51 # case where foo_tests_run is not built! This should be reenabled once | 51 # case where foo_tests_run is not built! This should be reenabled once |
| 52 # the switch-over to running tests on Swarm is completed. | 52 # the switch-over to running tests on Swarm is completed. |
| 53 #'<@(isolate_dependency_tracked)', | 53 #'<@(isolate_dependency_tracked)', |
| 54 ], | 54 ], |
| 55 'outputs': [ | 55 'outputs': [ |
| 56 '<(PRODUCT_DIR)/<(RULE_INPUT_ROOT).isolated', | 56 '<(PRODUCT_DIR)/<(RULE_INPUT_ROOT).isolated', |
| 57 ], | 57 ], |
| 58 'action': [ | |
| 59 'python', | |
| 60 '<(DEPTH)/tools/swarm_client/isolate.py', | |
| 61 '<(test_isolation_mode)', | |
| 62 '--outdir', '<(test_isolation_outdir)', | |
| 63 '--variable', 'PRODUCT_DIR', '<(PRODUCT_DIR)', | |
| 64 '--variable', 'OS', '<(OS)', | |
| 65 '--variable', 'chromeos', '<(chromeos)', | |
| 66 '--result', '<@(_outputs)', | |
| 67 '--isolate', '<(RULE_INPUT_PATH)', | |
| 68 ], | |
| 69 'conditions': [ | 58 'conditions': [ |
| 70 ["test_isolation_outdir!=''", { | 59 ["test_isolation_outdir==''", { |
|
M-A Ruel
2013/03/13 19:20:01
changed to be more explicit.
| |
| 71 'action': [ | 60 'action': [ |
| 72 '--outdir', '<(PRODUCT_DIR)/<(test_isolation_outdir)', | 61 'python', |
| 62 '<(DEPTH)/tools/swarm_client/isolate.py', | |
| 63 '<(test_isolation_mode)', | |
| 64 '--outdir', '<(PRODUCT_DIR)', | |
| 65 '--variable', 'PRODUCT_DIR', '<(PRODUCT_DIR)', | |
| 66 '--variable', 'OS', '<(OS)', | |
| 67 '--variable', 'chromeos', '<(chromeos)', | |
| 68 '--result', '<@(_outputs)', | |
| 69 '--isolate', '<(RULE_INPUT_PATH)', | |
| 70 ], | |
| 71 }, { | |
| 72 'action': [ | |
| 73 'python', | |
| 74 '<(DEPTH)/tools/swarm_client/isolate.py', | |
| 75 '<(test_isolation_mode)', | |
| 76 '--outdir', '<(test_isolation_outdir)', | |
| 77 '--variable', 'PRODUCT_DIR', '<(PRODUCT_DIR)', | |
| 78 '--variable', 'OS', '<(OS)', | |
| 79 '--variable', 'chromeos', '<(chromeos)', | |
| 80 '--result', '<@(_outputs)', | |
| 81 '--isolate', '<(RULE_INPUT_PATH)', | |
| 73 ], | 82 ], |
| 74 }], | 83 }], |
| 75 ['test_isolation_fail_on_missing == 0', { | 84 ['test_isolation_fail_on_missing == 0', { |
| 76 'action': ['--ignore_broken_items'] | 85 'action': ['--ignore_broken_items'] |
| 77 }, | 86 }, |
| 78 ], | 87 ], |
| 79 ], | 88 ], |
| 80 'msvs_cygwin_shell': 0, | 89 'msvs_cygwin_shell': 0, |
| 81 }, | 90 }, |
| 82 ], | 91 ], |
| 83 } | 92 } |
| OLD | NEW |