Whamcloud - gitweb
b=3031
[fs/lustre-release.git] / lustre / tests / llecho.sh
index 95d40f8..a30a6b6 100644 (file)
@@ -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 
-$lmc -m $config --node localhost --obdtype=obdecho --ost
-# force the osc to be configured (this is normally done when it is mounted)
-$lmc -m $config --node localhost --osc OSC_localhost
+LCONF=${LCONF:-lconf}
+NAME=${NAME:-echo}
 
-$lconf --gdb $config
+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 <<EOF
 
 run getattr tests as:
-../utils/lctl --device '\$OSC_localhost' test_getattr 1000000
+`dirname $0`../utils/lctl --device '\$ECHO_$SERVER' test_getattr 1000000
 EOF
-