Skip to content

Commit

Permalink
Updated pounder's configuration files
Browse files Browse the repository at this point in the history
Updated libpounder.sh file to reflect changes in the new pounder
version. Added a config file containing user-modifiable environment
variables along with detailed descriptions of what each does.

Signed-off-by: Lucy Liang <[email protected]>
  • Loading branch information
Lucy Liang authored and metan-ucw committed Nov 2, 2011
1 parent ab75e41 commit b23a3c9
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 3 deletions.
42 changes: 42 additions & 0 deletions tools/pounder21/config
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
#Set the following variables as needed

export DURATION=0 #Time in seconds for pounder to run. Setting this variable
#to 0 will not put an upper bound on pounder run time.

export MAX_FAILURES=5 #Maximum number of test failures allowed for each subtest
#before aborting. Setting this variable to 0 will not put
#an upper bound on any subtest failures.

export NFS_LOGGING=0 #1 to enable NFS logging of pounder output, pounder will
#log output to remote directory on NFS server specified
#by $NFS_LOGDIR and $NFS_LOGSERVER (see below), which
#will be mounted on $POUNDER_LOGLOCAL (see libpounder.sh).
#0 to disable this feature, all output for pounder runs
#will be stored locally directly in $POUNDER_LOGLOCAL instead.

export NFS_LOGSERVER=0 #IP address of the NFS server to use for logging pounder results.
#NFS_LOGGING should be enabled to use this feature.

export NFS_LOGDIR=/path/to/log #path to the log directory on $NFS_LOGSERVER; If $NFS_LOGGING
#is enabled, pounder will attempt to mount $NFS_LOGSERVER:$NFS_LOGDIR/
#on $POUNDER_LOGLOCAL (see libpounder.sh).

export POUNDER_CACHE=0 #address of the cache to use for fetching outside packages,
#The cache is a user-created web-accessible directory
#containing cached tarballs/scripts/etc. used for
#the various tests you intend to build. This is optional
#but useful for saving download time.

#These variables below are used by specific subtests contained in the provided default test scheduler,
#but they can be incorporated into user-defined subtests as well.

export DO_X_TESTS=0 #0 disables X system testing, 1 enables X system testing.
#Used by the xterm_stress subtest.

export NFS_SERVER=0 #IP address of the NFS server to use for nfs and ping_nfs
#subtests. Setting this variable to 0 disables nfs testing.

export NTP_SERVER=pool.ntp.org #Or use another NTP server of your choice.
#Used by the time_drift subtest.

#Feel free to add more variables as you see fit.
5 changes: 2 additions & 3 deletions tools/pounder21/libpounder.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,12 @@ export TESTS=`/bin/ls test_scripts/`
export BUILDS=`/bin/ls build_scripts/`
export POUNDER_HOME=`pwd`
export POUNDER_PIDFILE="$POUNDER_HOME/pounder.pid"
export POUNDER_LOGLOCAL="$POUNDER_HOME/log/"
export POUNDER_LOGLOCAL="$POUNDER_HOME/log"
export POUNDER_LOGDIR="$POUNDER_LOGLOCAL/$DATE/"
export POUNDER_TMPDIR="$POUNDER_HOME/tmp/"
export POUNDER_OPTDIR="$POUNDER_HOME/opt/"
export POUNDER_SRCDIR="$POUNDER_HOME/src/"
export POUNDER_CFGDIR="$POUNDER_HOME/config/"
export POUNDER_VERSION=`head -1 "$POUNDER_HOME/README" | awk -F " " '{print $6}' | sed -e 's/\.//g'`
export POUNDER_VERSION=`head -1 "$POUNDER_HOME/README" | awk -F " " '{print $3}' | sed -e 's/\.//g'`
export NR_CPUS=`getconf _NPROCESSORS_ONLN`
export NFS_LOGLOCAL="`echo "$HOSTNAME" | sed -e 's/\..*//g'`/`uname -r`-`uname -m`"

Expand Down

0 comments on commit b23a3c9

Please sign in to comment.