git.samba.org
/
sahlberg
/
ctdb.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
f95354a2d79aac0c66e134269671ca2e25f17dd2
[sahlberg/ctdb.git]
/
tests
/
test.sh
1
#!/bin/sh
2
3
#!/bin/sh
4
5
killall -q ctdb_test
6
7
NUMNODES=2
8
if [ $# -gt 0 ]; then
9
NUMNODES=$1
10
shift
11
fi
12
13
rm -f nodes.txt
14
for i in `seq 1 $NUMNODES`; do
15
echo 127.0.0.$i:9001 >> nodes.txt
16
done
17
18
killall -9 ctdb_test
19
echo "Trying $NUMNODES nodes"
20
for i in `seq 1 $NUMNODES`; do
21
$VALGRIND bin/ctdb_test --nlist nodes.txt --listen 127.0.0.$i:9001 --socket /tmp/ctdb.127.0.0.$i $* &
22
done
23
24
wait