Changeset 235 for trunk/test
- Timestamp:
- Jul 11, 2009, 2:19:07 PM (15 years ago)
- Location:
- trunk/test
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/test.sh
r174 r235 432 432 rm -f testrc_2 433 433 rm -f testrc_22 434 rm -f testrc_1ext 434 435 rm -f ./.samhain_file 435 436 rm -f ./.samhain_log* -
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 -
trunk/test/testhash.sh
r230 r235 37 37 fi 38 38 # 39 ${TOP_SRCDIR}/configure --quiet $TRUST --prefix=$PW_DIR --localstatedir=$PW_DIR --with-config-file=$RCFILE --with-log-file=$LOGFILE --with-pid-file=$PW_DIR/.samhain_lock --with-data-file=$PW_DIR/.samhain_file --enable-debug 39 ${TOP_SRCDIR}/configure --quiet $TRUST --prefix=$PW_DIR --localstatedir=$PW_DIR --with-config-file=$RCFILE --with-log-file=$LOGFILE --with-pid-file=$PW_DIR/.samhain_lock --with-data-file=$PW_DIR/.samhain_file --enable-debug '--enable-login-watch' '--enable-mounts-check' '--enable-logfile-monitor' '--enable-process-check' '--enable-port-check' '--enable-suidcheck' '--with-rnd=unix' 40 40 # 41 41 fail=0
Note:
See TracChangeset
for help on using the changeset viewer.