2017-08-24 22:50:18 +08:00
|
|
|
# Automatically copied to the build/ directory during Makefile (configured by cmake)
|
2017-08-16 21:13:42 +08:00
|
|
|
|
|
|
|
import os
|
|
|
|
|
|
|
|
command = 'gnome-terminal'
|
2017-08-17 20:46:34 +08:00
|
|
|
program = './distributed_test'
|
2017-08-16 21:13:42 +08:00
|
|
|
config_filename = 'config'
|
2017-08-23 19:48:25 +08:00
|
|
|
flags = '-alsologtostderr --minloglevel=2'
|
2017-08-16 21:13:42 +08:00
|
|
|
|
|
|
|
f = open(config_filename, 'r')
|
|
|
|
for line in f:
|
|
|
|
data = line.strip().split(' ')
|
|
|
|
my_mnid = data[0]
|
|
|
|
address = data[1]
|
|
|
|
port = data[2]
|
2017-08-22 22:29:23 +08:00
|
|
|
call = "{} {} --my_mnid {} --address {} --port {} --config_filename={}".format(
|
|
|
|
program, flags, my_mnid, address, port, config_filename)
|
|
|
|
command += " --tab -e '{}'".format(call)
|
2017-08-16 21:13:42 +08:00
|
|
|
|
2017-08-22 22:29:23 +08:00
|
|
|
print(command)
|
|
|
|
os.system(command)
|