> 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:36:21 up 1 day 15:04, 2 users, load average: 0.38, 0.39, 0.36
This commit is contained in:
parent
7df9c941df
commit
7c3c2ce973
2 changed files with 6 additions and 14 deletions
13
nemu/.result
13
nemu/.result
|
@ -1,13 +0,0 @@
|
|||
[string-riscv32-nemu.bin] [1;31mFAIL[0m
|
||||
[mersenne-riscv32-nemu.bin] [1;31mFAIL[0m
|
||||
[fact-riscv32-nemu.bin] [1;31mFAIL[0m
|
||||
[mul-longlong-riscv32-nemu.bin] [1;31mFAIL[0m
|
||||
[recursion-riscv32-nemu.bin] [1;31mFAIL[0m
|
||||
[shuixianhua-riscv32-nemu.bin] [1;31mFAIL[0m
|
||||
[hello-str-riscv32-nemu.bin] [1;31mFAIL[0m
|
||||
[div-riscv32-nemu.bin] [1;31mFAIL[0m
|
||||
[leap-year-riscv32-nemu.bin] [1;31mFAIL[0m
|
||||
[matrix-mul-riscv32-nemu.bin] [1;31mFAIL[0m
|
||||
[prime-riscv32-nemu.bin] [1;31mFAIL[0m
|
||||
[wanshu-riscv32-nemu.bin] [1;31mFAIL[0m
|
||||
[goldbach-riscv32-nemu.bin] [1;31mFAIL[0m
|
|
@ -75,11 +75,16 @@ COLOR_RED = \033[1;31m
|
|||
COLOR_GREEN = \033[1;32m
|
||||
COLOR_NONE = \033[0m
|
||||
|
||||
RESULT = .result
|
||||
$(shell > .result) # Clear result file
|
||||
|
||||
$(IMAGES): %: %.bin $(BINARY)
|
||||
@$(BINARY) -b $< > /dev/null || printf "[%14s] $(COLOR_RED)FAIL$(COLOR_NONE)\n" $(notdir $<) >> .result
|
||||
|
||||
integration-tests: $(IMAGES)
|
||||
@cat .result
|
||||
@cat $(RESULT)
|
||||
@cat $(wc -l $(RESULT))
|
||||
@$(RM) $(RESULT)
|
||||
|
||||
test: unit-tests integration-tests
|
||||
@$(OBJ_DIR)/tests/expr_test
|
||||
|
|
Loading…
Reference in a new issue