Changeset 257 for trunk/test/testhash.sh


Ignore:
Timestamp:
Oct 31, 2009, 8:53:58 PM (15 years ago)
Author:
katerina
Message:

Fix for issues with debug code and testsuite (tickets #174, #175).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/testhash.sh

    r235 r257  
    2828{
    2929        log_start "HASH FUNCTION"
     30
     31        C_LOGFILE=""
     32
     33        ls /lib/libpcre* >/dev/null 2>&1
     34        if [ $? -eq 0 ]; then
     35            C_LOGFILE=" --enable-logfile-monitor "
     36        else
     37            ls /usr/lib/libpcre* >/dev/null 2>&1
     38            if [ $? -eq 0 ]; then
     39                C_LOGFILE=" --enable-logfile-monitor "
     40            else
     41                ls /usr/local/lib/libpcre* >/dev/null 2>&1
     42                if [ $? -eq 0 ]; then
     43                    C_LOGFILE=" --enable-logfile-monitor "
     44                fi
     45            fi
     46        fi
     47        if [ x"${C_LOGFILE}" = x ]; then
     48            log_msg_ok  "Not testing  --enable-logfile-monitor";
     49        fi
     50
    3051        #
    3152        # test standalone compilation
     
    3758        fi
    3859        #
    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'
     60        ${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' ${C_LOGFILE} '--enable-process-check' '--enable-port-check' '--enable-suidcheck' '--with-rnd=unix'
    4061        #
    4162        fail=0
Note: See TracChangeset for help on using the changeset viewer.