diff --git a/nemu/Makefile b/nemu/Makefile index d8b64d2..5d9af98 100644 --- a/nemu/Makefile +++ b/nemu/Makefile @@ -87,10 +87,7 @@ 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