Changeset 149 for trunk/test


Ignore:
Timestamp:
Jan 7, 2008, 8:52:13 PM (17 years ago)
Author:
katerina
Message:

Make sh_hash.c thread-safe, remove plenty of tiny allocations, improve sh_mem_dump, modify port check to run as thread, and fix unsetting of sh_thread_pause_flag (was too early).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/testrun_1e.sh

    r128 r149  
    2323export BUILDOPTS
    2424
    25 MAXTEST=3; export MAXTEST
     25MAXTEST=4; export MAXTEST
     26
     27PORTPOLICY_4="
     28[ReadOnly]
     29file=${BASE}
     30[PortCheck]
     31PortCheckActive = yes
     32PortCheckUDP = no
     33"
     34
     35chk_portdata_4 () {
     36    one_sec_sleep
     37
     38    egrep 'CRIT.*POLICY \[ServiceNew\]' $LOGFILE >/dev/null 2>&1
     39    if [ $? -eq 0 ]; then
     40       
     41        [ -z "$verbose" ] || log_msg_fail "Open ports";
     42        return 1
     43    fi
     44}
     45
     46refine_portpolicy_4 ()
     47{
     48    cat "$LOGFILE" | grep ServiceNew | sed 's/.*port //' | awk '{ print $1 }' | \
     49    while read line; do
     50        echo "PortCheckSkip=$line" >>"${RCFILE}"
     51    done
     52    echo "PortCheckIgnore=2026/tcp" >>"${RCFILE}"
     53    echo "PortCheckIgnore=2027/udp" >>"${RCFILE}"
     54    echo "PortCheckIgnore=2028/tcp" >>"${RCFILE}"
     55    echo "PortCheckIgnore=2029/udp" >>"${RCFILE}"
     56}
    2657
    2758PORTPOLICY_3="
     
    5081        echo "PortCheckIgnore=$line" >>"${RCFILE}"
    5182    done
    52     echo "PortCheckIgnore=2026" >>"${RCFILE}"
    53     echo "PortCheckIgnore=2027" >>"${RCFILE}"
    54     echo "PortCheckIgnore=2028" >>"${RCFILE}"
    55     echo "PortCheckIgnore=2029" >>"${RCFILE}"
     83    echo "PortCheckIgnore=2026/tcp" >>"${RCFILE}"
     84    echo "PortCheckIgnore=2027/udp" >>"${RCFILE}"
     85    echo "PortCheckIgnore=2028/tcp" >>"${RCFILE}"
     86    echo "PortCheckIgnore=2029/udp" >>"${RCFILE}"
    5687}
    5788
Note: See TracChangeset for help on using the changeset viewer.