Changeset 170 for trunk/test/testcompile.sh
- Timestamp:
- Apr 30, 2008, 11:56:45 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/testcompile.sh
r147 r170 41 41 if [ -z "$doall" ]; then 42 42 [ -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)"; 43 48 return 0 44 49 fi … … 140 145 SAVE_CC="${CC}" 141 146 SMATCH="DBGDEF=--smatch"; export SMATCH 147 SAVE_SMATCH="${SMATCH}"; export SAVE_SMATCH 142 148 CC="/usr/local/gcc-smatch/bin/gcc"; export CC 149 SMATCH_CC="${CC}" 143 150 fi 144 151 … … 187 194 fi 188 195 # 196 [ -z "${SMATCH}" ] || { CC="${SAVE_CC}"; export CC; SMATCH=""; export SMATCH; } 197 # 189 198 ${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 190 199 # … … 193 202 let "num = num + 1" >/dev/null 194 203 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; } 196 206 # 197 207 # test standalone compilation … … 481 491 fi 482 492 # 493 [ -z "${SMATCH}" ] || { CC="${SAVE_CC}"; export CC; SMATCH=""; export SMATCH; } 494 # 483 495 ${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 484 496 # … … 498 510 let "num = num + 1" >/dev/null 499 511 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; } 501 514 # 502 515 # test c/s compilation w/ gpg
Note:
See TracChangeset
for help on using the changeset viewer.