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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 62 # the switch-over to running tests on Swarm is completed. | 62 # the switch-over to running tests on Swarm is completed. |
| 63 #'<@(isolate_dependency_tracked)', | 63 #'<@(isolate_dependency_tracked)', |
| 64 ], | 64 ], |
| 65 'outputs': [ | 65 'outputs': [ |
| 66 '<(PRODUCT_DIR)/<(RULE_INPUT_ROOT).isolated', | 66 '<(PRODUCT_DIR)/<(RULE_INPUT_ROOT).isolated', |
| 67 ], | 67 ], |
| 68 'action': [ | 68 'action': [ |
| 69 'python', | 69 'python', |
| 70 '<(DEPTH)/tools/swarming_client/isolate.py', | 70 '<(DEPTH)/tools/swarming_client/isolate.py', |
| 71 '<(test_isolation_mode)', | 71 '<(test_isolation_mode)', |
| 72 '--result', '<@(_outputs)', | |
| 73 '--isolate', '<(RULE_INPUT_PATH)', | |
| 74 | |
| 72 # Variables should use the -V FOO=<(FOO) form so frequent values, | 75 # Variables should use the -V FOO=<(FOO) form so frequent values, |
|
M-A Ruel
2014/01/21 17:53:56
Try to increase the maintainability of this file b
| |
| 73 # like '0' or '1', aren't stripped out by GYP. | 76 # like '0' or '1', aren't stripped out by GYP. Run 'isolate.py help' for |
| 74 » # This list needs to be kept in sync with the cmd line options | 77 # more details. |
| 75 » # in src/build/android/pylib/gtest/setup.py. | 78 # |
| 79 # This list needs to be kept in sync with the cmd line options | |
| 80 # in src/build/android/pylib/gtest/setup.py. | |
| 81 | |
| 82 # Path variables are used to replace file paths when loading a .isolate | |
| 83 # file | |
| 76 '--path-variable', 'PRODUCT_DIR', '<(PRODUCT_DIR) ', | 84 '--path-variable', 'PRODUCT_DIR', '<(PRODUCT_DIR) ', |
| 85 | |
| 86 # Extra variables are replaced on the 'command' entry and on paths in | |
| 87 # the .isolate file but are not considered relative paths. | |
| 88 '--extra-variable', 'version_full=<(version_full)', | |
| 89 | |
| 77 '--config-variable', 'OS=<(OS)', | 90 '--config-variable', 'OS=<(OS)', |
| 91 '--config-variable', 'component=<(component)', | |
| 78 # TODO(kbr): move this to chrome_tests.gypi:gles2_conform_tests_run | 92 # TODO(kbr): move this to chrome_tests.gypi:gles2_conform_tests_run |
| 79 # once support for user-defined config variables is added. | 93 # once support for user-defined config variables is added. |
| 80 '--config-variable', | 94 '--config-variable', |
| 81 'internal_gles2_conform_tests=<(internal_gles2_conform_tests)', | 95 'internal_gles2_conform_tests=<(internal_gles2_conform_tests)', |
| 82 '--config-variable', 'icu_use_data_file_flag=<(icu_use_data_file_flag)', | 96 '--config-variable', 'icu_use_data_file_flag=<(icu_use_data_file_flag)', |
| 83 '--extra-variable', 'version_full=<(version_full)', | 97 '--config-variable', 'use_openssl=<(use_openssl)', |
| 84 '--result', '<@(_outputs)', | 98 # TODO(maruel): This variable is defined in build/linux/system.gyp which |
| 85 '--isolate', '<(RULE_INPUT_PATH)', | 99 # is not available on other OSes. |
| 100 #'--config-variable', 'use_system_ssl=<(use_system_ssl)', | |
|
Ryan Sleevi
2014/01/21 19:43:50
Filed http://crbug.com/336511 - this isn't somethi
| |
| 86 ], | 101 ], |
| 87 'conditions': [ | 102 'conditions': [ |
| 88 # Note: When gyp merges lists, it appends them to the old value. | 103 # Note: When gyp merges lists, it appends them to the old value. |
| 89 ['OS=="mac"', { | 104 ['OS=="mac"', { |
| 90 # <(mac_product_name) can contain a space, so don't use FOO=<(FOO) | 105 # <(mac_product_name) can contain a space, so don't use FOO=<(FOO) |
| 91 # form. | 106 # form. |
| 92 'action': [ | 107 'action': [ |
| 93 '--extra-variable', 'mac_product_name', '<(mac_product_name)', | 108 '--extra-variable', 'mac_product_name', '<(mac_product_name)', |
| 94 ], | 109 ], |
| 95 }], | 110 }], |
| (...skipping 11 matching lines...) Expand all Loading... | |
| 107 ['test_isolation_fail_on_missing == 0', { | 122 ['test_isolation_fail_on_missing == 0', { |
| 108 'action': ['--ignore_broken_items'], | 123 'action': ['--ignore_broken_items'], |
| 109 }, | 124 }, |
| 110 ], | 125 ], |
| 111 ], | 126 ], |
| 112 | 127 |
| 113 'msvs_cygwin_shell': 0, | 128 'msvs_cygwin_shell': 0, |
| 114 }, | 129 }, |
| 115 ], | 130 ], |
| 116 } | 131 } |
| OLD | NEW |