From 076c61d4e845ced7cb57fe67c804520e24571744 Mon Sep 17 00:00:00 2001 From: Wouter Wijngaards Date: Wed, 7 Feb 2007 10:18:04 +0000 Subject: [PATCH] libevent option for testbed. git-svn-id: file:///svn/unbound/trunk@74 be551aaa-1e26-0410-a405-d3ace91eadb9 --- doc/Changelog | 1 + testcode/testbed.sh | 4 ++++ testcode/testbed.txt | 3 +++ 3 files changed, 8 insertions(+) diff --git a/doc/Changelog b/doc/Changelog index 33a892ce4..f0d4b9811 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -5,6 +5,7 @@ it checks the logfiles to see if servers have come up. Takes 0.14s. - set addrlen value when calling recvfrom. - comparison of addrs more portable. + - LIBEVENT option for testbed to set libevent directory. 6 February 2007: Wouter - reviewed code and improved in places. diff --git a/testcode/testbed.sh b/testcode/testbed.sh index d88656146..454a524e2 100755 --- a/testcode/testbed.sh +++ b/testcode/testbed.sh @@ -68,6 +68,9 @@ function dotest() if test x$LDNS != x; then DISABLE="--with-ldns=$LDNS $DISABLE" 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 "'"`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" @@ -115,6 +118,7 @@ for((i=0; i<${#hostname[*]}; i=$i+1)); do FIXCONFIGURE=no RUN_TEST=yes LDNS= + LIBEVENT= eval ${vars[$i]} echo "*** ${hostname[$i]} ${desc[$i]} ***" | tee -a $LOG_FILE | tee -a $REPORT_FILE dotest ${hostname[$i]} ${dir[$i]} 2>&1 | tee -a $LOG_FILE diff --git a/testcode/testbed.txt b/testcode/testbed.txt index 52744b555..b0175049e 100644 --- a/testcode/testbed.txt +++ b/testcode/testbed.txt @@ -22,6 +22,9 @@ Only important variable for unbound is the LDNS= variable that if present forces --with-ldns= to be passed to ./configure. In case LDNS is not installed on the system itself, but present somewhere else. +You can also set LIBEVENT= for the libevent directory, if it is +installed in a nonstandard location. + *** Running the testbed Run by executing the script. It will take all the hosts from the file in -- 2.47.2