-
Notifications
You must be signed in to change notification settings - Fork 0
/
IPC-5-1Test.py
24 lines (18 loc) · 880 Bytes
/
IPC-5-1Test.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import subprocess
import os
# print(os.getcwd())
# os.chdir("build/")
commandList = []
commandList.append("./echoer --Trans shmem.ini")
msgLen = '10000'
commandList.append("./initiator --Trans shmem.ini --msgLength " + msgLen)
commandList.append("./initiator --Trans shmem.ini --pubName Dummy --msgLength " + msgLen)
commandList.append("./initiator --Trans shmem.ini --pubName Dummy --msgLength " + msgLen)
commandList.append("./initiator --Trans shmem.ini --pubName Dummy --msgLength " + msgLen)
commandList.append("./initiator --Trans shmem.ini --pubName Dummy --msgLength " + msgLen)
# commandList.append("./initiator --SubTopic C5 --PubTopic MS1 --msgLength 5000 --roundtripCount 1000") #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")