Push files required to run a V8 executable. Args: shell_dir: Absolute parent directory of the executable on the host. target_dir: Parent directory of the executable on the device (relative to devices' base dir for testing). binary: Name of the binary to push.
(self, shell_dir, target_dir, binary)
| 130 | self.push_file(host_dir, entry.relative_to(root), target_rel) |
| 131 | |
| 132 | def push_executable(self, shell_dir, target_dir, binary): |
| 133 | """Push files required to run a V8 executable. |
| 134 | |
| 135 | Args: |
| 136 | shell_dir: Absolute parent directory of the executable on the host. |
| 137 | target_dir: Parent directory of the executable on the device (relative to |
| 138 | devices' base dir for testing). |
| 139 | binary: Name of the binary to push. |
| 140 | """ |
| 141 | self.push_file(shell_dir, binary, target_dir) |
| 142 | |
| 143 | # Push external startup data. Backwards compatible for revisions where |
| 144 | # these files didn't exist. Or for bots that don't produce these files. |
| 145 | self.push_file( |
| 146 | shell_dir, |
| 147 | 'natives_blob.bin', |
| 148 | target_dir, |
| 149 | skip_if_missing=True, |
| 150 | ) |
| 151 | self.push_file( |
| 152 | shell_dir, |
| 153 | 'snapshot_blob.bin', |
| 154 | target_dir, |
| 155 | skip_if_missing=True, |
| 156 | ) |
| 157 | self.push_file( |
| 158 | shell_dir, |
| 159 | 'icudtl.dat', |
| 160 | target_dir, |
| 161 | skip_if_missing=True, |
| 162 | ) |
| 163 | |
| 164 | def filter_line(self, line): |
| 165 | for exp in FILTER_LINES_EXPRESSIONS: |