Changeset 30 for trunk/test/testrun_1.sh


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

Release candidate 3 for version 2.2.0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/testrun_1.sh

    r27 r30  
    8282    REPLACEMENT='FileCheckScheduleOne = 6 12 * * *'
    8383    ex $RCFILE <<EOF
    84 :%s/${ORIGINAL}/${REPLACEMENT}/g
    85 :wq
     84%s/${ORIGINAL}/${REPLACEMENT}/g
     85wq
    8686EOF
    8787}
     
    865865            return 1
    866866        fi
    867         tmp=`./samhain -j -L $LOGFILE | grep ERR | wc -l`
     867        #
     868        # wtmp may not be readable
     869        #
     870        tmp=`./samhain -j -L $LOGFILE | grep ERR | grep -v wtmp | wc -l`
    868871        if [ $tmp -ne 0 ]; then
    869             [ -z "$verbose" ] || log_msg_fail "update not successful(?)";
     872            [ -z "$verbose" ] || log_msg_fail "errors during check";
    870873            return 1
    871874        fi
     
    889892prep_testdata ()
    890893{
    891     if [ -d "${BASE}" ]; then
    892         chmod -R 0700 "${BASE}" || {
    893             [ -z "$quiet" ] &&   log_msg_fail "chmod -R 0700 ${BASE}";
    894             return 1;
    895         }
     894    if test -d "$BASE"; then
     895        if [ -d "${BASE}" ]; then
     896            chmod -R 0700 "${BASE}" || {
     897                [ -z "$quiet" ] &&   log_msg_fail "chmod -R 0700 ${BASE}";
     898                return 1;
     899            }
     900        fi
    896901    fi
    897902
     
    947952        if test x$? = x0; then
    948953                [ -z "$verbose" ] ||     log_msg_ok "configure...";
    949                 $MAKE  > /dev/null
     954                $MAKE  >/dev/null 2>>test_log
    950955                if test x$? = x0; then
    951956                    [ -z "$verbose" ] || log_msg_ok "make...";
Note: See TracChangeset for help on using the changeset viewer.