//go:build darwin || testbuild package thin import ( "strings" "testing" "amadan.net/oficina/equipo/internal/runner" ) // A Mac's MCP endpoint (equipo-runner tool-proxy) speaks to the CLI and // to the step's tool socket exactly as the Linux tool proxy does: every // reply in the transcript recorded from the Linux proxy, byte for byte. // The shared code is built for darwin or the test build, so this runs on // Linux CI too. func TestDarwinToolProxySpeaksTheProtocol(t *testing.T) { header, want := readTranscript(t) if !strings.Contains(header, "# Recorded ") || !strings.Contains(header, " on ") { t.Fatalf("the transcript does not say when and where it was recorded:\n%s", header) } sameTranscript(t, playTranscript(t, runner.ServeDarwinToolProxy), want) }