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