#!/bin/sh
-SRCDIR="`dirname $0`"
-. $SRCDIR/common.sh
+config=echo.xml
+lmc=../utils/lmc
+lconf=../utils/lconf
-NETWORK=tcp
-LOCALHOST=localhost
-SERVER=localhost
-PORT=1234
+# 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
-setup_portals
-setup_lustre
-
-$OBDCTL <<EOF
-device 0
-attach obdecho OBDDEV
-setup
-device 1
-attach ost OSTDEV
-setup 0
-device 2
-attach osc OSCDEV
-setup -1
-quit
-EOF
+$lconf --gdb $config
cat <<EOF
run getattr tests as:
-obdctl --device 2 test_getattr 1000000
+../utils/lctl --device '\$OSC_localhost' test_getattr 1000000
EOF
+