summaryrefslogtreecommitdiff
path: root/source4/script/tests/selftest.sh
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2005-11-03 19:22:01 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:45:44 -0500
commit4f78115d6df2ed1e9d8197b045e721bfe0453b45 (patch)
tree930a4c01f6e9309beee62df0afde74ca68888c41 /source4/script/tests/selftest.sh
parent0a4de40a0b0a054e8b825621c6a78e67ad20ea51 (diff)
downloadsamba-4f78115d6df2ed1e9d8197b045e721bfe0453b45.tar.gz
samba-4f78115d6df2ed1e9d8197b045e721bfe0453b45.tar.bz2
samba-4f78115d6df2ed1e9d8197b045e721bfe0453b45.zip
r11489: add the one replication cycle test to NBT-WINSREPLICATION-QUICK
metze (This used to be commit fc53eab2f1bdae471ee68c4b67f57b1eb0821f61)
Diffstat (limited to 'source4/script/tests/selftest.sh')
-rwxr-xr-xsource4/script/tests/selftest.sh16
1 files changed, 16 insertions, 0 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