diff options
Diffstat (limited to 'source4')
-rwxr-xr-x | source4/script/tests/selftest.sh | 16 | ||||
-rwxr-xr-x | source4/script/tests/test_nbt.sh | 6 | ||||
-rw-r--r-- | source4/torture/nbt/winsreplication.c | 2 |
3 files changed, 23 insertions, 1 deletions
diff --git a/source4/script/tests/selftest.sh b/source4/script/tests/selftest.sh index 4066ebaac2..73dce74fb6 100755 --- a/source4/script/tests/selftest.sh +++ b/source4/script/tests/selftest.sh @@ -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 diff --git a/source4/script/tests/test_nbt.sh b/source4/script/tests/test_nbt.sh index ff3bf14487..1537617241 100755 --- a/source4/script/tests/test_nbt.sh +++ b/source4/script/tests/test_nbt.sh @@ -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 diff --git a/source4/torture/nbt/winsreplication.c b/source4/torture/nbt/winsreplication.c index 8ef1cf5c15..4af01ac1c9 100644 --- a/source4/torture/nbt/winsreplication.c +++ b/source4/torture/nbt/winsreplication.c @@ -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; |