#!/usr/bin/env bash # --------------------------------------------------------------- # Shared helpers for OPC UA discovery integration tests. # # Source this file from test scripts: # source "$(dirname "$0")/test_helpers.sh" # --------------------------------------------------------------- FAILURES=0 # Waits up to 5 seconds for a process to listen on a TCP port. # Exits immediately if the process dies before the port opens. # # wait_for_port