Skip to content

Commit af60ed6

Browse files
author
Michael S. Tsirkin
committed
r2664: script I use to run tests
1 parent 3ed6abd commit af60ed6

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

runme

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/bin/sh
2+
# trivial script to launch a server/client test with ssh
3+
# must be launched from client
4+
# example: runme 10.0.0.1 /home/perftest/rdma_lat -s 10
5+
6+
if [ $# -lt 1 ] ; then
7+
echo "Usage: runme <server> <test> <test options>"
8+
exit 3
9+
fi
10+
11+
server=$1
12+
shift
13+
ssh $server $* &
14+
#give server time to start
15+
sleep 2
16+
$* $server
17+
status=$?
18+
wait
19+
exit $status

0 commit comments

Comments
 (0)