Ignore:
Timestamp:
Oct 13, 2015, 4:21:08 PM (9 years ago)
Author:
cfuguet
Message:

reconf: improving dspin_router transition function.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/reconfiguration/modules/dspin_router/caba/test/synthetic_test/scripts/run_broadcast_check.sh

    r998 r1020  
    11#!/usr/bin/env sh
     2XSIZE=10
     3YSIZE=10
     4NPKTS=50
     5
    26LOGDIR=logs
    3 COMMON="-X 5 -Y 5 -P 1500"
     7COMMON="-X $XSIZE -Y $YSIZE -P $NPKTS"
    48SCRIPTPATH=$(dirname $0)
    59
     
    913
    1014mkdir -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
     15for (( 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
    1519                                if [[ ( $x == $fx ) && ( $y == $fy ) ]]; then continue; fi
    1620                                LOGFILE=$LOGDIR/$(echo log'_'$x'_'$y'_'$fx'_'$fy);
     
    1822                                echo "./simul.x $ARGS ($LOGFILE)"
    1923                                ./simul.x $ARGS > $LOGFILE 2>/dev/null;
    20                                 $SCRIPTPATH/broadcast_check.sh $LOGFILE
     24                                $SCRIPTPATH/broadcast_check.sh $LOGFILE $NPKTS
    2125                                if [[ $? == 1 ]]; then
    2226                                        echo "FAILURE";
Note: See TracChangeset for help on using the changeset viewer.