From e54b6110c0fb53a76329ca154c20c1be62595517 Mon Sep 17 00:00:00 2001 From: tracer-ysyx Date: Wed, 6 Mar 2024 11:33:52 +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:33:52=20=20up=201=20day?= =?UTF-8?q?=2015:02,=20=202=20users,=20=20load=20average:=200.39,=200.40,?= =?UTF-8?q?=200.36?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nemu/.integration-test.tmp | 1 + nemu/Makefile | 6 ++---- 2 files changed, 3 insertions(+), 4 deletions(-) create mode 100644 nemu/.integration-test.tmp diff --git a/nemu/.integration-test.tmp b/nemu/.integration-test.tmp new file mode 100644 index 0000000..423b01b --- /dev/null +++ b/nemu/.integration-test.tmp @@ -0,0 +1 @@ +[goldbach-riscv32-nemu.bin] FAIL diff --git a/nemu/Makefile b/nemu/Makefile index f5f7ef4..792ef83 100644 --- a/nemu/Makefile +++ b/nemu/Makefile @@ -76,12 +76,10 @@ COLOR_GREEN = \033[1;32m COLOR_NONE = \033[0m $(IMAGES): %: %.bin $(BINARY) - @$(RM) .integration-test.tmp - @$(BINARY) -b $< > /dev/null || printf "[%14s] $(COLOR_RED)FAIL$(COLOR_NONE)\n" $(notdir $<) >> .integration-test.tmp - @printf "%s Failed \n" $(shell wc -l .integration-test.tmp) + @$(BINARY) -b $< > /dev/null || printf "[%14s] $(COLOR_RED)FAIL$(COLOR_NONE)\n" $(notdir $<) >> .result integration-tests: $(IMAGES) - @echo $(IMAGES_PATH) + @cat .result test: unit-tests integration-tests @$(OBJ_DIR)/tests/expr_test