Last change
on this file since 1001 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
|
Rev | Line | |
---|
[994] | 1 | #!/usr/bin/env sh |
---|
| 2 | LOGDIR=logs |
---|
[998] | 3 | COMMON="-X 5 -Y 5 -P 1500" |
---|
| 4 | SCRIPTPATH=$(dirname $0) |
---|
[994] | 5 | |
---|
[998] | 6 | # compile the platform |
---|
| 7 | make |
---|
| 8 | if [[ ! -f ./simul.x ]]; then exit 1; fi; |
---|
| 9 | |
---|
[994] | 10 | mkdir -p $LOGDIR |
---|
| 11 | for (( 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; |
---|
[998] | 20 | $SCRIPTPATH/broadcast_check.sh $LOGFILE |
---|
[994] | 21 | if [[ $? == 1 ]]; then |
---|
| 22 | echo "FAILURE"; |
---|
| 23 | exit 1; |
---|
| 24 | fi |
---|
| 25 | done |
---|
| 26 | done |
---|
| 27 | done |
---|
| 28 | done |
---|
Note: See
TracBrowser
for help on using the repository browser.