Whamcloud - gitweb
- module insert code moved to tests/common.sh
[fs/lustre-release.git] / lustre / tests / llecho.sh
1 #!/bin/sh
2
3 SRCDIR="`dirname $0`"
4 . $SRCDIR/common.sh
5
6 setup
7
8 $R/usr/src/portals/linux/utils/ptlctl <<EOF
9 mynid localhost
10 setup tcp
11 connect localhost 1234
12 add_uuid self
13 add_uuid ost
14 quit
15 EOF
16
17 mknod /dev/obd c 10 241
18 echo 8191 > /proc/sys/portals/debug
19 echo 8191 > /proc/sys/portals/trace
20
21 $R/usr/src/obd/utils/obdctl <<EOF
22 device 0
23 attach obdecho
24 setup
25 device 1
26 attach ost
27 setup 0
28 device 2
29 attach osc
30 setup -1
31 quit
32 EOF
33
34 cat <<EOF
35 run getattr tests as:
36 obdctl 
37 device 2 
38 connect
39 test_getattr 1000000
40 EOF