MCPcopy
hub / github.com/mitmproxy/mitmproxy / _test_binaries

Function _test_binaries

release/build.py:232–245  ·  view source on GitHub ↗
(binary_directory: Path)

Source from the content-addressed store, hash-verified

230
231
232def _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()

Callers 4

standalone_binariesFunction · 0.85
macos_appFunction · 0.85
installbuilder_installerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…