[ "$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"
+
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"
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
$SETUP
fi
rm -f /mnt/lustre/`hostname`/client.txt
+ DBENCH="done"
fi
chown $UID $MOUNT
$DEBUG_ON
$CLEANUP
$SETUP
+ BONNNIE="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
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
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