Mercurial > hg > Database > Christie
view scripts/local_test_run.sh @ 223:1c37472fc00d
add catch command from editors
author | ichikitakahiro <e165713@ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 28 Nov 2019 15:12:37 +0900 |
parents | dd3c0ba6a0a6 |
children |
line wrap: on
line source
#!/bin/bash if [ ! -d output ]; then mkdir output fi max=$1 count=$2 jar_path=../build/libs/ topo_jarname=ChristieStartTopologyManager-1.0.jar torquetest_jarname=ChristieStartTorqueTestTopology-1.0.jar mkdir -p Log ruby ./ring.rb $1 > Log/ring.dot #dot -Tpng ./topology/ring.dot > ./topology/ring.png #open ./topology/ring.png java -jar ${jar_path}${topo_jarname} --localPort 10000 --confFile Log/ring.dot & cnt=0 while [ $cnt -lt $max ] do java -jar ${jar_path}${torquetest_jarname} --managerHost localhost --managerPort 10000 --localPort `expr 20000 + $cnt`& cnt=`expr $cnt + 1` done wait