view scripts/local_test_run2.sh @ 166:f2218b5590d3

add CheckMyName
author akahori
date Tue, 22 Jan 2019 15:07:12 +0900
parents c6e4d0e4954c
children
line wrap: on
line source

#!/bin/bash

if [ ! -d output ]; then
    mkdir output
fi

max=$1
count=$2
jar_path=../build/libs/Christie.jar

mkdir -p Log

ruby ./ring.rb $1 > Log/ring.dot
#dot -Tpng ./topology/ring.dot > ./topology/ring.png
#open ./topology/ring.png
java -cp $jar_path christie.topology.manager.StartTopologyManager --localPort 10000 --confFile Log/ring.dot &

#sleep 3

cnt=0
while [ $cnt -lt $max ]
do
   java -cp $jar_path christie.test.topology.localTestTopology.StartTorqueTestTopology --managerHost `hostname` --managerPort 10000 --localPort `expr 20000 + $cnt`&
    cnt=`expr $cnt + 1`
done
wait