#!/usr/bin/env bash
set -eu
# Place agent.mjs and fault-hook.mjs in ACP_PROOF_ROOT and the scenario in scripts/scenarios.
: "${ACP_PROOF_ROOT:?Set to the directory containing the downloaded ACP driver and fault hook}"
export T3CODE_DEV_SEED=0
export NODE_OPTIONS="--import=$ACP_PROOF_ROOT/fault-hook.mjs"
export T3_SCENARIO_INHERIT_ENV='ACP_PROOF_ROOT,NODE_OPTIONS,T3CODE_DEV_SEED'
vp run scenarios:prove scripts/scenarios/acp-disconnect-retry.e2e.ts \
  --base f0495f741757c0103ed6995621111aec231a526b \
  --head 0edc25157ee518dd6e5d4f7b6f0418af4a709fa4 \
  --upload-command 'ghdrop upload'
