#!/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