Changeset 85


Ignore:
Timestamp:
Jan 19, 2007, 12:14:16 AM (18 years ago)
Author:
rainer
Message:

Regression test added.

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/docs/Changelog

    r83 r85  
    112.3.1:
     2        * fix bug that my cause accidental closure of yule TCP socket
     3          (problem reported by B. Masuda)
    24        * fix sh_kern.c for kernel 2.6.19 (reported by S. Clormann)
    35        * don't use sstrip in 'make deb', since dh_shlibdeps uses objdump
  • trunk/test/testrun_1d.sh

    r67 r85  
    169169          let "tcount = tcount + 1" >/dev/null
    170170          POLICY=`eval echo '"$'"PROCPOLICY_$tcount"'"'`
     171
    171172        done
    172173           
  • trunk/test/testrun_2c.sh

    r81 r85  
    5959}
    6060
    61 MAXTEST=1; export MAXTEST
     61MAXTEST=2; export MAXTEST
    6262
    6363testrun2c ()
     
    110110    fi
    111111    #
     112    if [ -f ./yule ]; then
     113        ./yule -p info -l info --set-database-severity=info -D >/dev/null 2>>test_log
     114        five_sec_sleep
     115        netstat -pant 2>/dev/null | grep 49777 | grep yule >/dev/null 2>&1
     116        if [ $? -ne 0 ]; then
     117            [ -z "$quiet" ] && log_fail 2 ${MAXTEST} "Client/server w/mysql";
     118        else
     119            NSOCK=`netstat -pand 2>/dev/null | grep STREAM | grep yule | wc -l`
     120            if [ $NSOCK -ne 2 ]; then
     121                [ -z "$quiet" ] && log_fail 2 ${MAXTEST} "Three sockets open";
     122                netstat -pand 2>/dev/null | grep yule
     123            else
     124                [ -z "$quiet" ] && log_ok   2 ${MAXTEST} "Three sockets open";
     125            fi
     126        fi
     127        PID=`cat .samhain_lock`
     128        kill $PID
     129    fi
     130    #
    112131    if [ -n "$cleanup" ]; then
    113132        rm -f ./rc.${SH_LOCALHOST}
Note: See TracChangeset for help on using the changeset viewer.