libevent option for testbed.

git-svn-id: file:///svn/unbound/trunk@74 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
Wouter Wijngaards 2007-02-07 10:18:04 +00:00
parent 6ced5ef72a
commit 076c61d4e8
3 changed files with 8 additions and 0 deletions

View file

@ -5,6 +5,7 @@
it checks the logfiles to see if servers have come up. Takes 0.14s. it checks the logfiles to see if servers have come up. Takes 0.14s.
- set addrlen value when calling recvfrom. - set addrlen value when calling recvfrom.
- comparison of addrs more portable. - comparison of addrs more portable.
- LIBEVENT option for testbed to set libevent directory.
6 February 2007: Wouter 6 February 2007: Wouter
- reviewed code and improved in places. - reviewed code and improved in places.

View file

@ -68,6 +68,9 @@ function dotest()
if test x$LDNS != x; then if test x$LDNS != x; then
DISABLE="--with-ldns=$LDNS $DISABLE" DISABLE="--with-ldns=$LDNS $DISABLE"
fi fi
if test x$LIBEVENT != x; then
DISABLE="--with-libevent=$LIBEVENT $DISABLE"
fi
echossh $1 "cd $2; if test ! -f config.h -o configure -nt config.h; then ./configure $CONFIGURE_FLAGS $DISABLE; fi" echossh $1 "cd $2; if test ! -f config.h -o configure -nt config.h; then ./configure $CONFIGURE_FLAGS $DISABLE; fi"
echossh $1 "cd $2; if test -f "'"`which gmake`"'"; then gmake; else $MAKE_CMD; fi" echossh $1 "cd $2; if test -f "'"`which gmake`"'"; then gmake; else $MAKE_CMD; fi"
echossh $1 "cd $2; if test -f "'"`which gmake`"'"; then gmake doc; else $MAKE_CMD doc; fi" echossh $1 "cd $2; if test -f "'"`which gmake`"'"; then gmake doc; else $MAKE_CMD doc; fi"
@ -115,6 +118,7 @@ for((i=0; i<${#hostname[*]}; i=$i+1)); do
FIXCONFIGURE=no FIXCONFIGURE=no
RUN_TEST=yes RUN_TEST=yes
LDNS= LDNS=
LIBEVENT=
eval ${vars[$i]} eval ${vars[$i]}
echo "*** ${hostname[$i]} ${desc[$i]} ***" | tee -a $LOG_FILE | tee -a $REPORT_FILE echo "*** ${hostname[$i]} ${desc[$i]} ***" | tee -a $LOG_FILE | tee -a $REPORT_FILE
dotest ${hostname[$i]} ${dir[$i]} 2>&1 | tee -a $LOG_FILE dotest ${hostname[$i]} ${dir[$i]} 2>&1 | tee -a $LOG_FILE

View file

@ -22,6 +22,9 @@ Only important variable for unbound is the LDNS=<dir> variable that if present
forces --with-ldns=<dir> to be passed to ./configure. In case LDNS is not forces --with-ldns=<dir> to be passed to ./configure. In case LDNS is not
installed on the system itself, but present somewhere else. installed on the system itself, but present somewhere else.
You can also set LIBEVENT=<dir> for the libevent directory, if it is
installed in a nonstandard location.
*** Running the testbed *** Running the testbed
Run by executing the script. It will take all the hosts from the file in Run by executing the script. It will take all the hosts from the file in