#!/usr/bin/env bash set -x mkdir -p temp_verif/workspace rm -f temp_verif/edge_fifo mkfifo temp_verif/edge_fifo EDGE_OUT="temp_verif/edge_out" NODE_OUT="temp_verif/node_out" # Start edge with FIFO input IOP_EDGE_CONFIG=temp_verif/edge.yaml ./bin/edge.sh < temp_verif/edge_fifo > "$EDGE_OUT" 2>&1 & EDGE_PID=$! exec 3> temp_verif/edge_fifo sleep 2 # Start node IOP_NODE_CONFIG=temp_verif/node.yaml ./bin/node.sh > "$NODE_OUT" 2>&1 & NODE_PID=$! sleep 5 # Send /nodes command echo "/nodes" >&3 sleep 2 # Send first message echo "Convert this token to uppercase and reply with only the converted token: iop_antigravity_one" >&3 # Wait for the authentication/login timeout (which is 30s) plus safety margin sleep 35 # Send second message echo "Convert this token to uppercase and reply with only the converted token: iop_antigravity_two" >&3 # Wait for the authentication/login timeout sleep 35 # Send edge commands echo "/capabilities" >&3 sleep 2 echo "/transport" >&3 sleep 2 echo "/sessions" >&3 sleep 2 echo "/status" >&3 sleep 2 # Exit echo "/exit" >&3 sleep 2 exec 3>&- wait $EDGE_PID || true kill $NODE_PID 2>/dev/null || true echo "=== EDGE OUTPUT ===" cat "$EDGE_OUT" echo "=== NODE OUTPUT ===" cat "$NODE_OUT"