| 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 ], | 61 ], |
| 62 'outputs': [ | 62 'outputs': [ |
| 63 '<(PRODUCT_DIR)/<(RULE_INPUT_ROOT).isolated', | 63 '<(PRODUCT_DIR)/<(RULE_INPUT_ROOT).isolated', |
| 64 ], | 64 ], |
| 65 'action': [ | 65 'action': [ |
| 66 'python', | 66 'python', |
| 67 '<(DEPTH)/tools/swarming_client/isolate.py', | 67 '<(DEPTH)/tools/swarming_client/isolate.py', |
| 68 '<(test_isolation_mode)', | 68 '<(test_isolation_mode)', |
| 69 # Variables should use the -V FOO=<(FOO) form so frequent values, | 69 # Variables should use the -V FOO=<(FOO) form so frequent values, |
| 70 # like '0' or '1', aren't stripped out by GYP. | 70 # like '0' or '1', aren't stripped out by GYP. |
| 71 # This list needs to be kept in sync with the cmd line options |
| 72 # in src/build/android/pylib/gtest/setup.py. |
| 71 '--path-variable', 'PRODUCT_DIR', '<(PRODUCT_DIR) ', | 73 '--path-variable', 'PRODUCT_DIR', '<(PRODUCT_DIR) ', |
| 72 '--config-variable', 'OS=<(OS)', | 74 '--config-variable', 'OS=<(OS)', |
| 73 # TODO(kbr): move this to chrome_tests.gypi:gles2_conform_tests_run | 75 # TODO(kbr): move this to chrome_tests.gypi:gles2_conform_tests_run |
| 74 # once support for user-defined config variables is added. | 76 # once support for user-defined config variables is added. |
| 75 '--config-variable', | 77 '--config-variable', |
| 76 'internal_gles2_conform_tests=<(internal_gles2_conform_tests)', | 78 'internal_gles2_conform_tests=<(internal_gles2_conform_tests)', |
| 79 '--config-variable', 'icu_use_data_file_flag=<(icu_use_data_file_flag)', |
| 77 '--result', '<@(_outputs)', | 80 '--result', '<@(_outputs)', |
| 78 '--isolate', '<(RULE_INPUT_PATH)', | 81 '--isolate', '<(RULE_INPUT_PATH)', |
| 79 ], | 82 ], |
| 80 'conditions': [ | 83 'conditions': [ |
| 81 # Note: When gyp merges lists, it appends them to the old value. | 84 # Note: When gyp merges lists, it appends them to the old value. |
| 82 ['OS=="mac"', { | 85 ['OS=="mac"', { |
| 83 # <(mac_product_name) can contain a space, so don't use FOO=<(FOO) | 86 # <(mac_product_name) can contain a space, so don't use FOO=<(FOO) |
| 84 # form. | 87 # form. |
| 85 'action': [ | 88 'action': [ |
| 86 '--extra-variable', 'mac_product_name', '<(mac_product_name)', | 89 '--extra-variable', 'mac_product_name', '<(mac_product_name)', |
| (...skipping 13 matching lines...) Expand all Loading... |
| 100 ['test_isolation_fail_on_missing == 0', { | 103 ['test_isolation_fail_on_missing == 0', { |
| 101 'action': ['--ignore_broken_items'], | 104 'action': ['--ignore_broken_items'], |
| 102 }, | 105 }, |
| 103 ], | 106 ], |
| 104 ], | 107 ], |
| 105 | 108 |
| 106 'msvs_cygwin_shell': 0, | 109 'msvs_cygwin_shell': 0, |
| 107 }, | 110 }, |
| 108 ], | 111 ], |
| 109 } | 112 } |
| OLD | NEW |