Changeset 235 for trunk/test/testext.sh
- Timestamp:
- Jul 11, 2009, 2:19:07 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/testext.sh
r202 r235 20 20 # 21 21 22 MAXTEST= 1; export MAXTEST22 MAXTEST=2; export MAXTEST 23 23 24 24 testext0 () … … 54 54 fi 55 55 # 56 ${TOP_SRCDIR}/configure --quiet -- enable-debug --prefix=$PW_DIR --localstatedir=$PW_DIR --with-config-file=$PW_DIR/testrc_1ext --with-log-file=$LOGFILE --with-pid-file=$PW_DIR/.samhain_lock --with-data-file=$PW_DIR/.samhain_file56 ${TOP_SRCDIR}/configure --quiet --prefix=$PW_DIR --localstatedir=$PW_DIR --with-config-file=$PW_DIR/testrc_1ext --with-log-file=$LOGFILE --with-pid-file=$PW_DIR/.samhain_lock --with-data-file=$PW_DIR/.samhain_file 57 57 # 58 58 if test x$? = x0; then … … 100 100 echo "SetChecksum=$CHKSUM" >> testrc_1ext 101 101 echo "SetFilterOr=ALERT" >> testrc_1ext 102 echo "CloseCommand" >> testrc_1ext 102 103 103 104 rm -f $PW_DIR/test_ext.res … … 133 134 fi 134 135 136 ORIGINAL="SetChecksum=${CHKSUM}" 137 REPLACEMENT="SetChecksum=DEADBEEFDEADBEEFDEADBEEFDEADBEEFDEADBEEFDEADBEEF" 138 139 ex -s "$PW_DIR/testrc_1ext" <<EOF 140 %s/$ORIGINAL/$REPLACEMENT/g 141 wq 142 EOF 143 144 rm -f $PW_DIR/test_ext.res 145 rm -f $PW_DIR/pdbg.child 146 rm -f $PW_DIR/pdbg.main 147 ./samhain -p none 148 149 one_sec_sleep 150 151 if [ -f $PW_DIR/test_ext.res ]; then 152 log_fail 2 ${MAXTEST}; 153 else 154 log_ok 2 ${MAXTEST}; 155 fi 156 135 157 rm -f $PW_DIR/.samhain_file 136 158 rm -f $LOGFILE
Note:
See TracChangeset
for help on using the changeset viewer.