test/comparison/get_results.sh
changeset 0 2b3e5ec03512
equal deleted inserted replaced
-1:000000000000 0:2b3e5ec03512
       
     1 #!/bin/csh
       
     2 
       
     3 #
       
     4 #    Copyright 2005-2006 Intel Corporation
       
     5 # 
       
     6 #    Licensed under the Apache License, Version 2.0 (the "License");
       
     7 #    you may not use this file except in compliance with the License.
       
     8 #    You may obtain a copy of the License at
       
     9 # 
       
    10 #        http://www.apache.org/licenses/LICENSE-2.0
       
    11 # 
       
    12 #    Unless required by applicable law or agreed to in writing, software
       
    13 #    distributed under the License is distributed on an "AS IS" BASIS,
       
    14 #    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
       
    15 #    See the License for the specific language governing permissions and
       
    16 #    limitations under the License.
       
    17 #
       
    18 
       
    19 
       
    20 
       
    21 
       
    22 
       
    23 set protlist="dtn mail tcp"
       
    24 
       
    25 
       
    26 
       
    27 
       
    28 set lossrate=0
       
    29 set bandwidth=100
       
    30 set size=10
       
    31 
       
    32 set outfile=$1
       
    33 rm -f $outfile
       
    34 
       
    35 foreach nodes(2 3 4 5)
       
    36 	set startline="#nodes"
       
    37 	set line=$nodes
       
    38 	foreach size(10 100)
       
    39 		foreach name($protlist)
       
    40 			foreach type(0 1)
       
    41 				set startline="$startline S$size.$name.$type"
       
    42 				set exp="rabin-N$nodes-L$lossrate-S$size-B$bandwidth"
       
    43 				set ftime=`/proj/DTN/nsdi/bin//ftptime.sh $nodes $exp/$name$type | tail -n 1`
       
    44 				set line="$line $ftime"
       
    45 			end
       
    46 		end
       
    47 	end
       
    48 	echo $line
       
    49 	echo $line >> $outfile
       
    50 end
       
    51 echo $startline >> $outfile
       
    52