Ignore:
Timestamp:
Apr 30, 2008, 11:56:45 PM (17 years ago)
Author:
katerina
Message:

Plenty of compiler warnings fixed, SQL query length fixed, doc update.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/testcompile.sh

    r147 r170  
    4141    if [ -z "$doall" ]; then
    4242        [ -z "$quiet" ] && log_skip $2 ${MAXTEST} "$TEST (smatch)";
     43        return 0
     44    fi
     45
     46    if [ ! -f "./x_samhain.c.sm" ]; then
     47        [ -z "$quiet" ] && log_skip $2 ${MAXTEST} "$TEST (skip smatch)";
    4348        return 0
    4449    fi
     
    140145            SAVE_CC="${CC}"
    141146            SMATCH="DBGDEF=--smatch"; export SMATCH
     147            SAVE_SMATCH="${SMATCH}"; export SAVE_SMATCH
    142148            CC="/usr/local/gcc-smatch/bin/gcc"; export CC
     149            SMATCH_CC="${CC}"
    143150        fi
    144151
     
    187194        fi
    188195        #
     196        [ -z "${SMATCH}" ] || { CC="${SAVE_CC}"; export CC; SMATCH=""; export SMATCH; }
     197        #
    189198        ${TOP_SRCDIR}/configure --quiet  --prefix=$PW_DIR --localstatedir=$PW_DIR --with-config-file=$PW_DIR/samhainrc.test  --enable-static --enable-suidcheck --enable-process-check > /dev/null 2>> test_log
    190199        #
     
    193202        let "num = num + 1" >/dev/null
    194203        run_smatch $? $num || let "numfail = numfail + 1"  >/dev/null
    195 
     204        #
     205        [ -z "${SMATCH_CC}" ] || { CC="${SMATCH_CC}"; export CC; SMATCH="${SAVE_SMATCH}"; export SMATCH; }
    196206        #
    197207        # test standalone compilation
     
    481491        fi
    482492        #
     493        [ -z "${SMATCH}" ] || { CC="${SAVE_CC}"; export CC; SMATCH=""; export SMATCH; }
     494        #
    483495        ${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 > /dev/null 2>> test_log   
    484496        #
     
    498510        let "num = num + 1" >/dev/null
    499511        run_smatch $? $num || let "numfail = numfail + 1"  >/dev/null
    500 
     512        #
     513        [ -z "${SMATCH_CC}" ] || { CC="${SMATCH_CC}"; export CC; SMATCH="${SAVE_SMATCH}"; export SMATCH; }
    501514        #
    502515        # test c/s compilation w/ gpg
Note: See TracChangeset for help on using the changeset viewer.