2 # suggested boilerplate for test script
4 export PATH=`dirname $0`/../utils:$PATH
8 LLMOUNT=${LLMOUNT:-llmount}
13 if [ "$PORTALS" ]; then
14 portals_opt="--portals=$PORTALS"
17 if [ "$LUSTRE" ]; then
18 lustre_opt="--lustre=$LUSTRE"
21 if [ "$LDAPURL" ]; then
22 conf_opt="--ldapurl $LDAPURL --config $NAME"
24 sh $mkconfig $config || exit 1
28 [ "$NODE" ] && node_opt="--node $NODE"
30 ${LCONF} $NOMOD $portals_opt $lustre_opt $node_opt ${REFORMAT:---reformat} $@ \
33 [ $DEBUG ] && sysctl -w portals.debug=$DEBUG
35 if [ "$MOUNT2" ]; then
36 $LLMOUNT -v `hostname`:/mds1/client $MOUNT2 || exit 3