(binary_directory: Path)
| 230 | |
| 231 | |
| 232 | def _test_binaries(binary_directory: Path) -> None: |
| 233 | for tool in ["mitmproxy", "mitmdump", "mitmweb"]: |
| 234 | executable = binary_directory / tool |
| 235 | if platform.system() == "Windows": |
| 236 | executable = executable.with_suffix(".exe") |
| 237 | |
| 238 | print(f"> {tool} --version") |
| 239 | subprocess.check_call([executable, "--version"]) |
| 240 | |
| 241 | if tool == "mitmproxy": |
| 242 | continue # requires a TTY, which we don't have here. |
| 243 | |
| 244 | print(f"> {tool} -s selftest.py") |
| 245 | subprocess.check_call([executable, "-s", here / "selftest.py"]) |
| 246 | |
| 247 | |
| 248 | @cli.command() |
no outgoing calls
no test coverage detected
searching dependent graphs…