a6b8d6b4cf
Summary: * main file (copied distributed_test.cpp), start_main.py, config Made a dedicated client and memgraph file (stubs) + code structure changes Reviewers: sasa.stanko Reviewed By: sasa.stanko Subscribers: pullbot, lion, buda Differential Revision: https://phabricator.memgraph.io/D709
22 lines
583 B
Python
Executable File
22 lines
583 B
Python
Executable File
# Automatically copied to the build/ directory during Makefile (configured by cmake)
|
|
|
|
import os
|
|
|
|
command = 'gnome-terminal'
|
|
program = './distributed_test'
|
|
config_filename = 'config'
|
|
flags = '-alsologtostderr --minloglevel=2'
|
|
|
|
f = open(config_filename, 'r')
|
|
for line in f:
|
|
data = line.strip().split(' ')
|
|
my_mnid = data[0]
|
|
address = data[1]
|
|
port = data[2]
|
|
call = "{} {} --my_mnid {} --address {} --port {} --config_filename={}".format(
|
|
program, flags, my_mnid, address, port, config_filename)
|
|
command += " --tab -e '{}'".format(call)
|
|
|
|
print(command)
|
|
os.system(command)
|