-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathevaluation.py
More file actions
46 lines (42 loc) · 1.29 KB
/
evaluation.py
File metadata and controls
46 lines (42 loc) · 1.29 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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
import subprocess
categories = ["c1"]
tests = ["t1"]
for category in categories:
for i in [1, 2, 3, 4, 5]:
for j in [1, 2, 3, 4, 5]:
if i == j:
continue
apps = f"a{i} a{j}"
apps = apps.split()
source = apps[0]
target = apps[1]
for test in tests:
command = [
"python",
"src/main.py",
"-m",
"transfer",
"-c",
category,
"--test-id",
test,
"-s",
source,
"-t",
target,
"--capture-time",
"true",
"-mwt",
"3",
"-nt",
"3",
"-mt",
"2",
"--step-sleep",
"3",
]
try:
result = subprocess.run(command, check=True)
print(f"Command for {category} executed successfully.")
except subprocess.CalledProcessError as e:
print(f"Command for {category} failed with error: {e}")