Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/testrun_2b.sh

    r30 r19  
    11#! /bin/sh
    2 
    3 #
    4 # Copyright Rainer Wichmann (2006)
    5 #
    6 # License Information:
    7 # This program is free software; you can redistribute it and/or modify
    8 # it under the terms of the GNU General Public License as published by
    9 # the Free Software Foundation; either version 2 of the License, or
    10 # (at your option) any later version.
    11 #
    12 # This program is distributed in the hope that it will be useful,
    13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
    14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    15 # GNU General Public License for more details.
    16 #
    17 # You should have received a copy of the GNU General Public License
    18 # along with this program; if not, write to the Free Software
    19 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
    20 #
    212
    223LOGFILE="$PW_DIR/.samhain_log"; export LOGFILE
     
    267SERVER_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
    278
    28 CLIENT_BUILDOPTS="--quiet  $TRUST --enable-micro-stealth=137 --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_C} --with-data-file=REQ_FROM_SERVER$PW_DIR/.samhain_file --with-logserver=localhost  --with-log-file=$LOGFILE --with-pid-file=$PW_DIR/.samhain_lock"; export CLIENT_BUILDOPTS
     9CLIENT_BUILDOPTS="--quiet  $TRUST --enable-micro-stealth=137 --enable-debug --enable-network=client --enable-srp --prefix=$PW_DIR --localstatedir=$PW_DIR --with-config-file=REQ_FROM_SERVER${RCFILE_C} --with-data-file=REQ_FROM_SERVER$PW_DIR/.samhain_file --with-logserver=localhost  --with-log-file=$LOGFILE --with-pid-file=$PW_DIR/.samhain_lock"; export CLIENT_BUILDOPTS
    2910
    3011testrun2b_internal ()
     
    8061
    8162    cp samhain samhain.build || return 1
    82     $MAKE clean >/dev/null || return 1
     63    make clean >/dev/null || return 1
    8364   
    8465    ${TOP_SRCDIR}/configure ${SERVER_BUILDOPTS}
     
    144125    rm -f ./.samhain_lock
    145126   
    146     SHCLT=`./yule -P $SHPW`
     127    SHCLT=`./yule -P $SHPW | sed s%HOSTNAME%${SH_LOCALHOST}%`
    147128   
    148129    if test x$? = x0; then
     
    153134    fi
    154135   
    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 
     136    echo $SHCLT >> testrc_2
    163137   
    164138    cp    "${RCFILE_C}"              ./rc.${SH_LOCALHOST}
     
    166140
    167141    ALTHOST=`find_hostname`
    168     cp    "${RCFILE_C}"          "./rc.${ALTHOST}"
     142    cp    ./testrc_2       "./rc.${ALTHOST}"
    169143    cp    ./file.${SH_LOCALHOST} "./file.${ALTHOST}" 2>/dev/null
    170144}
     
    192166   
    193167            testrun2b_internal "$GPG"
    194 
    195             SAVE_VALGRIND="${VALGRIND}"; VALGRIND=''; export VALGRIND
     168   
    196169            do_test_1_a
    197             VALGRIND="${SAVE_VALGRIND}"; export VALGRIND
    198170            if [ $? -eq 0 ]; then
    199171                [ -z "$quiet" ] && log_ok   1 ${MAXTEST} "Client download+logging w/gpg";
Note: See TracChangeset for help on using the changeset viewer.