Changeset 30 for trunk/test/testrun_2.sh
- Timestamp:
- Apr 27, 2006, 10:40:32 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/testrun_2.sh
r29 r30 138 138 REPLACEMENT="UseSeparateLogs=yes" 139 139 ex $RCFILE <<EOF 140 :%s/$ORIGINAL/$REPLACEMENT/g141 :wq140 %s/$ORIGINAL/$REPLACEMENT/g 141 wq 142 142 EOF 143 143 # :%s is the "ex" substitution command. … … 182 182 CLIENTLOG="${LOGFILE}.${remhost}" 183 183 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 185 190 fi 186 191 … … 235 240 REPLACEMENT_4="SetClientTimeLimit=20" 236 241 ex $RCFILE <<EOF 237 :%s/${ORIGINAL_1}/${REPLACEMENT_1}/g238 :%s/${ORIGINAL_2}/${REPLACEMENT_2}/g239 :%s/${ORIGINAL_3}/${REPLACEMENT_3}/g240 :%s/${ORIGINAL_4}/${REPLACEMENT_4}/g241 :wq242 %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 246 wq 242 247 EOF 243 248 # :%s is the "ex" substitution command. … … 336 341 REPLACEMENT_1="SetSocketAllowUid=$me" 337 342 ex $RCFILE <<EOF 338 :%s/${ORIGINAL_1}/${REPLACEMENT_1}/g339 :wq343 %s/${ORIGINAL_1}/${REPLACEMENT_1}/g 344 wq 340 345 EOF 341 346 … … 435 440 436 441 kill ${PROC_Y} 442 sleep 2 443 kill -9 ${PROC_Y} >/dev/null 2>&1 437 444 438 445 [ -z "$VALGRIND" ] || { … … 633 640 # 634 641 cp samhain samhain.build || return 1 635 makeclean >/dev/null || return 1642 $MAKE clean >/dev/null || return 1 636 643 637 644 ${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 … … 655 662 # 656 663 cp yule yule.2 || return 1 657 makeclean >/dev/null || return 1664 $MAKE clean >/dev/null || return 1 658 665 659 666 ${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.