2 # script which _must_ complete successfully (at minimum) before checkins to
3 # the CVS HEAD are allowed.
6 [ "$CONFIGS" ] || CONFIGS="local lov"
7 [ "$THREADS" ] || THREADS=1
8 [ "$SIZE" ] || SIZE=20480
9 [ "$RSIZE" ] || RSIZE=64
10 [ "$UID" ] || UID=1000
11 [ "$MNT" ] || MNT=/mnt/lustre
12 [ "$TMP" ] || TMP=/tmp
13 [ "$COUNT" ] || COUNT=1000
14 [ "$DEBUG_OFF" ] || DEBUG_OFF="eval echo 0 > /proc/sys/portals/debug"
16 for NAME in $CONFIGS; do
18 [ -e $NAME.sh ] && sh $NAME.sh
19 [ ! -e $NAME.xml ] && echo "no config '$NAME.xml'" 1>&2 && exit 1
21 if [ "$RUNTESTS" != "no" ]; then
25 [ "$SANITY" != "no" ] && sh sanity.sh
26 [ "$SANITY" != "no" ] && START=" " CLEAN=" " sh sanity.sh
28 if [ "$DBENCH" != "no" ]; then
29 mount | grep $MNT || sh llmount.sh
34 if [ $THREADS -gt 1 ]; then
40 rm -f /mnt/lustre/client.txt
42 chown $UID $MNT && chmod 700 $MNT
43 if [ "$BONNIE" != "no" ]; then
44 mount | grep $MNT || sh llmount.sh
46 bonnie++ -s 0 -n 10 -u $UID -d $MNT
50 IOZONE_OPTS="-i 0 -i 1 -i 2 -+d -r $RSIZE -s $SIZE"
51 IOZONE_FILE="-f $MNT/iozone"
52 if [ "$IOZONE" != "no" ]; then
53 mount | grep $MNT || sh llmount.sh
55 iozone $IOZONE_OPTS $IOZONE_FILE
59 if [ "$IOZONE_DIR" != "no" ]; then
60 mount | grep $MNT || sh llmount.sh
62 iozone -I $IOZONE_OPTS $IOZONE_FILE.odir
63 IOZVER=`iozone -v | awk '/Revision:/ { print $3 }' | tr -d '.'`
66 if [ "$THREADS" -gt 1 -a "$IOZVER" -ge 3145 ]; then
70 SIZE=`expr $SIZE / $THREADS`
71 while [ $THREAD -le $THREADS ]; do
72 IOZONE_FILE="$IOZONE_FILE $MNT/iozone.$THREAD"
73 THREAD=`expr $THREAD + 1`
75 iozone -I $IOZONE_OPTS -t $THREADS $IOZONE_FILE
78 elif [ $IOZVER -lt 3145 ]; then
79 VER=`iozone -v | awk '/Revision:/ { print $3 }'`
80 echo "iozone $VER too old for multi-threaded tests"
83 if [ "$FSX" != "no" ]; then
84 mount | grep $MNT || sh llmount.sh
86 ./fsx -W -c 50 -p 1000 -P $TMP -l 1024000 -N $(($COUNT * 100)) $MNT/fsxfile
90 mount | grep $MNT && sh llmountcleanup.sh
93 [ "$SANITYN" != "no" ] && NAME=mount2 sh sanityN.sh