-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfullScaleTest.py
More file actions
25 lines (20 loc) · 1.4 KB
/
fullScaleTest.py
File metadata and controls
25 lines (20 loc) · 1.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import subprocess
import os
# print(os.getcwd())
# os.chdir("build/")
commandList = []
commandList.append("./initiator --Trans shmem.ini --SubTopic dummy --PubTopic MS1 --msgLength 5000 --roundtripCount 0 --pubName Dummy --updateRate 100") #C1
commandList.append("./initiator --Trans shmem.ini --SubTopic dummy --PubTopic MS1 --msgLength 5000 --roundtripCount 0 --pubName Dummy --updateRate 100") #C2
commandList.append("./initiator --Trans shmem.ini --SubTopic dummy --PubTopic MS1 --msgLength 5000 --roundtripCount 0 --pubName Dummy --updateRate 100") #C3
commandList.append("./initiator --Trans shmem.ini --SubTopic dummy --PubTopic MS1 --msgLength 5000 --roundtripCount 0 --pubName Dummy --updateRate 100") #C4
commandList.append("./echoer --Trans shmem.ini --SubTopic MS1 --PubTopic MS2 ") #MS1
commandList.append("./echoer --Trans shmem.ini --SubTopic MS2 --PubTopic C5 ") #MS2
commandList.append("./echoer --Trans shmem.ini --SubTopic C5 --PubTopic dummy ") #GW1
commandList.append("./echoer --Trans shmem.ini --SubTopic C5 --PubTopic dummy ") #GW2
commandList.append("./echoer --Trans shmem.ini --SubTopic C5 --PubTopic dummy ") #GW3
# commandList.append("./initiator --SubTopic C5 --Trans shmem.ini --PubTopic MS1 --msgLength 5000") #C5
for command in commandList:
subprocess.Popen(command.split(), cwd="build/")
input("Press Enter to shutdown...\n")
os.system("pkill -f echoer")
os.system("pkill -f initiator")