Changeset 30 for trunk/test/testrun_1.sh
- Timestamp:
- Apr 27, 2006, 10:40:32 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/testrun_1.sh
r27 r30 82 82 REPLACEMENT='FileCheckScheduleOne = 6 12 * * *' 83 83 ex $RCFILE <<EOF 84 :%s/${ORIGINAL}/${REPLACEMENT}/g85 :wq84 %s/${ORIGINAL}/${REPLACEMENT}/g 85 wq 86 86 EOF 87 87 } … … 865 865 return 1 866 866 fi 867 tmp=`./samhain -j -L $LOGFILE | grep ERR | wc -l` 867 # 868 # wtmp may not be readable 869 # 870 tmp=`./samhain -j -L $LOGFILE | grep ERR | grep -v wtmp | wc -l` 868 871 if [ $tmp -ne 0 ]; then 869 [ -z "$verbose" ] || log_msg_fail " update not successful(?)";872 [ -z "$verbose" ] || log_msg_fail "errors during check"; 870 873 return 1 871 874 fi … … 889 892 prep_testdata () 890 893 { 891 if [ -d "${BASE}" ]; then 892 chmod -R 0700 "${BASE}" || { 893 [ -z "$quiet" ] && log_msg_fail "chmod -R 0700 ${BASE}"; 894 return 1; 895 } 894 if test -d "$BASE"; then 895 if [ -d "${BASE}" ]; then 896 chmod -R 0700 "${BASE}" || { 897 [ -z "$quiet" ] && log_msg_fail "chmod -R 0700 ${BASE}"; 898 return 1; 899 } 900 fi 896 901 fi 897 902 … … 947 952 if test x$? = x0; then 948 953 [ -z "$verbose" ] || log_msg_ok "configure..."; 949 $MAKE > /dev/null954 $MAKE >/dev/null 2>>test_log 950 955 if test x$? = x0; then 951 956 [ -z "$verbose" ] || log_msg_ok "make...";
Note:
See TracChangeset
for help on using the changeset viewer.