test(cli): let the ACP subprocess suites start another binary

OPENCODE_ACP_TEST_BIN runs the same suites against the Rust client (C.11).
This commit is contained in:
Simon Klee
2026-11-05 00:08:36 +01:00
Unverified
parent 82cb5f8b4c
commit 3564425e76
+3 -1
View File
@@ -186,7 +186,9 @@ function verifierConfig(llmUrl: string) {
}
function spawnAcp(input: { readonly env: Record<string, string | undefined> }): AcpProcess {
const child = Bun.spawn([process.execPath, "run", "src/index.ts", "acp"], {
// OPENCODE_ACP_TEST_BIN runs the suites against another ACP binary, such as the Rust client.
const override = process.env.OPENCODE_ACP_TEST_BIN
const child = Bun.spawn(override ? [override, "acp"] : [process.execPath, "run", "src/index.ts", "acp"], {
cwd: path.join(import.meta.dir, "../.."),
env: input.env,
stdin: "pipe",