X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Ftests%2Fllecho.sh;h=a30a6b65a5280d1ddc158a4e53478b6fb8c664f0;hb=e52a140eb7f65a63f07dbb7e2aaff7f9e22974f2;hp=e9f9ee59c11cf8751fef37eb8497598343c7f271;hpb=95ef6f9a5c8f7eafa3322cdc7f3e59ca15fdd664;p=fs%2Flustre-release.git diff --git a/lustre/tests/llecho.sh b/lustre/tests/llecho.sh index e9f9ee5..a30a6b6 100644 --- a/lustre/tests/llecho.sh +++ b/lustre/tests/llecho.sh @@ -1,20 +1,23 @@ #!/bin/sh -config=echo.xml -lmc=../utils/lmc -lconf=../utils/lconf +PATH=`dirname $0`/../utils:$PATH -# create nodes -$lmc -o $config --node localhost --net localhost tcp || exit 1 -$lmc -m $config --node localhost --obdtype=obdecho --ost|| exit 2 -# force the osc to be configured (this is normally done when it is mounted) -$lmc -m $config --node localhost --osc OSC_localhost|| exit 3 +LCONF=${LCONF:-lconf} +NAME=${NAME:-echo} -$lconf --gdb $config || exit 4 +config=$NAME.xml +mkconfig=$NAME.sh + +if [ "$LUSTRE" ]; then + lustre_opt="--lustre=$LUSTRE" +fi + +sh -x $mkconfig $config || exit 1 + +$LCONF $lustre_opt --reformat $@ $OPTS $config || exit 4 cat <