> compile NEMU
ysyx_22040000 李心杨 Linux calcite 6.6.18 #1-NixOS SMP PREEMPT_DYNAMIC Fri Feb 23 08:25:28 UTC 2024 x86_64 GNU/Linux 11:33:52 up 1 day 15:02, 2 users, load average: 0.39, 0.40, 0.36
This commit is contained in:
parent
bb71f3bcea
commit
e54b6110c0
2 changed files with 3 additions and 4 deletions
1
nemu/.integration-test.tmp
Normal file
1
nemu/.integration-test.tmp
Normal file
|
@ -0,0 +1 @@
|
|||
[goldbach-riscv32-nemu.bin] [1;31mFAIL[0m
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue