Ctrl K
ComunidadGuías…

scripts/test-native-session-isolation.sh

Rama main · réplica de lectura del repositorio original.

Archivo original ↗Preguntar a KiBot
#!/usr/bin/env bash
set -euo pipefail
cd "$(dirname "$0")/.."
if [[ "$(id -u)" == 0 ]]; then
  echo 'Native isolation acceptance must run as a non-root user.' >&2
  exit 1
fi
: "${OPENLINKER_TEST_NATIVE_CODEX_BIN:?Set the pinned official Codex executable.}"
: "${OPENLINKER_TEST_NATIVE_CLAUDE_BIN:?Set the pinned official Claude executable.}"
export GOWORK=off
node --test scripts/native-sandbox-runner.test.mjs
native_test_log=$(mktemp)
trap 'rm -f "$native_test_log"' EXIT
go test -race -count=1 -v ./pkg/adapters/sessionsandbox ./pkg/adapters/providerprocess ./pkg/adapters/codexturn ./pkg/adapters ./internal/agentnode | tee "$native_test_log"
grep -q '^--- PASS: TestNativeClaudeMCPAuthenticationInstalledClient ' "$native_test_log"
grep -q '^[[:space:]]*--- PASS: TestNativeClaudeMCPAuthenticationInstalledClient/claude ' "$native_test_log"
if grep -q -- '--- SKIP: TestNativeClaudeMCPAuthenticationInstalledClient' "$native_test_log"; then
  echo 'Claude MCP authentication acceptance must not skip.' >&2
  exit 1
fi