2 # suggested boilerplate for test script
4 export PATH=`dirname $0`/../utils:$PATH
8 LLMOUNT=${LLMOUNT:-llmount}
9 SECURITY=${SECURITY:-"null"}
11 config=$(dirname $0)/$NAME.xml
12 mkconfig=$(dirname $0)/$NAME.sh
15 start_krb5_kdc || exit 1
16 start_lsvcgssd || exit 2
19 if [ "$PORTALS" ]; then
20 portals_opt="--portals=$PORTALS"
23 if [ "$LUSTRE" ]; then
24 lustre_opt="--lustre=$LUSTRE"
27 if [ "$LDAPURL" ]; then
28 conf_opt="--ldapurl $LDAPURL --config $NAME"
30 sh $mkconfig $config || exit 4
34 [ "$NODE" ] && node_opt="--node $NODE"
35 [ "$DEBUG" ] && debug_opt="--ptldebug=$DEBUG"
37 ${LCONF} $NOMOD --mds_sec $SECURITY $portals_opt $lustre_opt $node_opt \
38 ${REFORMAT:---reformat} $@ $conf_opt || exit 5
40 if [ "$MOUNT2" ]; then
41 $LLMOUNT -v -o mds_sec=$SECURITY `hostname`:/mds1/client $MOUNT2 || exit 6