source: branches/reconfiguration/modules/dspin_router/caba/test/synthetic_test/scripts/run_unicast_latency.sh @ 998

Last change on this file since 998 was 998, checked in by cfuguet, 9 years ago

reconf: several improvements in the dspin_router synthetic test platform

  • Property svn:executable set to *
File size: 937 bytes
Line 
1#!/usr/bin/env sh
2LOGDIR=logs
3COMMON="-X 5 -Y 5 -B 0 -N 10000 -P 0"
4MEANFILE=unicast_mean_latency.txt
5MAXLOAD=550
6SCRIPTPATH=$(dirname $0)
7
8# compile the platform
9make
10if [[ ! -f simul.x ]]; then exit 1; fi;
11
12rm -f $MEANFILE
13
14mkdir -p $LOGDIR
15for (( load = 25; load <= $MAXLOAD; load += 25 )); do
16        LOGFILE=$LOGDIR/$(echo latency_unicast_all'_'$load);
17        ARGS="$COMMON -L $load";
18        echo "./simul.x $ARGS ($LOGFILE)" | tee -a $MEANFILE
19        ./simul.x $ARGS > $LOGFILE 2>/dev/null;
20        $SCRIPTPATH/unicast_latency.sh $LOGFILE >> $MEANFILE
21done
22
23for (( x = 0; x < 5; x++ )); do
24        for (( y = 0; y < 5; y++ )); do
25                for (( load = 25; load <= $MAXLOAD; load += 25 )); do
26                        LOGFILE=$LOGDIR/$(echo latency_unicast_all'_'$x'_'$y'_'$load);
27                        ARGS="$COMMON -L $load -FX $x -FY $y";
28                        echo "./simul.x $ARGS ($LOGFILE)" | tee -a $MEANFILE
29                        ./simul.x $ARGS > $LOGFILE 2>/dev/null;
30                        $SCRIPTPATH/unicast_latency.sh $LOGFILE >> $MEANFILE
31                done;
32        done;
33done;
Note: See TracBrowser for help on using the repository browser.