Changeset 51 for trunk/test/testrun_2.sh
- Timestamp:
- Jul 17, 2006, 10:31:56 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/testrun_2.sh
r34 r51 37 37 ${VALGRIND} ./yule.2 -l info -p none >/dev/null 2>>test_log_valgrind & 38 38 PROC_Y2=$! 39 sleep 539 five_sec_sleep 40 40 41 41 [ -z "$verbose" ] || { … … 48 48 --server-port=49778 >/dev/null 2>>test_log_valgrind & 49 49 PROC_Y=$! 50 sleep 550 five_sec_sleep 51 51 52 52 [ -z "$verbose" ] || { … … 68 68 kill $PROC_Y 69 69 kill $PROC_Y2 70 sleep 570 five_sec_sleep 71 71 72 72 # cp ${LOGFILE} triple_test … … 137 137 ORIGINAL="UseSeparateLogs=no" 138 138 REPLACEMENT="UseSeparateLogs=yes" 139 ex $RCFILE <<EOF139 ex -s $RCFILE <<EOF 140 140 %s/$ORIGINAL/$REPLACEMENT/g 141 141 wq … … 154 154 ${VALGRIND} ./yule -l info -p none >/dev/null 2>>test_log_valgrind & 155 155 PROC_Y=$! 156 sleep 5156 five_sec_sleep 157 157 158 158 [ -z "$verbose" ] || { … … 172 172 173 173 kill $PROC_Y 174 sleep 5174 five_sec_sleep 175 175 176 176 if [ -f ${LOGFILE}.${SH_LOCALHOST} ]; then … … 242 242 ORIGINAL_5="dir=1" 243 243 REPLACEMENT_5="#dir=1" 244 ex $RCFILE <<EOF244 ex -s $RCFILE <<EOF 245 245 %s/${ORIGINAL_1}/${REPLACEMENT_1}/g 246 246 %s/${ORIGINAL_2}/${REPLACEMENT_2}/g … … 263 263 ${VALGRIND} ./yule -p none -e none >/dev/null 2>>test_log_valgrind & 264 264 PROC_Y=$! 265 sleep 5265 five_sec_sleep 266 266 267 267 [ -z "$verbose" ] || { … … 276 276 # echo "PID is ${PROC_S}" 277 277 [ -z "$verbose" ] || log_msg_ok "samhain.new -t check"; 278 sleep 5278 five_sec_sleep 279 279 # Redirect the shells (un-)helpful job monitoring messages. 280 280 # The 'disown' buildin is not portable. … … 293 293 294 294 kill $PROC_Y 295 sleep 5295 five_sec_sleep 296 296 297 297 egrep "START(>|\").*Yule(>|\")" $LOGFILE >/dev/null 2>&1 … … 340 340 341 341 # 'id -u' is posix 342 me=`id -u` 342 if test -f /usr/xpg4/bin/id 343 then 344 me=`/usr/xpg4/bin/id -u` 345 else 346 me=`id -u` 347 fi 343 348 344 349 ORIGINAL_1="SetSocketAllowUid=0" 345 350 REPLACEMENT_1="SetSocketAllowUid=$me" 346 ex $RCFILE <<EOF351 ex -s $RCFILE <<EOF 347 352 %s/${ORIGINAL_1}/${REPLACEMENT_1}/g 348 353 wq … … 361 366 >/dev/null 2>>test_log_valgrind & 362 367 PROC_Y=$! 363 sleep 5368 five_sec_sleep 364 369 365 370 [ -z "$verbose" ] || { … … 444 449 445 450 kill ${PROC_Y} 446 sleep 2 451 one_sec_sleep 452 one_sec_sleep 447 453 kill -9 ${PROC_Y} >/dev/null 2>&1 448 454 … … 499 505 >/dev/null 2>>test_log_valgrind & 500 506 PROC_Y=$! 501 sleep 5507 five_sec_sleep 502 508 503 509 egrep '<!-- head -->' $HTML >/dev/null 2>&1 … … 533 539 534 540 kill $PROC_Y 535 sleep 5541 five_sec_sleep 536 542 537 543 # rm -f head.html; rm -f foot.html; rm -f entry.html;
Note:
See TracChangeset
for help on using the changeset viewer.