oficina / equipo Public

Clone
git clone https://amadan.net/oficina/equipo

Plain git — no account needed to clone.

Download

Download this file

1//go:build darwin || testbuild
2
3package thin
4
5import (
6 "strings"
7 "testing"
8
9 "amadan.net/oficina/equipo/internal/runner"
10)
11
12// A Mac's MCP endpoint (equipo-runner tool-proxy) speaks to the CLI and
13// to the step's tool socket exactly as the Linux tool proxy does: every
14// reply in the transcript recorded from the Linux proxy, byte for byte.
15// The shared code is built for darwin or the test build, so this runs on
16// Linux CI too.
17func TestDarwinToolProxySpeaksTheProtocol(t *testing.T) {
18 header, want := readTranscript(t)
19 if !strings.Contains(header, "# Recorded ") || !strings.Contains(header, " on ") {
20 t.Fatalf("the transcript does not say when and where it was recorded:\n%s", header)
21 }
22 sameTranscript(t, playTranscript(t, runner.ServeDarwinToolProxy), want)
23}
24