commit 51162a7cf9960f17e08170bee5e4cc6e54f4d41c parent 936ba978d49c7cf309dd85a8c6b3d79657245402 Author: Henry Unite <unitehenry@gmail.com> Date: Sat, 25 Jul 2026 04:01:32 +0000 test: probe vnc Diffstat:
| A | scripts/probe-vnc | | | 8 | ++++++++ |
1 file changed, 8 insertions(+), 0 deletions(-)
diff --git a/scripts/probe-vnc b/scripts/probe-vnc @@ -0,0 +1,8 @@ +#!/usr/bin/env bash +PROBE_OUTPUT=$(podman run \ + --rm \ + -i \ + --add-host=host.docker.internal:host-gateway \ + alpine sh -c "apk add --no-cache netcat-openbsd >/dev/null 2>&1; nc -w 3 host.docker.internal 5900" | tail -n 1 | tr -d '\r') + +[ "$PROBE_OUTPUT" = "RFB 003.008" ] || { echo "Assertion failed: got '$PROBE_OUTPUT'"; exit 1; }