1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00
samba-mirror/ctdb/tests/test.sh

25 lines
393 B
Bash
Raw Normal View History

#!/bin/sh
#!/bin/sh
killall -q ctdb_test
NUMNODES=2
if [ $# -gt 0 ]; then
NUMNODES=$1
shift
fi
rm -f nodes.txt
for i in `seq 1 $NUMNODES`; do
echo 127.0.0.$i:9001 >> nodes.txt
done
killall -9 ctdb_test
echo "Trying $NUMNODES nodes"
for i in `seq 1 $NUMNODES`; do
$VALGRIND bin/ctdb_test --nlist nodes.txt --listen 127.0.0.$i:9001 --socket /tmp/ctdb.127.0.0.$i $* &
done
wait