Skip to content

Commit b80c07c

Browse files
committed
Add coremark arguments
1 parent b14d97f commit b80c07c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/coremark.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,15 @@
66
import json
77

88
iter = 10
9+
coremark_param = "0x0 0x0 0x66 60000 7 1 2000"
910
res = []
1011
file_exist = os.path.exists('build/rv32emu')
1112
if not file_exist:
1213
print("Please compile before running test")
1314
exit(1)
1415
print("Start Test CoreMark benchmark")
1516
comp_proc = subprocess.check_output(
16-
'build/rv32emu build/coremark.elf', shell=True).decode("utf-8")
17+
"build/rv32emu build/coremark.elf {}".format(coremark_param), shell=True).decode("utf-8")
1718
if not comp_proc or comp_proc.find("Error") != -1:
1819
print("Test Error")
1920
exit(1)
@@ -23,7 +24,7 @@
2324
for i in range(iter):
2425
print("Running CoreMark benchmark - Run #{}".format(i + 1))
2526
comp_proc = subprocess.check_output(
26-
'build/rv32emu build/coremark.elf', shell=True).decode("utf-8")
27+
"build/rv32emu build/coremark.elf {}".format(coremark_param), shell=True).decode("utf-8")
2728
if not comp_proc:
2829
print("Fail\n")
2930
exit(1)

0 commit comments

Comments
 (0)