Changeset 172 for trunk/test
- Timestamp:
- Aug 7, 2008, 9:13:24 PM (16 years ago)
- Location:
- trunk/test
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/test.sh
r171 r172 435 435 rm -f ./.samhain_log* 436 436 rm -f ./.samhain_lock* 437 test -d testrun_testdata && chmod - R 0700 testrun_testdata437 test -d testrun_testdata && chmod -f -R 0700 testrun_testdata 438 438 test -d .quarantine && rm -rf .quarantine 439 439 rm -rf testrun_testdata -
trunk/test/testcompile.sh
r171 r172 98 98 # 99 99 cd src/ 100 stat=`uno -D USE_UNO=1 -t -I. -I.. -I../include sh_*.c samhain.c slib.c dnmalloc-portable.c zAVLTree.c trustfile.c rijndael-*.c bignum.c 2>&1 | wc -l`100 stat=`uno -DHAVE_MMAP=1 -DUSE_UNO=1 -t -I. -I.. -I../include sh_*.c samhain.c slib.c dnmalloc.c zAVLTree.c trustfile.c rijndael-*.c bignum.c 2>&1 | wc -l` 101 101 if [ $stat -ne 1 ]; then 102 uno -DSH_WITH_CLIENT -DSH_WITH_SERVER -D USE_UNO=1 -t -I. -I.. -I../include sh_*.c samhain.c slib.c dnmalloc-portable.c zAVLTree.c trustfile.c rijndael-*.c bignum.c >>../test_log 2>&1102 uno -DSH_WITH_CLIENT -DSH_WITH_SERVER -DHAVE_MMAP=1 -DUSE_UNO=1 -t -I. -I.. -I../include sh_*.c samhain.c slib.c dnmalloc.c zAVLTree.c trustfile.c rijndael-*.c bignum.c >>../test_log 2>&1 103 103 retval=1 104 104 [ -z "$quiet" ] && log_fail $2 ${MAXTEST} "$TEST (uno)"; … … 232 232 233 233 if [ "x$doall" = xon ]; then 234 if [ -f /usr/local/gcc-smatch/bin/gcc ]; then # FIXME 235 SAVE_CC="${CC}" 236 SMATCH="DBGDEF=--smatch"; export SMATCH 237 SAVE_SMATCH="${SMATCH}"; export SAVE_SMATCH 238 CC="/usr/local/gcc-smatch/bin/gcc"; export CC 239 SMATCH_CC="${CC}" 234 uname -a | grep x86_64 >/dev/null 235 if [ $? -ne 0 ]; then 236 if [ -f /usr/local/gcc-smatch/bin/gcc ]; then # FIXME 237 SAVE_CC="${CC}" 238 SMATCH="DBGDEF=--smatch"; export SMATCH 239 SAVE_SMATCH="${SMATCH}"; export SAVE_SMATCH 240 CC="/usr/local/gcc-smatch/bin/gcc"; export CC 241 SMATCH_CC="${CC}" 242 fi 240 243 fi 241 244 fi -
trunk/test/testrun_1.sh
r169 r172 1116 1116 if test -d "$BASE"; then 1117 1117 if [ -d "${BASE}" ]; then 1118 chmod - R 0700 "${BASE}" || {1119 [ -z "$quiet" ] && log_msg_fail "chmod - R 0700 ${BASE}";1118 chmod -f -R 0700 "${BASE}" || { 1119 [ -z "$quiet" ] && log_msg_fail "chmod -f -R 0700 ${BASE}"; 1120 1120 return 1; 1121 1121 } -
trunk/test/testrun_2a.sh
r51 r172 23 23 RCFILE="$PW_DIR/testrc_2"; export RCFILE 24 24 25 SERVER_BUILDOPTS="--quiet $TRUST 26 27 CLIENT_BUILDOPTS="--quiet $TRUST --enable- debug --enable-network=client --enable-srp --prefix=$PW_DIR --with-tmp-dir=$PW_DIR --localstatedir=$PW_DIR --with-config-file=REQ_FROM_SERVER$RCFILE --with-data-file=REQ_FROM_SERVER$PW_DIR/.samhain_file --with-logserver=localhost --with-log-file=$LOGFILE --with-pid-file=$PW_DIR/.samhain_lock --enable-suidcheck"; export CLIENT_BUILDOPTS25 SERVER_BUILDOPTS="--quiet $TRUST --enable-network=server --prefix=$PW_DIR --localstatedir=$PW_DIR --with-config-file=REQ_FROM_SERVER$PW_DIR/testrc_2 --with-data-file=REQ_FROM_SERVER$PW_DIR/.samhain_file --with-logserver=${SH_LOCALHOST} --with-log-file=$PW_DIR/.samhain_log --with-pid-file=$PW_DIR/.samhain_lock"; export SERVER_BUILDOPTS 26 27 CLIENT_BUILDOPTS="--quiet $TRUST --enable-network=client --enable-srp --prefix=$PW_DIR --with-tmp-dir=$PW_DIR --localstatedir=$PW_DIR --with-config-file=REQ_FROM_SERVER$RCFILE --with-data-file=REQ_FROM_SERVER$PW_DIR/.samhain_file --with-logserver=localhost --with-log-file=$LOGFILE --with-pid-file=$PW_DIR/.samhain_lock --enable-suidcheck"; export CLIENT_BUILDOPTS 28 28 29 29 do_test_1_a () { … … 250 250 CLIENT_BUILDOPTS_ORIG="${CLIENT_BUILDOPTS}" 251 251 # 252 SERVER_BUILDOPTS="${SERVER_BUILDOPTS_ORIG} --disable-srp" 253 CLIENT_BUILDOPTS="${CLIENT_BUILDOPTS_ORIG} --disable-srp" 252 SERVER_BUILDOPTS="${SERVER_BUILDOPTS_ORIG} --disable-srp"; export SERVER_BUILDOPTS 253 CLIENT_BUILDOPTS="${CLIENT_BUILDOPTS_ORIG} --disable-srp"; export CLIENT_BUILDOPTS 254 254 # 255 255 testrun2a_internal … … 261 261 fi 262 262 # 263 SERVER_BUILDOPTS="${SERVER_BUILDOPTS_ORIG} --disable-encrypt" 264 CLIENT_BUILDOPTS="${CLIENT_BUILDOPTS_ORIG} --disable-encrypt" 263 SERVER_BUILDOPTS="${SERVER_BUILDOPTS_ORIG} --disable-encrypt"; export SERVER_BUILDOPTS 264 CLIENT_BUILDOPTS="${CLIENT_BUILDOPTS_ORIG} --disable-encrypt"; export CLIENT_BUILDOPTS 265 265 # 266 266 testrun2a_internal … … 272 272 fi 273 273 # 274 SERVER_BUILDOPTS="${SERVER_BUILDOPTS_ORIG} --enable-encrypt=1" 275 CLIENT_BUILDOPTS="${CLIENT_BUILDOPTS_ORIG} --enable-encrypt=1" 274 SERVER_BUILDOPTS="${SERVER_BUILDOPTS_ORIG} --enable-encrypt=1"; export SERVER_BUILDOPTS 275 CLIENT_BUILDOPTS="${CLIENT_BUILDOPTS_ORIG} --enable-encrypt=1"; export CLIENT_BUILDOPTS 276 276 # 277 277 testrun2a_internal … … 283 283 fi 284 284 # 285 SERVER_BUILDOPTS="${SERVER_BUILDOPTS_ORIG}" 286 CLIENT_BUILDOPTS="${CLIENT_BUILDOPTS_ORIG} --enable-encrypt=1" 285 SERVER_BUILDOPTS="${SERVER_BUILDOPTS_ORIG}"; export SERVER_BUILDOPTS 286 CLIENT_BUILDOPTS="${CLIENT_BUILDOPTS_ORIG} --enable-encrypt=1"; export CLIENT_BUILDOPTS 287 287 # 288 288 testrun2a_internal -
trunk/test/testtimesrv.sh
r51 r172 31 31 { 32 32 if test -d "$BASE"; then 33 chmod - R 0700 "${BASE}" || {34 [ -z "$quiet" ] && log_msg_fail "chmod - R 0700 ${BASE}";33 chmod -f -R 0700 "${BASE}" || { 34 [ -z "$quiet" ] && log_msg_fail "chmod -f -R 0700 ${BASE}"; 35 35 return 1; 36 36 }
Note:
See TracChangeset
for help on using the changeset viewer.