Whamcloud - gitweb
Merge b_md to HEAD for 0.5.19 release.
[fs/lustre-release.git] / lustre / tests / llecho.sh
index 9a18574..c077223 100644 (file)
@@ -1,30 +1,17 @@
 #!/bin/sh
 
-SRCDIR="`dirname $0`"
-. $SRCDIR/common.sh
+LCONF=${LCONF:-../utils/lconf}
+NAME=${NAME:-echo}
 
-NETWORK=tcp
-LOCALHOST=localhost
-SERVER=localhost
-PORT=1234
+config=$NAME.xml
+mkconfig=./$NAME.sh
 
-setup_portals
-setup_lustre
+sh $mkconfig $config || exit 1
 
-$OBDCTL <<EOF
-device 0
-attach obdecho
-setup
-device 1
-attach ost
-setup 0
-device 2
-attach osc
-setup -1
-quit
-EOF
+$LCONF --reformat --gdb $OPTS $config || exit 4
 
 cat <<EOF
+
 run getattr tests as:
-obdctl --device 2 test_getattr 1000000
+../utils/lctl --device '\$ECHO_$SERVER' test_getattr 1000000
 EOF