From 5aa870e6b5c7647c1ea7c3561c022b3a9e596e28 Mon Sep 17 00:00:00 2001 From: adilger Date: Thu, 14 Nov 2002 06:34:46 +0000 Subject: [PATCH] Update acceptance-small.sh from b_lov branch. Allows fully specifying LOV/non-lov configs and/or not running one of those configs, and which of runtests, sanity, bonnie, dbench NOT to run (by default everything is run). It could probably just be set up to take a list of configs as command-line arguments to test instead. We currently ignore the entire issue of mutli- client setup. --- 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