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/testcompile.sh

    r227 r257  
    179179                echo getenv >> list_null_funcs_uniq;
    180180                cat $i | ./deference_check.pl |\
    181                      egrep -v 'x_trustfile.c ... ... sl_trustfile';
     181                     egrep -v 'x_trustfile.c ... ... sl_trustfile' | \
     182                     egrep -v 'x_sh_mem.c ';
    182183                rm -f list_null_funcs_uniq;
    183184                # rm -f $i
     
    262263        numfail=0
    263264
     265       
     266        C_LOGFILE=""
     267
     268        ls /lib/libpcre* >/dev/null 2>&1
     269        if [ $? -eq 0 ]; then
     270            C_LOGFILE=" --enable-logfile-monitor "
     271        else
     272            ls /usr/lib/libpcre* >/dev/null 2>&1
     273            if [ $? -eq 0 ]; then
     274                C_LOGFILE=" --enable-logfile-monitor "
     275            else
     276                ls /usr/local/lib/libpcre* >/dev/null 2>&1
     277                if [ $? -eq 0 ]; then
     278                    C_LOGFILE=" --enable-logfile-monitor "
     279                fi
     280            fi
     281        fi
     282        if [ x"${C_LOGFILE}" = x ]; then
     283            log_msg_ok  "Not testing  --enable-logfile-monitor";
     284        fi
     285
    264286        #
    265287        # test dnmalloc
     
    319341        [ -z "${SMATCH}" ] || { CC="${SAVE_CC}"; export CC; SMATCH=""; export SMATCH; }
    320342        #
    321         ${TOP_SRCDIR}/configure --quiet  --prefix=$PW_DIR --localstatedir=$PW_DIR --with-config-file=$PW_DIR/samhainrc.test  --enable-static --enable-suidcheck --enable-process-check --enable-logfile-monitor > /dev/null 2>> test_log
     343        ${TOP_SRCDIR}/configure --quiet  --prefix=$PW_DIR --localstatedir=$PW_DIR --with-config-file=$PW_DIR/samhainrc.test  --enable-static --enable-suidcheck --enable-process-check ${C_LOGFILE} > /dev/null 2>> test_log
    322344        #
    323345        let "num = num + 1" >/dev/null
     
    429451        fi
    430452        #
    431         ${TOP_SRCDIR}/configure --quiet  --prefix=$PW_DIR --enable-nocl="owl" --localstatedir=$PW_DIR --with-config-file=$PW_DIR/samhainrc.test  --enable-logfile-monitor > /dev/null 2>> test_log   
     453        ${TOP_SRCDIR}/configure --quiet  --prefix=$PW_DIR --enable-nocl="owl" --localstatedir=$PW_DIR --with-config-file=$PW_DIR/samhainrc.test ${C_LOGFILE} > /dev/null 2>> test_log   
    432454        #
    433455        let "num = num + 1" >/dev/null
     
    670692        [ -z "${SMATCH}" ] || { CC="${SAVE_CC}"; export CC; SMATCH=""; export SMATCH; }
    671693        #
    672         ${TOP_SRCDIR}/configure --quiet --enable-network=client  --enable-static --enable-srp --prefix=$PW_DIR --localstatedir=$PW_DIR --with-config-file=$PW_DIR/samhainrc.test   --with-timeserver=127.0.0.1   --enable-logfile-monitor > /dev/null 2>> test_log   
     694        ${TOP_SRCDIR}/configure --quiet --enable-network=client  --enable-static --enable-srp --prefix=$PW_DIR --localstatedir=$PW_DIR --with-config-file=$PW_DIR/samhainrc.test   --with-timeserver=127.0.0.1 ${C_LOGFILE} > /dev/null 2>> test_log   
    673695        #
    674696        let "num = num + 1" >/dev/null
     
    726748            fi
    727749            #
    728             ${TOP_SRCDIR}/configure --quiet --enable-network=client  --enable-srp --with-gpg=$GPG  --prefix=$PW_DIR --localstatedir=$PW_DIR --with-config-file=$PW_DIR/samhainrc.test   --enable-logfile-monitor > /dev/null 2>> test_log   
     750            ${TOP_SRCDIR}/configure --quiet --enable-network=client  --enable-srp --with-gpg=$GPG  --prefix=$PW_DIR --localstatedir=$PW_DIR --with-config-file=$PW_DIR/samhainrc.test ${C_LOGFILE} > /dev/null 2>> test_log   
    729751            #
    730752            let "num = num + 1" >/dev/null
     
    790812        fi
    791813        #
    792         ${TOP_SRCDIR}/configure --quiet --enable-network=client --enable-debug --prefix=$PW_DIR --localstatedir=$PW_DIR --with-config-file=$PW_DIR/samhainrc.test   --enable-logfile-monitor > /dev/null 2>> test_log   
     814        ${TOP_SRCDIR}/configure --quiet --enable-network=client --enable-debug --prefix=$PW_DIR --localstatedir=$PW_DIR --with-config-file=$PW_DIR/samhainrc.test ${C_LOGFILE} > /dev/null 2>> test_log   
    793815        #
    794816        let "num = num + 1" >/dev/null
Note: See TracChangeset for help on using the changeset viewer.