@@ -63,10 +63,11 @@ export NOOP_HOME := $(ROOT_PATH)
6363export DRAMSIM3_HOME := $(DRAMSIM3_HOME )
6464
6565define getRecursiveTestRes
66+ @printf "[%2d/%d]" $$(echo $$(cat $(1 ) /build/log/allcasenum-log.txt ) + 1 | bc ) $(2 )
6667 @echo $$(echo $$(cat $(1 ) /build/log/allcasenum-log.txt ) + 1 | bc ) > $(1 ) /build/log/allcasenum-log.txt
6768 -@$(BUILD_DIR ) /emu -i $< &> $(1 ) /build/log/$@ -log.txt
6869
69- @printf "[%30s ] " $@
70+ @printf "[%25s ] " $@
7071 @if (grep 'HIT GOOD TRAP' $(1 ) /build/log/$@ -log.txt > /dev/null) then \
7172 echo -e "\033[1;32mPASS! ipc =$$(grep 'IPC' $(1 ) /build/log/$@ -log.txt | cut -d = -f4 ) \033[0m" \
7273 $$(echo $$(echo $$(cat $(1 ) /build/log/passcasenum-log.txt ) + 1 | bc ) > $(1 ) /build/log/passcasenum-log.txt ) ; \
@@ -190,6 +191,7 @@ $(simpleTestCaseName): simpletest-%: $(SIMPLETEST_HOME)/build/%-riscv64-mycpu.bi
190191riscvTestbinFile = $(foreach dir, $(RISCVTEST_HOME ) /build, $(wildcard $(dir ) /* .bin) )
191192riscvTestCaseName = $(foreach file, $(riscvTestbinFile ) , $(patsubst % -riscv64-mycpu, riscvtest-% , $(basename $(notdir $(file ) ) ) ) )
192193riscvTestLogFile = $(foreach file, $(riscvTestCaseName ) , $(patsubst % , % -log.txt, $(file ) ) )
194+ riscvNum = 50
193195$(shell mkdir -p $(RISCVTEST_HOME)/build/log 1>/dev/null 2>&1)
194196riscvRecursiveTest : $(riscvTestLogFile ) $(riscvTestCaseName )
195197 @printf " [\033[0;33mall-done\033[0m]\n"
@@ -203,7 +205,7 @@ $(riscvTestLogFile):
203205 $(shell echo 0 > $(RISCVTEST_HOME ) /build/log/passcasenum-log.txt)
204206
205207$(riscvTestCaseName ) : riscvtest-% : $(RISCVTEST_HOME ) /build/% -riscv64-mycpu.bin
206- $(call getRecursiveTestRes, $(RISCVTEST_HOME ) )
208+ $(call getRecursiveTestRes, $(RISCVTEST_HOME ) , $( riscvNum ) )
207209
208210
209211# ##### cpu test recursive test target ######
@@ -223,7 +225,7 @@ $(cpuTestLogFile):
223225 $(shell echo 0 > $(CPUTEST_HOME ) /build/log/passcasenum-log.txt)
224226
225227$(cpuTestCaseName ) : cputest-% : $(CPUTEST_HOME ) /build/% -riscv64-mycpu.bin
226- $(call getRecursiveTestRes, $(CPUTEST_HOME ) )
228+ $(call getRecursiveTestRes, $(CPUTEST_HOME ) , 34 )
227229
228230unit-test : simBuild riscvRecursiveTest cpuRecursiveTest
229231
0 commit comments