Changeset 29 for trunk/test


Ignore:
Timestamp:
Apr 11, 2006, 1:48:18 PM (19 years ago)
Author:
rainer
Message:

Fixes for test suite, OpenBSD portability, self-resolving, and suidchk patch by Neil

Location:
trunk/test
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/test.sh

    r27 r29  
    185185
    186186PW_DIR=`pwd`; export PW_DIR
     187
     188#
     189# group/world writeable will cause problems
     190#
     191chmod go-w .
    187192#
    188193#
  • trunk/test/testcompile.sh

    r27 r29  
    223223        if [ -z "$GPG" ]; then
    224224            log_skip $num $MAXTEST 'gpg not in PATH'
     225            let "num = num + 1" >/dev/null
    225226        else
    226227            if test -r "Makefile"; then
     
    370371        if [ -z "$GPG" ]; then
    371372            log_skip $num $MAXTEST 'gpg not in PATH'
    372             let "num = num + 1" >/dev/null
    373             log_skip $num $MAXTEST 'gpg not in PATH'
     373            let "num = num + 3" >/dev/null
    374374        else
    375375            if test -r "Makefile"; then
  • trunk/test/testrun_2.sh

    r27 r29  
    732732        rm -f ./.samhain_lock*
    733733
    734         SHCLT=`./yule -P $SHPW | sed s%HOSTNAME%${SH_LOCALHOST}%`
     734        SHCLT=`./yule -P $SHPW`
    735735
    736736        if test x$? = x0; then
     
    741741        fi
    742742
    743         echo $SHCLT >> testrc_2
     743        SHCLT1=`echo "${SHCLT}"  | sed s%HOSTNAME%${SH_LOCALHOST}%`
     744        AHOST=`find_hostname`
     745        SHCLT2=`echo "${SHCLT}"  | sed s%HOSTNAME%${AHOST}%`
     746       
     747
     748        echo $SHCLT1 >> testrc_2
     749        echo $SHCLT2 >> testrc_2
    744750        cp testrc_2 testrc_22
    745751
  • trunk/test/testrun_2a.sh

    r27 r29  
    197197        rm -f ./.samhain_lock
    198198
    199         SHCLT=`./yule -P $SHPW | sed s%HOSTNAME%${SH_LOCALHOST}%`
     199        SHCLT=`./yule -P $SHPW`
    200200
    201201        if test x$? = x0; then
     
    206206        fi
    207207
    208         echo $SHCLT >> testrc_2
     208        SHCLT1=`echo "${SHCLT}"  | sed s%HOSTNAME%${SH_LOCALHOST}%`
     209        AHOST=`find_hostname`
     210        SHCLT2=`echo "${SHCLT}"  | sed s%HOSTNAME%${AHOST}%`
     211       
     212
     213        echo $SHCLT1 >> testrc_2
     214        echo $SHCLT2 >> testrc_2
     215
    209216
    210217        cp    ./testrc_2       ./rc.${SH_LOCALHOST}
  • trunk/test/testrun_2b.sh

    r27 r29  
    144144    rm -f ./.samhain_lock
    145145   
    146     SHCLT=`./yule -P $SHPW | sed s%HOSTNAME%${SH_LOCALHOST}%`
     146    SHCLT=`./yule -P $SHPW`
    147147   
    148148    if test x$? = x0; then
     
    153153    fi
    154154   
    155     echo $SHCLT >> testrc_2
     155    SHCLT1=`echo "${SHCLT}"  | sed s%HOSTNAME%${SH_LOCALHOST}%`
     156    AHOST=`find_hostname`
     157    SHCLT2=`echo "${SHCLT}"  | sed s%HOSTNAME%${AHOST}%`
     158       
     159
     160    echo $SHCLT1 >> testrc_2
     161    echo $SHCLT2 >> testrc_2
     162
    156163   
    157164    cp    "${RCFILE_C}"              ./rc.${SH_LOCALHOST}
Note: See TracChangeset for help on using the changeset viewer.