Changeset 30 for trunk/test/testrun_2.sh


Ignore:
Timestamp:
Apr 27, 2006, 10:40:32 PM (19 years ago)
Author:
rainer
Message:

Release candidate 3 for version 2.2.0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/testrun_2.sh

    r29 r30  
    138138        REPLACEMENT="UseSeparateLogs=yes"
    139139        ex $RCFILE <<EOF
    140 :%s/$ORIGINAL/$REPLACEMENT/g
    141 :wq
     140%s/$ORIGINAL/$REPLACEMENT/g
     141wq
    142142EOF
    143143# :%s is the "ex" substitution command.
     
    182182            CLIENTLOG="${LOGFILE}.${remhost}"
    183183        else
    184             CLIENTLOG=`ls -1 ${LOGFILE}.* 2>/dev/null | tail -n 1`
     184            tail -n 1 ${SCRIPTDIR}/test.sh >/dev/null 2>&1
     185            if [ $? -eq 0 ]; then
     186                CLIENTLOG=`ls -1 ${LOGFILE}.* 2>/dev/null | tail -n 1`
     187            else
     188                CLIENTLOG=`ls -1 ${LOGFILE}.* 2>/dev/null | tail -1`
     189            fi
    185190        fi
    186191
     
    235240        REPLACEMENT_4="SetClientTimeLimit=20"
    236241        ex $RCFILE <<EOF
    237 :%s/${ORIGINAL_1}/${REPLACEMENT_1}/g
    238 :%s/${ORIGINAL_2}/${REPLACEMENT_2}/g
    239 :%s/${ORIGINAL_3}/${REPLACEMENT_3}/g
    240 :%s/${ORIGINAL_4}/${REPLACEMENT_4}/g
    241 :wq
     242%s/${ORIGINAL_1}/${REPLACEMENT_1}/g
     243%s/${ORIGINAL_2}/${REPLACEMENT_2}/g
     244%s/${ORIGINAL_3}/${REPLACEMENT_3}/g
     245%s/${ORIGINAL_4}/${REPLACEMENT_4}/g
     246wq
    242247EOF
    243248# :%s is the "ex" substitution command.
     
    336341        REPLACEMENT_1="SetSocketAllowUid=$me"
    337342        ex $RCFILE <<EOF
    338 :%s/${ORIGINAL_1}/${REPLACEMENT_1}/g
    339 :wq
     343%s/${ORIGINAL_1}/${REPLACEMENT_1}/g
     344wq
    340345EOF
    341346
     
    435440
    436441        kill ${PROC_Y}
     442        sleep 2
     443        kill -9 ${PROC_Y} >/dev/null 2>&1
    437444
    438445        [ -z "$VALGRIND" ] || {
     
    633640        #
    634641        cp samhain samhain.build || return 1
    635         make clean >/dev/null || return 1
     642        $MAKE clean >/dev/null || return 1
    636643
    637644        ${TOP_SRCDIR}/configure --quiet  $TRUST --enable-debug --enable-network=server  --enable-xml-log --enable-login-watch --prefix=$PW_DIR --localstatedir=$PW_DIR --with-config-file=${RCFILE}2  --with-log-file=${LOGFILE}2 --with-pid-file=$PW_DIR/.samhain_lock2 --with-html-file=${HTML}2 --with-state-dir=$PW_DIR --enable-encrypt=2 --with-port=49778
     
    655662        #
    656663        cp yule yule.2 || return 1
    657         make clean >/dev/null || return 1
     664        $MAKE clean >/dev/null || return 1
    658665
    659666        ${TOP_SRCDIR}/configure --quiet  $TRUST --enable-debug --enable-network=server  --enable-xml-log --enable-login-watch --prefix=$PW_DIR --localstatedir=$PW_DIR --with-config-file=$RCFILE  --with-log-file=$LOGFILE --with-pid-file=$PW_DIR/.samhain_lock --with-html-file=$HTML --with-state-dir=$PW_DIR --enable-encrypt=2
Note: See TracChangeset for help on using the changeset viewer.