Last change
on this file since 1053 was
1020,
checked in by cfuguet, 9 years ago
|
reconf: improving dspin_router transition function.
|
-
Property svn:executable set to
*
|
File size:
766 bytes
|
Rev | Line | |
---|
[994] | 1 | #!/usr/bin/env sh |
---|
[1020] | 2 | XSIZE=10 |
---|
| 3 | YSIZE=10 |
---|
| 4 | NPKTS=50 |
---|
| 5 | |
---|
[994] | 6 | LOGDIR=logs |
---|
[1020] | 7 | COMMON="-X $XSIZE -Y $YSIZE -P $NPKTS" |
---|
[998] | 8 | SCRIPTPATH=$(dirname $0) |
---|
[994] | 9 | |
---|
[998] | 10 | # compile the platform |
---|
| 11 | make |
---|
| 12 | if [[ ! -f ./simul.x ]]; then exit 1; fi; |
---|
| 13 | |
---|
[994] | 14 | mkdir -p $LOGDIR |
---|
[1020] | 15 | for (( x = 0; x < $XSIZE; x++ )); do |
---|
| 16 | for (( y = 0; y < $YSIZE; y++ )); do |
---|
| 17 | for (( fx = 0; fx < $XSIZE; fx++ )); do |
---|
| 18 | for (( fy = 0; fy < $YSIZE; fy++ )); do |
---|
[994] | 19 | if [[ ( $x == $fx ) && ( $y == $fy ) ]]; then continue; fi |
---|
| 20 | LOGFILE=$LOGDIR/$(echo log'_'$x'_'$y'_'$fx'_'$fy); |
---|
| 21 | ARGS="$COMMON -SX $x -SY $y -FX $fx -FY $fy"; |
---|
| 22 | echo "./simul.x $ARGS ($LOGFILE)" |
---|
| 23 | ./simul.x $ARGS > $LOGFILE 2>/dev/null; |
---|
[1020] | 24 | $SCRIPTPATH/broadcast_check.sh $LOGFILE $NPKTS |
---|
[994] | 25 | if [[ $? == 1 ]]; then |
---|
| 26 | echo "FAILURE"; |
---|
| 27 | exit 1; |
---|
| 28 | fi |
---|
| 29 | done |
---|
| 30 | done |
---|
| 31 | done |
---|
| 32 | done |
---|
Note: See
TracBrowser
for help on using the repository browser.