Changeset 172 for trunk/test


Ignore:
Timestamp:
Aug 7, 2008, 9:13:24 PM (16 years ago)
Author:
katerina
Message:

Documentation update, more dnmalloc fixes.

Location:
trunk/test
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/test.sh

    r171 r172  
    435435    rm -f ./.samhain_log*
    436436    rm -f ./.samhain_lock*
    437     test -d testrun_testdata && chmod -R 0700 testrun_testdata
     437    test -d testrun_testdata && chmod -f -R 0700 testrun_testdata
    438438    test -d .quarantine && rm -rf .quarantine
    439439    rm -rf testrun_testdata
  • trunk/test/testcompile.sh

    r171 r172  
    9898    #
    9999    cd src/
    100     stat=`uno -DUSE_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`
    101101    if [ $stat -ne 1 ]; then
    102         uno -DSH_WITH_CLIENT -DSH_WITH_SERVER -DUSE_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>&1
     102        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
    103103        retval=1
    104104        [ -z "$quiet" ] && log_fail $2 ${MAXTEST} "$TEST (uno)";
     
    232232
    233233        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
    240243            fi
    241244        fi
  • trunk/test/testrun_1.sh

    r169 r172  
    11161116    if test -d "$BASE"; then
    11171117        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}";
    11201120                return 1;
    11211121            }
  • trunk/test/testrun_2a.sh

    r51 r172  
    2323RCFILE="$PW_DIR/testrc_2";  export RCFILE
    2424
    25 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-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_BUILDOPTS
     25SERVER_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
     27CLIENT_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
    2828
    2929do_test_1_a () {
     
    250250    CLIENT_BUILDOPTS_ORIG="${CLIENT_BUILDOPTS}"
    251251    #
    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
    254254    #
    255255    testrun2a_internal
     
    261261    fi
    262262    #
    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
    265265    #
    266266    testrun2a_internal
     
    272272    fi
    273273    #
    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
    276276    #
    277277    testrun2a_internal
     
    283283    fi
    284284    #
    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
    287287    #
    288288    testrun2a_internal
  • trunk/test/testtimesrv.sh

    r51 r172  
    3131{
    3232    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}";
    3535            return 1;
    3636        }
Note: See TracChangeset for help on using the changeset viewer.