#!/bin/bash # Test script for ETCP connection establishment with real instances DIR=$(cd "$(dirname "$0")" && pwd) echo "=== ETCP Two-Instance Test ===" echo # Start server instance in background echo "Starting server instance..." $DIR/test_server_only & SERVER_PID=$! sleep 1 # Start client instance echo "Starting client instance..." timeout 10 $DIR/test_server_only 2>&1 # Cleanup kill $SERVER_PID 2>/dev/null wait $SERVER_PID 2>/dev/null echo echo "=== Test completed ==="