Last change
on this file since 1034 was
1020,
checked in by cfuguet, 9 years ago
|
reconf: improving dspin_router transition function.
|
-
Property svn:executable set to
*
|
File size:
766 bytes
|
Line | |
---|
1 | #!/usr/bin/env sh |
---|
2 | XSIZE=10 |
---|
3 | YSIZE=10 |
---|
4 | NPKTS=50 |
---|
5 | |
---|
6 | LOGDIR=logs |
---|
7 | COMMON="-X $XSIZE -Y $YSIZE -P $NPKTS" |
---|
8 | SCRIPTPATH=$(dirname $0) |
---|
9 | |
---|
10 | # compile the platform |
---|
11 | make |
---|
12 | if [[ ! -f ./simul.x ]]; then exit 1; fi; |
---|
13 | |
---|
14 | mkdir -p $LOGDIR |
---|
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 |
---|
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; |
---|
24 | $SCRIPTPATH/broadcast_check.sh $LOGFILE $NPKTS |
---|
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.