diff --git a/nemu/Makefile b/nemu/Makefile index 5d9af98..928f973 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); \ r=$$?; \ $(RM) $(RESULT); \ test $$r -eq 0 + @test ! -s $(RESULT); \ + r=$$?; \ + $(RM) $(RESULT); \ + test $$r -eq 0 test: unit-tests integration-tests @$(OBJ_DIR)/tests/expr_test