Changes in trunk/test/testrun_2b.sh [19:30]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/testrun_2b.sh
r19 r30 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 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 # 2 21 3 22 LOGFILE="$PW_DIR/.samhain_log"; export LOGFILE … … 7 26 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 8 27 9 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_BUILDOPTS28 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 10 29 11 30 testrun2b_internal () … … 61 80 62 81 cp samhain samhain.build || return 1 63 makeclean >/dev/null || return 182 $MAKE clean >/dev/null || return 1 64 83 65 84 ${TOP_SRCDIR}/configure ${SERVER_BUILDOPTS} … … 125 144 rm -f ./.samhain_lock 126 145 127 SHCLT=`./yule -P $SHPW | sed s%HOSTNAME%${SH_LOCALHOST}%`146 SHCLT=`./yule -P $SHPW` 128 147 129 148 if test x$? = x0; then … … 134 153 fi 135 154 136 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 137 163 138 164 cp "${RCFILE_C}" ./rc.${SH_LOCALHOST} … … 140 166 141 167 ALTHOST=`find_hostname` 142 cp ./testrc_2"./rc.${ALTHOST}"168 cp "${RCFILE_C}" "./rc.${ALTHOST}" 143 169 cp ./file.${SH_LOCALHOST} "./file.${ALTHOST}" 2>/dev/null 144 170 } … … 166 192 167 193 testrun2b_internal "$GPG" 168 194 195 SAVE_VALGRIND="${VALGRIND}"; VALGRIND=''; export VALGRIND 169 196 do_test_1_a 197 VALGRIND="${SAVE_VALGRIND}"; export VALGRIND 170 198 if [ $? -eq 0 ]; then 171 199 [ -z "$quiet" ] && log_ok 1 ${MAXTEST} "Client download+logging w/gpg";
Note:
See TracChangeset
for help on using the changeset viewer.