SRCDIR="`dirname $0`"
. $SRCDIR/common.sh
-setup
-
-$PTLCTL <<EOF
-mynid localhost
-setup tcp
-connect localhost 1234
-add_uuid self
-add_uuid mds
-quit
-EOF
+NETWORK=tcp
+LOCALHOST=localhost
+SERVER=localhost
+PORT=2432
+
+setup_portals
+setup_lustre
MDSFS=ext2
-new_fs ${MDSFS} /tmp/mds 10000
+new_fs ${MDSFS} /tmp/mds 1000
MDS=$LOOPDEV
echo 0xffffffff > /proc/sys/portals/debug
-$R/usr/src/obd/utils/obdctl <<EOF
+$OBDCTL <<EOF
device 0
-attach mds
+attach mds MDSDEV
setup ${MDS} ${MDSFS}
quit
EOF
mknod /dev/request c 10 244
-# $R/usr/src/obd/tests/testreq
\ No newline at end of file
+
+./testreq --getattr
+./testreq --setattr
+./testreq --readpage
+./testreq --open
+./testreq --close junk_file_handle
+./testreq --create
+
+echo "Done."