From eda2de1f21865198ac3c69592a2aa52185ee1a21 Mon Sep 17 00:00:00 2001 From: tracer-ysyx Date: Wed, 6 Mar 2024 12:03:32 +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=2012:03:32=20=20up=201=20day?= =?UTF-8?q?=2015:31,=20=202=20users,=20=20load=20average:=200.51,=200.45,?= =?UTF-8?q?=200.47?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nemu/Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/nemu/Makefile b/nemu/Makefile index 08c3466..a826be8 100644 --- a/nemu/Makefile +++ b/nemu/Makefile @@ -87,7 +87,10 @@ integration-tests: $(IMAGES) @printf "$(COLOR_BLUE)RESULT:$(COLOR_NONE)\n\tALL: %s\n\tFAILED: %s\n" $(words $(IMAGES)) $(shell wc -l $(RESULT) | cut -f1 -d' ') @printf "$(COLOR_RED)FAILED:$(COLOR_NONE)\n" @cat $(RESULT) - @test ! -s $(RESULT); $(RM) $(RESULT) + @test ! -s $(RESULT); \ + r=$$?; \ + $(RM) $(RESULT); \ + test $r -eq 0 test: unit-tests integration-tests @$(OBJ_DIR)/tests/expr_test