# shellcheck shell=bash

build_test_bridge() {
  build_info "Testing gw-bridge.sh..."

  if [[ ! -x "$SCRIPT_DIR/gw-bridge.sh" ]]; then
    build_error "gw-bridge.sh not found or not executable"
    exit 1
  fi

  if "$SCRIPT_DIR/gw-bridge.sh" help >/dev/null 2>&1; then
    build_success "gw-bridge.sh basic test passed"
  else
    build_error "gw-bridge.sh test failed"
    exit 1
  fi
}
