this repo has no description
at main 760 B view raw
1#!/bin/bash 2set -e 3 4SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" 5REPO_ROOT="$SCRIPT_DIR/../.." 6 7# Test UDP-only communication (no TCP join) 8# Both nodes start independently, OCaml adds Go to its membership 9# They should then be able to gossip via UDP 10 11echo "Starting Go memberlist server (no join)..." 12cd "$REPO_ROOT/interop" 13./memberlist-server -name go-node -port 7946 & 14GO_PID=$! 15sleep 2 16 17echo "Starting OCaml SWIM client (adds Go node manually)..." 18cd "$REPO_ROOT" 19timeout 20 ./_build/default/bin/interop_test.exe & 20OCAML_PID=$! 21 22# Let them communicate 23sleep 15 24 25echo "Killing processes..." 26kill $GO_PID 2>/dev/null || true 27kill $OCAML_PID 2>/dev/null || true 28wait $GO_PID 2>/dev/null || true 29wait $OCAML_PID 2>/dev/null || true 30 31echo "Done"