Changes in trunk/test/testrun_2b.sh [30:19]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/testrun_2b.sh
r30 r19 1 1 #! /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 modify8 # it under the terms of the GNU General Public License as published by9 # the Free Software Foundation; either version 2 of the License, or10 # (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 of14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the15 # GNU General Public License for more details.16 #17 # You should have received a copy of the GNU General Public License18 # along with this program; if not, write to the Free Software19 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.20 #21 2 22 3 LOGFILE="$PW_DIR/.samhain_log"; export LOGFILE … … 26 7 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 27 8 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_BUILDOPTS9 CLIENT_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 29 10 30 11 testrun2b_internal () … … 80 61 81 62 cp samhain samhain.build || return 1 82 $MAKEclean >/dev/null || return 163 make clean >/dev/null || return 1 83 64 84 65 ${TOP_SRCDIR}/configure ${SERVER_BUILDOPTS} … … 144 125 rm -f ./.samhain_lock 145 126 146 SHCLT=`./yule -P $SHPW `127 SHCLT=`./yule -P $SHPW | sed s%HOSTNAME%${SH_LOCALHOST}%` 147 128 148 129 if test x$? = x0; then … … 153 134 fi 154 135 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 163 137 164 138 cp "${RCFILE_C}" ./rc.${SH_LOCALHOST} … … 166 140 167 141 ALTHOST=`find_hostname` 168 cp "${RCFILE_C}""./rc.${ALTHOST}"142 cp ./testrc_2 "./rc.${ALTHOST}" 169 143 cp ./file.${SH_LOCALHOST} "./file.${ALTHOST}" 2>/dev/null 170 144 } … … 192 166 193 167 testrun2b_internal "$GPG" 194 195 SAVE_VALGRIND="${VALGRIND}"; VALGRIND=''; export VALGRIND 168 196 169 do_test_1_a 197 VALGRIND="${SAVE_VALGRIND}"; export VALGRIND198 170 if [ $? -eq 0 ]; then 199 171 [ -z "$quiet" ] && log_ok 1 ${MAXTEST} "Client download+logging w/gpg";
Note:
See TracChangeset
for help on using the changeset viewer.