File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 6
6
import json
7
7
8
8
iter = 10
9
+ coremark_param = "0x0 0x0 0x66 60000 7 1 2000"
9
10
res = []
10
11
file_exist = os .path .exists ('build/rv32emu' )
11
12
if not file_exist :
12
13
print ("Please compile before running test" )
13
14
exit (1 )
14
15
print ("Start Test CoreMark benchmark" )
15
16
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" )
17
18
if not comp_proc or comp_proc .find ("Error" ) != - 1 :
18
19
print ("Test Error" )
19
20
exit (1 )
23
24
for i in range (iter ):
24
25
print ("Running CoreMark benchmark - Run #{}" .format (i + 1 ))
25
26
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" )
27
28
if not comp_proc :
28
29
print ("Fail\n " )
29
30
exit (1 )
You can’t perform that action at this time.
0 commit comments