File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change 68
68
run : |
69
69
make -C tests/system/alignment/
70
70
make distclean && make ENABLE_EXT_C=0 ENABLE_SYSTEM=1 misalign-in-blk-emu -j$(nproc)
71
+ - name : MMU test
72
+ run : |
73
+ make -C tests/system/mmu/
74
+ make distclean && make ENABLE_SYSTEM=1 mmu-test -j$(nproc)
71
75
- name : gdbstub test
72
76
run : |
73
77
make distclean && make ENABLE_GDBSTUB=1 gdbstub-test -j$(nproc)
Original file line number Diff line number Diff line change @@ -303,6 +303,16 @@ misalign-in-blk-emu: $(BIN)
303
303
exit 1; \
304
304
fi ;
305
305
306
+ EXPECTED_mmu = STORE PAGE FAULT TEST PASSED!
307
+ mmu-test : $(BIN )
308
+ $(Q )$(PRINTF ) " Running vm.elf ... " ; \
309
+ if [ " $( shell $( BIN) tests/system/mmu/vm.elf | tail -n 2) " = " $( strip $( EXPECTED_mmu) ) inferior exit code 0" ]; then \
310
+ $(call notice, [OK]) ; \
311
+ else \
312
+ $(PRINTF ) " Failed.\n" ; \
313
+ exit 1; \
314
+ fi ;
315
+
306
316
# Non-trivial demonstration programs
307
317
ifeq ($(call has, SDL) , 1)
308
318
doom_action := (cd $(OUT ) ; ../$(BIN ) riscv32/doom)
You can’t perform that action at this time.
0 commit comments