29 lines
1.2 KiB
Bash
Executable File
29 lines
1.2 KiB
Bash
Executable File
#!/bin/sh
|
|
# verify.sh — run the DEX boot GATE against a target's C-Chain RPC endpoint(s).
|
|
#
|
|
# This is the single source of truth for "is this a known-good boot?". boot.sh,
|
|
# reset.sh and upgrade.sh all end by calling it. It is also runnable standalone
|
|
# against a live net for spec verification (non-destructive — read path only).
|
|
#
|
|
# LUX_RPC=http://127.0.0.1:9650/v1/chain/C/rpc ./verify.sh
|
|
# LUX_RPC=ep1,ep2,ep3 LUX_CHAIN_ID=96367 LUX_REQUIRE_FILL=1 ./verify.sh
|
|
#
|
|
# Env (read by dex_e2e_test.go):
|
|
# LUX_RPC comma-separated C-Chain RPC endpoints, one per validator (required)
|
|
# LUX_CHAIN_ID expected EVM chain id (optional assert): 96367/96368/96369/1337
|
|
# LUX_FROM_BLOCK start block for the DEXFill log scan (default 0)
|
|
# LUX_REQUIRE_FILL =1 to fail if no DEXFill log is found (default: marker is enough)
|
|
set -e
|
|
|
|
DIR=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)
|
|
|
|
if [ -z "${LUX_RPC:-}" ]; then
|
|
echo "verify.sh: set LUX_RPC to one or more comma-separated C-Chain RPC endpoints" >&2
|
|
exit 2
|
|
fi
|
|
|
|
# GOWORK=off: the harness module is stdlib-only and must not be dragged into a
|
|
# parent go.work. -count=1 disables the test cache so the gate always re-runs.
|
|
cd "$DIR"
|
|
GOWORK=off GOFLAGS=-mod=mod go test -run TestDEXBootSpec -count=1 -v .
|