(self)
| 624 | return super().build() |
| 625 | |
| 626 | def run_tests(self): |
| 627 | host_arch = _get_machine() |
| 628 | if host_arch == "arm64": |
| 629 | if platform.system() == "Darwin" and self.arch != "arm64": |
| 630 | # MacOS-arm64 doesn't provide a good experience when users |
| 631 | # accidentally try to run x64 tests. |
| 632 | print(f"Running {self.arch} tests on Mac-arm64 isn't going to work.") |
| 633 | return 1 |
| 634 | if platform.system() == "Linux" and "arm" not in self.arch: |
| 635 | # Assume that an arm64 Linux machine may have been set up to run |
| 636 | # arm32 binaries and Android on-device tests; refuse everything else. |
| 637 | print(f"Running {self.arch} tests on Linux-arm64 isn't going to work.") |
| 638 | return 1 |
| 639 | # Special handling for "mkgrokdump": if it was built, run it. |
| 640 | if ("mkgrokdump" in self.targets and self.mode == "release" and |
| 641 | ((host_arch == "x86_64" and self.arch == "x64") or |
| 642 | (host_arch == "arm64" and self.arch == "arm64"))): |
| 643 | mkgrokdump_bin = self.path / "mkgrokdump" |
| 644 | heapconst_output = V8_DIR / "tools" / "v8heapconst.py" |
| 645 | _call(f"{mkgrokdump_bin} > {heapconst_output}") |
| 646 | return super().run_tests() |
| 647 | |
| 648 | |
| 649 | def get_test_binary(argstring): |
nothing calls this directly
no test coverage detected