| 1 |
#!/bin/sh |
| 2 |
# |
| 3 |
# Copyright (c) 2002-2005, Network Appliance, Inc. All rights reserved. |
| 4 |
# |
| 5 |
# This Software is licensed under one of the following licenses: |
| 6 |
# |
| 7 |
# 1) under the terms of the "Common Public License 1.0" a copy of which is |
| 8 |
# in the file LICENSE.txt in the root directory. The license is also |
| 9 |
# available from the Open Source Initiative, see |
| 10 |
# http://www.opensource.org/licenses/cpl.php. |
| 11 |
# |
| 12 |
# 2) under the terms of the "The BSD License" a copy of which is in the file |
| 13 |
# LICENSE2.txt in the root directory. The license is also available from |
| 14 |
# the Open Source Initiative, see |
| 15 |
# http://www.opensource.org/licenses/bsd-license.php. |
| 16 |
# |
| 17 |
# 3) under the terms of the "GNU General Public License (GPL) Version 2" a |
| 18 |
# copy of which is in the file LICENSE3.txt in the root directory. The |
| 19 |
# license is also available from the Open Source Initiative, see |
| 20 |
# http://www.opensource.org/licenses/gpl-license.php. |
| 21 |
# |
| 22 |
# Licensee has the right to choose one of the above licenses. |
| 23 |
# |
| 24 |
# Redistributions of source code must retain the above copyright |
| 25 |
# notice and one of the license notices. |
| 26 |
# |
| 27 |
# Redistributions in binary form must reproduce both the above copyright |
| 28 |
# notice, one of the license notices in the documentation |
| 29 |
# and/or other materials provided with the distribution. |
| 30 |
# |
| 31 |
# Sample regression client invocation |
| 32 |
# |
| 33 |
|
| 34 |
me=`basename $0` |
| 35 |
case $# in |
| 36 |
0) host=dat-linux3 |
| 37 |
device=ofa-v2-ib0;; |
| 38 |
1) host=$1 |
| 39 |
device=ofa-v2-ib0;; |
| 40 |
2) host=$1 |
| 41 |
device=$2 ;; |
| 42 |
*) echo Usage: $me '[hostname [device] ]' 1>&2 ; exit 1;; |
| 43 |
esac |
| 44 |
|
| 45 |
|
| 46 |
#==================================================================== |
| 47 |
#client1 |
| 48 |
#==================================================================== |
| 49 |
dapltest -T T -s ${host} -D ${device} -i 10000 -t 1 -w 1 \ |
| 50 |
client SR 256 \ |
| 51 |
server SR 256 |
| 52 |
|
| 53 |
#==================================================================== |
| 54 |
#client2 |
| 55 |
#==================================================================== |
| 56 |
dapltest -T T -s ${host} -D ${device} -i 10000 -t 1 -w 1 \ |
| 57 |
client SR 256 \ |
| 58 |
server RW 4096 \ |
| 59 |
server SR 256 |
| 60 |
|
| 61 |
#==================================================================== |
| 62 |
#client3 |
| 63 |
#==================================================================== |
| 64 |
dapltest -T T -s ${host} -D ${device} -i 10000 -t 1 -w 1 \ |
| 65 |
client SR 256 \ |
| 66 |
server RR 4096 \ |
| 67 |
server SR 256 |
| 68 |
|
| 69 |
#==================================================================== |
| 70 |
#client4 |
| 71 |
#==================================================================== |
| 72 |
dapltest -T T -s ${host} -D ${device} -i 10000 -t 1 -w 1 \ |
| 73 |
client SR 256 \ |
| 74 |
server RW 4096 \ |
| 75 |
server SR 256 \ |
| 76 |
client SR 256 \ |
| 77 |
server RW 4096 \ |
| 78 |
server SR 256 \ |
| 79 |
client SR 4096 \ |
| 80 |
server SR 256 |
| 81 |
|
| 82 |
#==================================================================== |
| 83 |
#client5 |
| 84 |
#==================================================================== |
| 85 |
dapltest -T T -s ${host} -D ${device} -i 10000 -t 1 -w 8 \ |
| 86 |
client SR 256 \ |
| 87 |
server RW 4096 \ |
| 88 |
server SR 256 \ |
| 89 |
client SR 256 \ |
| 90 |
server RW 4096 \ |
| 91 |
server SR 256 \ |
| 92 |
client SR 4096 \ |
| 93 |
server SR 256 |
| 94 |
|
| 95 |
#==================================================================== |
| 96 |
#client6 |
| 97 |
#==================================================================== |
| 98 |
dapltest -T T -s ${host} -D ${device} -i 10000 -t 4 -w 8 \ |
| 99 |
client SR 256 \ |
| 100 |
server RW 4096 \ |
| 101 |
server SR 256 \ |
| 102 |
client SR 256 \ |
| 103 |
server RW 4096 \ |
| 104 |
server SR 256 \ |
| 105 |
client SR 4096 \ |
| 106 |
server SR 256 |
| 107 |
|
| 108 |
|
| 109 |
#==================================================================== |
| 110 |
# Quit the server |
| 111 |
#==================================================================== |
| 112 |
dapltest -T Q -s ${host} -D ${device} |