Whamcloud - gitweb
Merge b_md to HEAD for 0.5.19 release.
[fs/lustre-release.git] / lustre / tests / llecho.sh
index e9f9ee5..c077223 100644 (file)
@@ -1,20 +1,17 @@
 #!/bin/sh
 
-config=echo.xml
-lmc=../utils/lmc
-lconf=../utils/lconf
+LCONF=${LCONF:-../utils/lconf}
+NAME=${NAME:-echo}
 
-# 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
+config=$NAME.xml
+mkconfig=./$NAME.sh
 
-$lconf --gdb $config || exit 4
+sh $mkconfig $config || exit 1
+
+$LCONF --reformat --gdb $OPTS $config || exit 4
 
 cat <<EOF
 
 run getattr tests as:
-../utils/lctl --device '\$OSC_localhost' test_getattr 1000000
+../utils/lctl --device '\$ECHO_$SERVER' test_getattr 1000000
 EOF
-