ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/DBS/Servers/Tests/run_all.sh
Revision: 1.1
Committed: Wed Feb 15 21:29:35 2006 UTC (19 years, 2 months ago) by lueking
Content type: application/x-sh
Branch: MAIN
CVS Tags: DBS_0_0_3a, DBS_0_0_3, DBS_0_0_2, DBS_0_0_1, pre_DBS_0_0_1, post_dict_type_checking_merge, post_MiniPythonAPI_merged_to_trunk, pre_MiniPythonAPI_merge_to_trunk, DBS_0_0_0, vs20060320, AfterJan2006SchemaChanges_v01_00_01, HEAD
Branch point for: BranchForCPPWebServiceTesting
Log Message:
load tests for cgi vs. ws

File Contents

# User Rev Content
1 lueking 1.1 #!/bin/sh
2     #
3     # 15, Feb, 2006: Adapted by L. Lueking from
4     # S. Veseli's tests for SAM web services
5     #
6     # usage: ./run_all.sh nclientsStart nclientsMax
7     # ex: ./run_all.sh 1 10
8     #
9     n=$1
10     nMax=$2
11     suffix="a"
12     dspath="/eg03_jets_1e_pt2550/Digi/eg_2x1033PU761_TkMu_2_g133_OSC"
13     nTimes=1
14     resultFile=all_results.out
15     touch $resultFile
16     while [ "$n" != "${nMax}" ]; do
17     n=`expr $n + 1`
18     echo "Running WS tests with $n clients"
19     outputFile="ws_results.${n}.out"
20     ./run_ws_client.sh $n $suffix $dspath $nTimes > $outputFile 2>&1
21     wsAve=`tail -1 $outputFile | awk '{print $NF}'`
22    
23     echo "Running CGI tests with $n clients"
24     outputFile="cgi_results.${n}.out"
25     ./run_cgi_client.sh $n $suffix $dspath $nTimes > $outputFile 2>&1
26     cgiAve=`tail -1 $outputFile | awk '{print $NF}'`
27    
28     echo "$n $cgiAve $wsAve"
29     echo "$n $cgiAve $wsAve" >> $resultFile
30     echo
31     done