mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
r11489: add the one replication cycle test to NBT-WINSREPLICATION-QUICK
metze
This commit is contained in:
parent
1b62959a3d
commit
fc53eab2f1
@ -51,6 +51,7 @@ PRIVATEDIR=$PREFIX_ABS/private
|
||||
NCALRPCDIR=$PREFIX_ABS/ncalrpc
|
||||
LOCKDIR=$PREFIX_ABS/lockdir
|
||||
TLSDIR=$PRIVATEDIR/tls
|
||||
WINS_LDB=$PRIVATEDIR/wins.ldb
|
||||
CONFIGURATION="--configfile=$CONFFILE"
|
||||
export CONFIGURATION
|
||||
export CONFFILE
|
||||
@ -80,6 +81,19 @@ export PATH
|
||||
rm -rf $PREFIX/*
|
||||
mkdir -p $PRIVATEDIR $LIBDIR $PIDDIR $NCALRPCDIR $LOCKDIR $TMPDIR $TLSDIR
|
||||
|
||||
cat >$PRIVATEDIR/wins.ldif<<EOF
|
||||
dn: name=127.0.0.1,CN=PARTNERS
|
||||
objectClass: wreplPartner
|
||||
name: 127.0.0.1
|
||||
address: 127.0.0.1
|
||||
pullRetryInterval: 100
|
||||
pullInterval: 200
|
||||
type: 0x2
|
||||
EOF
|
||||
|
||||
WREPL_TORTURE_OPTIONS=
|
||||
export WREPL_TORTURE_OPTIONS
|
||||
|
||||
cat >$CONFFILE<<EOF
|
||||
[global]
|
||||
netbios name = $SERVER
|
||||
@ -141,6 +155,8 @@ echo -n "PROVISIONING..."
|
||||
--quiet --domain $DOMAIN --realm $REALM \
|
||||
--adminpass $PASSWORD --root=$ROOT || exit 1
|
||||
|
||||
./bin/ldbadd -H $PRIVATEDIR/wins.ldb < $PRIVATEDIR/wins.ldif || exit 1
|
||||
|
||||
echo "DONE"
|
||||
|
||||
if [ x"$RUN_FROM_BUILD_FARM" = x"yes" ];then
|
||||
|
@ -18,8 +18,12 @@ SCRIPTDIR=../testprogs/ejs
|
||||
PATH=bin:$PATH
|
||||
export PATH
|
||||
|
||||
for f in NBT-REGISTER NBT-WINS NBT-WINSREPLICATION-QUICK; do
|
||||
for f in NBT-REGISTER NBT-WINS; do
|
||||
testit "$f" bin/smbtorture $TORTURE_OPTIONS //$SERVER/_none_ $f || failed=`expr $failed + 1`
|
||||
done
|
||||
|
||||
for f in NBT-WINSREPLICATION-QUICK; do
|
||||
testit "$f" bin/smbtorture $TORTURE_OPTIONS $WREPL_TORTURE_OPTIONS //$SERVER/_none_ $f || failed=`expr $failed + 1`
|
||||
done
|
||||
|
||||
testok $0 $failed
|
||||
|
@ -8326,6 +8326,8 @@ BOOL torture_nbt_winsreplication_quick(void)
|
||||
ret &= test_assoc_ctx1(mem_ctx, address);
|
||||
ret &= test_assoc_ctx2(mem_ctx, address);
|
||||
|
||||
ret &= test_wins_replication(mem_ctx, address);
|
||||
|
||||
talloc_free(mem_ctx);
|
||||
|
||||
return ret;
|
||||
|
Loading…
Reference in New Issue
Block a user