mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
make it easier to test starting large numbers of virtual nodes
(This used to be ctdb commit cf61bf8b8806d29772985c904d5ee15c24d4d767)
This commit is contained in:
parent
45f0fdfc20
commit
0943fba979
@ -2,7 +2,7 @@
|
||||
|
||||
killall -q ctdbd
|
||||
|
||||
tests/start_daemons.sh 2 tests/nodes.txt || exit 1
|
||||
tests/start_daemons.sh 2 || exit 1
|
||||
|
||||
echo "Testing ping"
|
||||
$VALGRIND bin/ctdb ping || exit 1
|
||||
|
@ -5,12 +5,7 @@ if [ $# -gt 0 ]; then
|
||||
NUMNODES=$1
|
||||
fi
|
||||
|
||||
rm -f nodes.txt
|
||||
for i in `seq 1 $NUMNODES`; do
|
||||
echo 127.0.0.$i >> nodes.txt
|
||||
done
|
||||
|
||||
tests/start_daemons.sh $NUMNODES nodes.txt || exit 1
|
||||
tests/start_daemons.sh $NUMNODES || exit 1
|
||||
|
||||
|
||||
killall -9 -q ctdb_fetch
|
||||
|
@ -5,12 +5,7 @@ if [ $# -gt 0 ]; then
|
||||
NUMNODES=$1
|
||||
fi
|
||||
|
||||
rm -f nodes.txt
|
||||
for i in `seq 1 $NUMNODES`; do
|
||||
echo 127.0.0.$i >> nodes.txt
|
||||
done
|
||||
|
||||
tests/start_daemons.sh $NUMNODES nodes.txt || exit 1
|
||||
tests/start_daemons.sh $NUMNODES || exit 1
|
||||
|
||||
|
||||
killall -9 -q ctdb_persistent
|
||||
|
@ -1,10 +1,18 @@
|
||||
#!/bin/sh
|
||||
|
||||
NUMNODES="$1"
|
||||
NODES=$2
|
||||
NUMNODES=2
|
||||
if [ $# -gt 0 ]; then
|
||||
NUMNODES=$1
|
||||
fi
|
||||
NODES="nodes.txt"
|
||||
shift
|
||||
shift
|
||||
|
||||
rm -f nodes.txt
|
||||
for i in `seq 1 $NUMNODES`; do
|
||||
echo 127.0.0.$i >> nodes.txt
|
||||
done
|
||||
|
||||
killall -q ctdbd
|
||||
|
||||
CTDB_OPTIONS="--reclock=rec.lock --nlist $NODES --event-script-dir=tests/events.d --logfile=- --dbdir=test.db --dbdir-persistent=test.db/persistent $*"
|
||||
|
Loading…
Reference in New Issue
Block a user