Mercurial > hg > Database > Christie
view scripts/local_test_run.sh @ 133:114e0e5b6564
fix prepartoclose
author | akahori |
---|---|
date | Tue, 25 Dec 2018 17:10:49 +0900 |
parents | 3a0f8a93c84a |
children | dd3c0ba6a0a6 |
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 & sleep 3 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