[ "$DEBUG_OFF" ] || DEBUG_OFF="eval sysctl -w lnet.debug=\"$DEBUG_LVL\""
[ "$DEBUG_ON" ] || DEBUG_ON="eval sysctl -w lnet.debug=0x33f0484"
+export TESTSUITE_LIST="RUNTESTS SANITY DBENCH BONNIE IOZONE FSX SANITYN LFSCK LIBLUSTRE REPLAY_SINGLE CONF_SANITY RECOVERY_SMALL REPLAY_OST_SINGLE REPLAY_DUAL INSANITY SANITY_QUOTA SANITY_SEC"
+
+if [ "$SLOW" = "no" ]; then
+# 5 min
+ export IOZONE="no"
+fi
+
if [ "$ACC_SM_ONLY" ]; then
- export RUNTESTS="no" SANITY="no" DBENCH="no" BONNIE="no" IOZONE="no" FSX="no" SANITYN="no" LFSCK="no" LIBLUSTRE="no" REPLAY_SINGLE="no" CONF_SANITY="no" RECOVERY_SMALL="no" REPLAY_OST_SINGLE="no" REPLAY_DUAL="no" INSANITY="no" SANITY_QUOTA="no"
+ for O in $TESTSUITE_LIST; do
+ export ${O}="no"
+ done
for O in $ACC_SM_ONLY; do
O=`echo $O | tr "[:lower:]" "[:upper:]"`
export ${O}="yes"
. $LUSTRE/tests/test-framework.sh
init_test_env $@
+if $GSS; then
+ # liblustre doesn't support GSS
+ export LIBLUSTRE=no
+fi
+
SETUP=${SETUP:-setupall}
FORMAT=${FORMAT:-formatall}
CLEANUP=${CLEANUP:-stopall}
bash runtests
$CLEANUP
$SETUP
+ RUNTESTS="done"
fi
if [ "$SANITY" != "no" ]; then
bash sanity.sh
$CLEANUP
$SETUP
+ SANITY="done"
fi
which dbench > /dev/null 2>&1 || DBENCH=no
[ $THREADS -lt $DB_THREADS ] && DB_THREADS=$THREADS
$DEBUG_OFF
- bash rundbench 1
- $DEBUG_ON
- $CLEANUP
- $SETUP
+ duration=""
+ [ "$SLOW" = "no" ] && duration=" -t 120"
+ if [ "$SLOW" != "no" -o $DB_THREADS -eq 1 ]; then
+ bash rundbench 1 $duration
+ $DEBUG_ON
+ $CLEANUP
+ $SETUP
+ fi
if [ $DB_THREADS -gt 1 ]; then
$DEBUG_OFF
- bash rundbench $DB_THREADS
+ bash rundbench $DB_THREADS $duration
$DEBUG_ON
$CLEANUP
$SETUP
fi
rm -f /mnt/lustre/`hostname`/client.txt
+ DBENCH="done"
fi
- chown $UID $MOUNT && chmod 700 $MOUNT
+ chown $UID $MOUNT
which bonnie++ > /dev/null 2>&1 || BONNIE=no
if [ "$BONNIE" != "no" ]; then
title bonnie
$DEBUG_ON
$CLEANUP
$SETUP
+ BONNIE="done"
fi
export O_DIRECT
VER=`iozone -v | awk '/Revision:/ { print $3 }'`
echo "iozone $VER too old for multi-thread test"
fi
+ IOZONE="done"
fi
if [ "$FSX" != "no" ]; then
$DEBUG_ON
$CLEANUP
$SETUP
+ FSX="done"
fi
if [ "$SANITYN" != "no" ]; then
$DEBUG_ON
$CLEANUP
$SETUP
+ SANITYN="done"
fi
if [ "$LFSCK" != "no" -a -x /usr/sbin/lfsck ]; then
else
echo "remote OST, skipping test"
fi
+ LFSCK="done"
fi
if [ "$LIBLUSTRE" != "no" ]; then
[ -f /etc/modprobe.conf ] && MODPROBECONF=/etc/modprobe.conf
[ -f /etc/modprobe.d/Lustre ] && MODPROBECONF=/etc/modprobe.d/Lustre
- LNETOPTS="$(awk '/^options lnet/ { print $0}' $MODPROBECONF | sed 's/^options lnet //g') accept=all" MDS_MOUNT_OPTS="${MDS_MOUNT_OPTS},noacl" $SETUP
+ LNETOPTS="$(awk '/^options lnet/ { print $0}' $MODPROBECONF | \
+ sed 's/^options lnet //g') accept=all" \
+ MDS_MOUNT_OPTS=$(echo $MDS_MOUNT_OPTS | sed 's/^[ \t]*//;s/[ \t]*$//') \
+ MDS_MOUNT_OPTS="${MDS_MOUNT_OPTS},noacl" \
+ MDS_MOUNT_OPTS=${MDS_MOUNT_OPTS/#,/-o } \
+ $SETUP
export LIBLUSTRE_MOUNT_POINT=$MOUNT2
export LIBLUSTRE_MOUNT_TARGET=$MGSNID:/$FSNAME
export LIBLUSTRE_TIMEOUT=`cat /proc/sys/lustre/timeout`
fi
$CLEANUP
#$SETUP
+ LIBLUSTRE="done"
fi
$CLEANUP
if [ "$REPLAY_SINGLE" != "no" ]; then
title replay-single
bash replay-single.sh
+ REPLAY_SINGLE="done"
fi
if [ "$CONF_SANITY" != "no" ]; then
title conf-sanity
bash conf-sanity.sh
+ CONF_SANITY="done"
fi
if [ "$RECOVERY_SMALL" != "no" ]; then
title recovery-small
bash recovery-small.sh
+ RECOVERY_SMALL="done"
fi
if [ "$REPLAY_OST_SINGLE" != "no" ]; then
title replay-ost-single
bash replay-ost-single.sh
+ REPLAY_OST_SINGLE="done"
fi
if [ "$REPLAY_DUAL" != "no" ]; then
title replay-dual
bash replay-dual.sh
+ REPLAY_DUAL="done"
fi
if [ "$INSANITY" != "no" ]; then
title insanity
bash insanity.sh -r
+ INSANITY="done"
fi
if [ "$SANITY_QUOTA" != "no" ]; then
title sanity-quota
bash sanity-quota.sh
+ SANITY_QUOTA="done"
fi
+if [ "$SANITY_SEC" != "no" ]; then
+ title sanity-sec
+ bash sanity-sec.sh
+fi
RC=$?
title FINISHED
echo "Finished at `date` in $((`date +%s` - $STARTTIME))s"
echo "Tests ran: $RANTEST"
-
+print_summary
echo "$0: completed with rc $RC" && exit $RC