From 6f9a1da42797c0b03d71b277b64fdf8f042cdc28 Mon Sep 17 00:00:00 2001 From: adilger Date: Thu, 14 Nov 2002 02:58:10 +0000 Subject: [PATCH] Allow running LOV and non-LOV tests separately. --- lustre/tests/acceptance-small.sh | 41 ++++++++++++++++++++-------------------- 1 file changed, 21 insertions(+), 20 deletions(-) diff --git a/lustre/tests/acceptance-small.sh b/lustre/tests/acceptance-small.sh index 6ba9864..acdb3aa 100755 --- a/lustre/tests/acceptance-small.sh +++ b/lustre/tests/acceptance-small.sh @@ -3,26 +3,27 @@ # the CVS HEAD are allowed. set -vxe -if [ "$RUNTESTS" != "no" ]; then - sh local.sh - sh runtests --reformat local.xml +if [ "$LOCAL" != no ]; then + export NAME=${LOCAL:-local} + sh ${NAME}.sh + [ "$RUNTESTS" != "no" ] && sh runtests --reformat ${NAME}.xml - sh lov.sh - sh runtests --reformat lov.xml + mount | grep lustre_lite || sh llmount.sh + [ "$SANITY" != "no" ] && sh sanity.sh + [ "$DBENCH" != "no" ] && sh rundbench 1 + [ "$BONNIE" != "no" ] && bonnie++ -s 0 -n 10 -u 0 -d /mnt/lustre + sync; sync + sh llmountcleanup.sh fi -export NAME=local -sh llmount.sh -[ "$SANITY" != "no" ] && sh sanity.sh -[ "$DBENCH" != "no" ] && sh rundbench 1 -[ "$BONNIE" != "no" ] && bonnie++ -s 0 -n 10 -u 0 -d /mnt/lustre -sync; sync -sh llmountcleanup.sh - -export NAME=lov -llmount.sh -[ "$SANITY" != "no" ] && sh sanity.sh -[ "$DBENCH" != "no" ] && sh rundbench 1 -[ "$BONNIE" != "no" ] && bonnie++ -s 0 -n 10 -u 0 -d /mnt/lustre -sync; sync -sh llmountcleanup.sh +if [ "$LOV" != no ]; then + export NAME=${LOV:-lov} + sh ${NAME}.sh + [ "$RUNTESTS" != "no" ] && sh runtests --reformat ${NAME}.xml + mount | grep lustre_lite || sh llmount.sh + [ "$SANITY" != "no" ] && sh sanity.sh + [ "$DBENCH" != "no" ] && sh rundbench 1 + [ "$BONNIE" != "no" ] && bonnie++ -s 0 -n 10 -u 0 -d /mnt/lustre + sync; sync + sh llmountcleanup.sh +fi -- 1.8.3.1