source: branches/reconfiguration/modules/dspin_router/caba/test/synthetic_test/scripts/run_broadcast_check.sh @ 1009

Last change on this file since 1009 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: 699 bytes
Line 
1#!/usr/bin/env sh
2LOGDIR=logs
3COMMON="-X 5 -Y 5 -P 1500"
4SCRIPTPATH=$(dirname $0)
5
6# compile the platform
7make
8if [[ ! -f ./simul.x ]]; then exit 1; fi;
9
10mkdir -p $LOGDIR
11for (( x = 0; x < 5; x++ )); do
12        for (( y = 0; y < 5; y++ )); do
13                for (( fx = 0; fx < 5; fx++ )); do
14                        for (( fy = 0; fy < 5; fy++ )); do
15                                if [[ ( $x == $fx ) && ( $y == $fy ) ]]; then continue; fi
16                                LOGFILE=$LOGDIR/$(echo log'_'$x'_'$y'_'$fx'_'$fy);
17                                ARGS="$COMMON -SX $x -SY $y -FX $fx -FY $fy";
18                                echo "./simul.x $ARGS ($LOGFILE)"
19                                ./simul.x $ARGS > $LOGFILE 2>/dev/null;
20                                $SCRIPTPATH/broadcast_check.sh $LOGFILE
21                                if [[ $? == 1 ]]; then
22                                        echo "FAILURE";
23                                        exit 1;
24                                fi
25                        done
26                done
27        done
28done
Note: See TracBrowser for help on using the repository browser.