Changeset 210 for trunk/test


Ignore:
Timestamp:
Jan 29, 2009, 7:54:16 PM (16 years ago)
Author:
katerina
Message:

Fix for ticket #136 (compile error); also enhance testsuite to catch compiler warnings.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/testcompile.sh

    r183 r210  
    2020#
    2121
    22 # dnmalloc + flawfinder + (35 * 3)
    23 MAXTEST=107; export MAXTEST
     22# dnmalloc + flawfinder + (36 * 3)
     23MAXTEST=110; export MAXTEST
    2424
    2525run_dnmalloc ()
     
    202202{
    203203        fail=0
     204        #
     205        # Compiler warnings can be OS specific, but at least
     206        # on Linux there should be none
     207        #
     208        isLinux=0
     209        uname -a | grep Linux >/dev/null
     210        if [ $? -eq 0 ]; then
     211            isLinux=1
     212            sed --in-place 's/-Wall/-Wall -Werror/' Makefile
     213        fi
     214        #
    204215        if test x$1 = x0; then
    205216                [ -z "$verbose" ]     ||  log_msg_ok  "configure...  $TEST";
     
    219230                fail=1
    220231        fi
     232        if [ $isLinux -eq 1 ]; then
     233            sed --in-place 's/-Wall -Werror/-Wall/' Makefile
     234        fi
    221235        if [ $fail -eq 1 ]; then
    222236            [ -z "$quiet" ] && log_fail $2 ${MAXTEST} "$TEST";
     
    335349        # test standalone compilation
    336350        #
     351        TEST="${S}standalone w/procchk w/portchk w/static${E}"
     352        #
     353        if test -r "Makefile"; then
     354                $MAKE distclean
     355        fi
     356        #
     357        ${TOP_SRCDIR}/configure --quiet  --prefix=$PW_DIR --localstatedir=$PW_DIR --with-config-file=$PW_DIR/samhainrc.test  --enable-process-check --enable-port-check --enable-static > /dev/null 2>> test_log
     358        #
     359        let "num = num + 1" >/dev/null
     360        testmake $? $num || let "numfail = numfail + 1"  >/dev/null
     361        let "num = num + 1" >/dev/null
     362        run_smatch $? $num || let "numfail = numfail + 1"  >/dev/null
     363        let "num = num + 1" >/dev/null
     364        run_uno $? $num || let "numfail = numfail + 1"  >/dev/null
     365
     366        #
     367        # test standalone compilation
     368        #
    337369        TEST="${S}standalone w/procchk w/portchk w/stealth${E}"
    338370        #
Note: See TracChangeset for help on using the changeset viewer.