1
0
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:
Stefan Metzmacher 2005-11-03 19:22:01 +00:00 committed by Gerald (Jerry) Carter
parent 1b62959a3d
commit fc53eab2f1
3 changed files with 23 additions and 1 deletions

View File

@ -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

View File

@ -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

View File

@ -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;