summaryrefslogtreecommitdiff
path: root/source4/script
diff options
context:
space:
mode:
Diffstat (limited to 'source4/script')
-rwxr-xr-xsource4/script/tests/selftest.sh16
-rwxr-xr-xsource4/script/tests/test_nbt.sh6
2 files changed, 21 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