-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathperf.py
30 lines (23 loc) · 940 Bytes
/
perf.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
25
26
27
28
29
30
import os
# Set where the logs will be stored after tests.
LOGS_DIRECTORY = "/tmp/pyhk/collected_logs/"
OUTPUT_DIRECTORY = "/tmp/pyhk/results/"
# Path to collect the logs in the target machine.
def machine_logs():
return {
"client1": [os.path.join("/tmp/pyhk/", "connection.log")],
"machine1": [os.path.join("/tmp/pyhk/", "run.log")],
"machine2": [os.path.join("/tmp/pyhk/", "run.log")],
}
# Path to collect the csv logs for naarad in the target machine.
def naarad_logs():
return {
"machine1": [os.path.join("/tmp/pyhk/", "run.csv")],
"machine2": [os.path.join("/tmp/pyhk/", "run.csv")],
"machine1": [os.path.join("/tmp/pyhk/", "ping-output.csv")],
"machine2": [os.path.join("/tmp/pyhk/", "ping-output.csv")],
}
# Path to naarad configuration.
def naarad_config():
return os.path.join(
os.path.dirname(os.path.abspath(__file__)), "naarad.cfg")