this repo has no description
1#!/bin/bash
2set -e
3
4# Test where Go node joins to OCaml node (reverse direction)
5
6echo "Starting OCaml SWIM server..."
7cd /home/gdiazlo/data/src/swim
8timeout 25 ./_build/default/bin/interop_test.exe &
9OCAML_PID=$!
10sleep 2
11
12echo "Starting Go memberlist and joining to OCaml..."
13cd /home/gdiazlo/data/src/swim/interop
14./memberlist-server -name go-node -port 7946 -join "127.0.0.1:7947" &
15GO_PID=$!
16
17# Let them communicate for a while
18sleep 15
19
20echo "Killing processes..."
21kill $GO_PID 2>/dev/null || true
22kill $OCAML_PID 2>/dev/null || true
23wait $GO_PID 2>/dev/null || true
24wait $OCAML_PID 2>/dev/null || true
25
26echo "Done"