summaryrefslogtreecommitdiff
path: root/test/scripts/light-system-test-stop.sh
blob: aef9c76b5db7998f2ba5ff5e2a6eeab714c4bf93 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh

set -o nounset
set -o errexit

top_srcdir=$(cd $(dirname $0)/../..; pwd)

. ${top_srcdir}/test/scripts/testutils.sh

stop_node() {
    node=$1
    ${top_srcdir}/tools/to_catlfish.py to_erl nodes/${node}/ "init:stop()"
}

for nodegroup in $FRONTENDNODES $MERGEPRIMARYNODE $STORAGENODES $MERGESECONDARYNODES $SIGNINGNODES; do
    for node in $nodegroup; do
        echo "stopping $node"
        stop_node $(echo $node | tr ':' ' ')
    done
done