summaryrefslogtreecommitdiff
path: root/TAO/IIOP/tests/Thruput_test/run_test
blob: e36938f42b6bed294263be68ce81a08208b3b54a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/bin/csh -f
if ($#argv < 3) then
	echo "Usage: sclt <Total Data Size> <Max msg size> <destination> <TitleOfThisTest> <seq type>"
	exit 1
endif
#
@ msize=1024
@ limit= ($argv[2] * 1024)
#echo $limit
#echo $msize 
echo "Iteration#" 1 ": client -S" $1 "-D -f m -s -t -l" $msize "-h" $3 "-x -L" $4 "-q" $5 -b 65536
client -S $1 -D -f m -l $msize -h $3 -x -L $4 -q $5 -b 65536
set flag=0
while ($msize <= $limit)
  if ($flag == 0) goto label
	echo "Iteration#" 1 ": client -S" $1 "-D -f m -l" $msize "-h" $3 "-x -L" $4 "-q" $5 -b 65536
	client -S $1 -D -f m -l $msize -h $3 -x -L $4 -q $5 -b 65536
 label:
  set flag=1
  sleep 5
  foreach i (2)
	echo "Iteration#" $i ": client -S" $1 "-D -f m -s -t -l" $msize "-h" $3 "-x -L " $4 "-q" $5 -b 65536
	client -S $1 -D -f m -l $msize -h $3 -x -L $4 -q $5 -b 65536
  end
	echo "---------------------------"
	@ msize = ($msize * 2)
	sleep 5
end 

echo " "
echo "Done at:" 
date