Whamcloud - gitweb
Silence some compiler warnings.
[fs/lustre-release.git] / lustre / tests / llmount.sh
index bc30630..d8f37c5 100755 (executable)
@@ -1,12 +1,34 @@
 #!/bin/sh
 # suggested boilerplate for test script
 
-LCONF=${LCONF:-../utils/lconf}
+export PATH=`dirname $0`/../utils:$PATH
+
+LCONF=${LCONF:-lconf}
 NAME=${NAME:-local}
 
 config=$NAME.xml
 mkconfig=$NAME.sh
 
-sh $mkconfig $config || exit 1
+if [ "$PORTALS" ]; then
+  portals_opt="--portals=$PORTALS"
+fi
+
+if [ "$LUSTRE" ]; then
+  lustre_opt="--lustre=$LUSTRE"
+fi
+
+if [ "$LDAPURL" ]; then
+    conf_opt="--ldapurl $LDAPURL --config $NAME"
+else
+    sh $mkconfig $config || exit 1
+    conf_opt="$config"
+fi    
+
+[ "$NODE" ] && node_opt="--node $NODE"
+
+if [ "$1" = "-v" ]; then
+  verbose="-v"
+fi
 
-${LCONF} --reformat --gdb $config || exit 2
+${LCONF} $portals_opt $lustre_opt $node_opt ${REFORMAT:---reformat} \
+    ${GDB:---gdb} $verbose $conf_opt  || exit 2