From: Jong Hyuk Choi Date: Tue, 15 Jul 2003 00:27:59 +0000 (+0000) Subject: SyncRepl is working with both back-bdb and back-ldbm X-Git-Tag: OPENLDAP_REL_ENG_2_1_MP~824 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=9b5e2b0087657b37d5df0adbe133a07887cbc894;p=openldap SyncRepl is working with both back-bdb and back-ldbm --- diff --git a/tests/scripts/test017-syncreplication-refresh b/tests/scripts/test017-syncreplication-refresh index 618d866574..ff173ee1f1 100755 --- a/tests/scripts/test017-syncreplication-refresh +++ b/tests/scripts/test017-syncreplication-refresh @@ -8,11 +8,6 @@ fi . $SRCDIR/scripts/args.sh $* -if test "$BACKEND" != "bdb" -a "$BACKEND" != "hdb"; then - echo "Test only valid for back-bdb" - exit 0 -fi - echo "running defines.sh" . $SRCDIR/scripts/defines.sh @@ -31,6 +26,8 @@ echo "Resetting $R1REPLDIR..." rm -rf $R1REPLDIR mkdir $R1REPLDIR +SAVE=$BACKEND +BACKEND=bdb echo "Starting master slapd on TCP/IP port $PORT..." . $CONFFILTER $BACKEND $MONITORDB < $SRMASTERCONF > $DBCONF $SLAPD -f $DBCONF -h $MASTERURI -d $LVL $TIMING > $MASTERLOG 2>&1 & @@ -39,6 +36,7 @@ if test $WAIT != 0 ; then echo PID $PID read foo fi +BACKEND=$SAVE echo "Waiting 5 seconds to wait for master to start..." sleep 5 diff --git a/tests/scripts/test018-syncreplication-persist b/tests/scripts/test018-syncreplication-persist index ada9d44b0b..7bdd93c570 100755 --- a/tests/scripts/test018-syncreplication-persist +++ b/tests/scripts/test018-syncreplication-persist @@ -8,11 +8,6 @@ fi . $SRCDIR/scripts/args.sh $* -if test "$BACKEND" != "bdb" -a "$BACKEND" != "hdb"; then - echo "Test only valid for back-bdb" - exit 0 -fi - echo "running defines.sh" . $SRCDIR/scripts/defines.sh @@ -31,6 +26,8 @@ echo "Resetting $P1REPLDIR..." rm -rf $P1REPLDIR mkdir $P1REPLDIR +SAVE=$BACKEND +BACKEND=bdb echo "Starting master slapd on TCP/IP port $PORT..." . $CONFFILTER $BACKEND $MONITORDB < $SRMASTERCONF > $DBCONF $SLAPD -f $DBCONF -h $MASTERURI -d $LVL $TIMING > $MASTERLOG 2>&1 & @@ -39,6 +36,7 @@ if test $WAIT != 0 ; then echo PID $PID read foo fi +BACKEND=$SAVE echo "Waiting 5 seconds to wait for master to start..." sleep 5 diff --git a/tests/scripts/test020-syncreplication-cascading b/tests/scripts/test020-syncreplication-cascading index 49257b6849..dc332ff972 100755 --- a/tests/scripts/test020-syncreplication-cascading +++ b/tests/scripts/test020-syncreplication-cascading @@ -8,11 +8,6 @@ fi . $SRCDIR/scripts/args.sh $* -if test "$BACKEND" != "bdb" -a "$BACKEND" != "hdb"; then - echo "Test only valid for back-bdb" - exit 0 -fi - echo "running defines.sh" . $SRCDIR/scripts/defines.sh @@ -43,6 +38,8 @@ echo "Resetting $P3REPLDIR..." rm -rf $P3REPLDIR mkdir $P3REPLDIR +SAVE=$BACKEND +BACKEND=bdb echo "Starting master slapd on TCP/IP port $PORT..." . $CONFFILTER $BACKEND $MONITORDB < $SRMASTERCONF > $DBCONF $SLAPD -f $DBCONF -h $MASTERURI -d $LVL $TIMING > $MASTERLOG 2>&1 & @@ -51,6 +48,7 @@ if test $WAIT != 0 ; then echo PID $PID read foo fi +BACKEND=$SAVE echo "Waiting 5 seconds to wait for master to start..." sleep 5 @@ -77,6 +75,8 @@ if test $RC != 0 ; then exit $RC fi +SAVE=$BACKEND +BACKEND=bdb echo "Starting R1 slave slapd on TCP/IP port $R1SLAVEPORT..." . $CONFFILTER $BACKEND $MONITORDB < $R1SRSLAVECONF > $R1REPLCONF $SLAPD -f $R1REPLCONF -h $R1SLAVEURI -d $LVL $TIMING > $R1SLAVELOG 2>&1 & @@ -85,6 +85,7 @@ if test $WAIT != 0 ; then echo SLAVE R1 PID $R1SLAVEPID read foo fi +BACKEND=$SAVE echo "Using ldapsearch to check that R1 slave slapd is running..." for i in 0 1 2 3 4 5; do @@ -125,6 +126,8 @@ done echo "Waiting for the R2 slave to replicate..." sleep 10 +SAVE=$BACKEND +BACKEND=bdb echo "Starting P1 slave slapd on TCP/IP port $P1SLAVEPORT..." . $CONFFILTER $BACKEND $MONITORDB < $P1SRSLAVECONF > $P1REPLCONF $SLAPD -f $P1REPLCONF -h $P1SLAVEURI -d $LVL $TIMING > $P1SLAVELOG 2>&1 & @@ -133,6 +136,7 @@ if test $WAIT != 0 ; then echo SLAVE P1 PID $P1SLAVEPID read foo fi +BACKEND=$SAVE echo "Using ldapsearch to check that the P1 slave slapd is running..." for i in 0 1 2 3 4 5; do