Changeset 85 for trunk/test/testrun_2c.sh
- Timestamp:
- Jan 19, 2007, 12:14:16 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/testrun_2c.sh
r81 r85 59 59 } 60 60 61 MAXTEST= 1; export MAXTEST61 MAXTEST=2; export MAXTEST 62 62 63 63 testrun2c () … … 110 110 fi 111 111 # 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 # 112 131 if [ -n "$cleanup" ]; then 113 132 rm -f ./rc.${SH_LOCALHOST}
Note:
See TracChangeset
for help on using the changeset viewer.