Whamcloud - gitweb
Update acceptance-small.sh from b_lov branch. Allows fully specifying
authoradilger <adilger>
Thu, 14 Nov 2002 06:34:46 +0000 (06:34 +0000)
committeradilger <adilger>
Thu, 14 Nov 2002 06:34:46 +0000 (06:34 +0000)
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

index 6ba9864..acdb3aa 100755 (executable)
@@ -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