From 7c3c2ce9738e77c21fea33cee0d4b0a118df7242 Mon Sep 17 00:00:00 2001 From: tracer-ysyx Date: Wed, 6 Mar 2024 11:36:21 +0800 Subject: [PATCH] =?UTF-8?q?>=20compile=20NEMU=20ysyx=5F22040000=20?= =?UTF-8?q?=E6=9D=8E=E5=BF=83=E6=9D=A8=20Linux=20calcite=206.6.18=20#1-Nix?= =?UTF-8?q?OS=20SMP=20PREEMPT=5FDYNAMIC=20Fri=20Feb=2023=2008:25:28=20UTC?= =?UTF-8?q?=202024=20x86=5F64=20GNU/Linux=20=2011:36:21=20=20up=201=20day?= =?UTF-8?q?=2015:04,=20=202=20users,=20=20load=20average:=200.38,=200.39,?= =?UTF-8?q?=200.36?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nemu/.result | 13 ------------- nemu/Makefile | 7 ++++++- 2 files changed, 6 insertions(+), 14 deletions(-) diff --git a/nemu/.result b/nemu/.result index 18a1391..e69de29 100644 --- a/nemu/.result +++ b/nemu/.result @@ -1,13 +0,0 @@ -[string-riscv32-nemu.bin] FAIL -[mersenne-riscv32-nemu.bin] FAIL -[fact-riscv32-nemu.bin] FAIL -[mul-longlong-riscv32-nemu.bin] FAIL -[recursion-riscv32-nemu.bin] FAIL -[shuixianhua-riscv32-nemu.bin] FAIL -[hello-str-riscv32-nemu.bin] FAIL -[div-riscv32-nemu.bin] FAIL -[leap-year-riscv32-nemu.bin] FAIL -[matrix-mul-riscv32-nemu.bin] FAIL -[prime-riscv32-nemu.bin] FAIL -[wanshu-riscv32-nemu.bin] FAIL -[goldbach-riscv32-nemu.bin] FAIL diff --git a/nemu/Makefile b/nemu/Makefile index 792ef83..716a3d5 100644 --- a/nemu/Makefile +++ b/nemu/Makefile @@ -75,11 +75,16 @@ COLOR_RED = \033[1;31m COLOR_GREEN = \033[1;32m COLOR_NONE = \033[0m +RESULT = .result +$(shell > .result) # Clear result file + $(IMAGES): %: %.bin $(BINARY) @$(BINARY) -b $< > /dev/null || printf "[%14s] $(COLOR_RED)FAIL$(COLOR_NONE)\n" $(notdir $<) >> .result integration-tests: $(IMAGES) - @cat .result + @cat $(RESULT) + @cat $(wc -l $(RESULT)) + @$(RM) $(RESULT) test: unit-tests integration-tests @$(OBJ_DIR)/tests/expr_test