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