]> git.sur5r.net Git - openldap/commitdiff
append logs
authorPierangelo Masarati <ando@openldap.org>
Mon, 4 Sep 2006 08:29:47 +0000 (08:29 +0000)
committerPierangelo Masarati <ando@openldap.org>
Mon, 4 Sep 2006 08:29:47 +0000 (08:29 +0000)
tests/scripts/relay
tests/scripts/test030-relay

index db98d0e8d1356f830155157fbbee1a7f7c4f297c..3e1d95a4149b26d3b9fd8a8f7a9120e7a1f617c8 100755 (executable)
@@ -17,8 +17,9 @@ echo "Using $RELAY backend..."
 echo ""
 
 echo "Starting slapd on TCP/IP port $PORT1..."
+echo "======== Starting slapd with $RELAY backend ========" >> $LOG1
 . $CONFFILTER $BACKEND $MONITORDB < $RELAYCONF > $CONF1
-$SLAPD -f $CONF1 -h $URI1 -d $LVL $TIMING > $LOG1 2>&1 &
+$SLAPD -f $CONF1 -h $URI1 -d $LVL $TIMING >> $LOG1 2>&1 &
 PID=$!
 if test $WAIT != 0 ; then
     echo PID $PID
index 7f06f98e7f4ff74283a343846afef72b45adb90b..413b0f25b88b3459751835d1b5c995cb4c61999c 100755 (executable)
@@ -73,6 +73,10 @@ fi
 echo "Testing virtual naming context mapping with $RELAYS backend(s)..."
 echo ""
 
+tmpfile=savelog.log
+if test -f $tmpfile ; then
+       rm -f $tmpfile
+fi
 first=1
 for RELAY in $RELAYS ; do
        RUNIT=yes
@@ -92,11 +96,16 @@ for RELAY in $RELAYS ; do
                        echo ">>>>> waiting for things to exit"
                        test $KILLSERVERS != no && wait
                        echo ""
-       
+
+                       mv -f $LOG1 $tmpfile
                        rm -rf $TESTDIR
                fi
 
                mkdir -p $TESTDIR $DBDIR1
+
+               if test -f $tmpfile ; then
+                       mv $tmpfile $LOG1
+               fi
        
                . $SRCDIR/scripts/relay
        fi