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 20 matching lines...) Expand all Loading... | |
| 31 # property of the .isolate format. This permits to define GYP variables but is | 31 # property of the .isolate format. This permits to define GYP variables but is |
| 32 # a stricter format than GYP so isolate.py can read it. | 32 # a stricter format than GYP so isolate.py can read it. |
| 33 # | 33 # |
| 34 # The generated .isolated file will be: | 34 # The generated .isolated file will be: |
| 35 # <(PRODUCT_DIR)/foo_test.isolated | 35 # <(PRODUCT_DIR)/foo_test.isolated |
| 36 # | 36 # |
| 37 # See http://dev.chromium.org/developers/testing/isolated-testing/for-swes | 37 # See http://dev.chromium.org/developers/testing/isolated-testing/for-swes |
| 38 # for more information. | 38 # for more information. |
| 39 | 39 |
| 40 { | 40 { |
| 41 'includes': [ | |
| 42 '../chrome/version.gypi', | |
| 43 ], | |
| 41 'rules': [ | 44 'rules': [ |
| 42 { | 45 { |
| 43 'rule_name': 'isolate', | 46 'rule_name': 'isolate', |
| 44 'extension': 'isolate', | 47 'extension': 'isolate', |
| 45 'inputs': [ | 48 'inputs': [ |
| 46 # Files that are known to be involved in this step. | 49 # Files that are known to be involved in this step. |
| 47 '<(DEPTH)/tools/swarming_client/isolate.py', | 50 '<(DEPTH)/tools/swarming_client/isolate.py', |
| 48 '<(DEPTH)/tools/swarming_client/run_isolated.py', | 51 '<(DEPTH)/tools/swarming_client/run_isolated.py', |
| 49 | 52 |
| 50 # Disable file tracking by the build driver for now. This means the | 53 # Disable file tracking by the build driver for now. This means the |
| (...skipping 16 matching lines...) Expand all Loading... | |
| 67 '<(DEPTH)/tools/swarming_client/isolate.py', | 70 '<(DEPTH)/tools/swarming_client/isolate.py', |
| 68 '<(test_isolation_mode)', | 71 '<(test_isolation_mode)', |
| 69 # Variables should use the -V FOO=<(FOO) form so frequent values, | 72 # Variables should use the -V FOO=<(FOO) form so frequent values, |
| 70 # like '0' or '1', aren't stripped out by GYP. | 73 # like '0' or '1', aren't stripped out by GYP. |
| 71 '--path-variable', 'PRODUCT_DIR', '<(PRODUCT_DIR) ', | 74 '--path-variable', 'PRODUCT_DIR', '<(PRODUCT_DIR) ', |
| 72 '--config-variable', 'OS=<(OS)', | 75 '--config-variable', 'OS=<(OS)', |
| 73 # TODO(kbr): move this to chrome_tests.gypi:gles2_conform_tests_run | 76 # TODO(kbr): move this to chrome_tests.gypi:gles2_conform_tests_run |
| 74 # once support for user-defined config variables is added. | 77 # once support for user-defined config variables is added. |
| 75 '--config-variable', | 78 '--config-variable', |
| 76 'internal_gles2_conform_tests=<(internal_gles2_conform_tests)', | 79 'internal_gles2_conform_tests=<(internal_gles2_conform_tests)', |
| 80 '--extra-variable', 'version_full=<(version_full)', | |
|
M-A Ruel
2014/01/15 23:29:07
Please update build/android/gtest/setup.py too.
Ken Russell (switch to Gerrit)
2014/01/15 23:46:45
I'll work on updating src/build/android/pylib/gtes
| |
| 77 '--result', '<@(_outputs)', | 81 '--result', '<@(_outputs)', |
| 78 '--isolate', '<(RULE_INPUT_PATH)', | 82 '--isolate', '<(RULE_INPUT_PATH)', |
| 79 ], | 83 ], |
| 80 'conditions': [ | 84 'conditions': [ |
| 81 # Note: When gyp merges lists, it appends them to the old value. | 85 # Note: When gyp merges lists, it appends them to the old value. |
| 82 ['OS=="mac"', { | 86 ['OS=="mac"', { |
| 83 # <(mac_product_name) can contain a space, so don't use FOO=<(FOO) | 87 # <(mac_product_name) can contain a space, so don't use FOO=<(FOO) |
| 84 # form. | 88 # form. |
| 85 'action': [ | 89 'action': [ |
| 86 '--extra-variable', 'mac_product_name', '<(mac_product_name)', | 90 '--extra-variable', 'mac_product_name', '<(mac_product_name)', |
| (...skipping 13 matching lines...) Expand all Loading... | |
| 100 ['test_isolation_fail_on_missing == 0', { | 104 ['test_isolation_fail_on_missing == 0', { |
| 101 'action': ['--ignore_broken_items'], | 105 'action': ['--ignore_broken_items'], |
| 102 }, | 106 }, |
| 103 ], | 107 ], |
| 104 ], | 108 ], |
| 105 | 109 |
| 106 'msvs_cygwin_shell': 0, | 110 'msvs_cygwin_shell': 0, |
| 107 }, | 111 }, |
| 108 ], | 112 ], |
| 109 } | 113 } |
| OLD | NEW |