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