Test file use DEBUG mode

This commit is contained in:
Aoran Zeng 2025-07-14 22:40:30 +08:00
parent 8f501dd50e
commit f2a383412c
No known key found for this signature in database
GPG Key ID: 8F8BA8488E10ED98
2 changed files with 8 additions and 4 deletions

View File

@ -8,7 +8,7 @@
# | sanchuanhehe <wyihe5520@gmail.com>
# |
# Created On : <2023-08-28>
# Last Modified : <2025-07-13>
# Last Modified : <2025-07-14>
#
# 请阅读 ./doc/01-Develop.md 来使用
# --------------------------------------------------------------
@ -164,10 +164,13 @@ test-make-env:
echo "HOME: $(HOME)"; \
fi
# 这两个测试文件都用 DEBUG mode
test-xy: CFLAGS += $(CFLAGS_debug)
test-xy:
@$(CC) test/xy.c $(CFLAGS) -o xy
@./xy
test-fw: CFLAGS += $(CFLAGS_debug)
test-fw:
@$(CC) test/fw.c $(CFLAGS) -o fw
@./fw

View File

@ -7,7 +7,7 @@
# Contributors : Nul None <nul@none.org>
# |
# Created On : <2025-06-18>
# Last Modified : <2025-07-13>
# Last Modified : <2025-07-14>
#
# 该文件主要用于在原生Windows上执行项目的基本任务而不借助于
# GNU make 以及相应的 MSYS2、Cygwin 环境
@ -123,12 +123,13 @@ debug: build-in-debug-mode
test: test-xy test-fw
# 这两个测试文件都用 DEBUG mode
test-xy:
@{{CC}} test/xy.c {{CFLAGS_dev_mode}} -o xy
@{{CC}} test/xy.c {{CFLAGS_debug_mode}} -o xy
@{{BIN_xy}}
test-fw:
@{{CC}} test/fw.c {{CFLAGS_dev_mode}} -o fw
@{{CC}} test/fw.c {{CFLAGS_debug_mode}} -o fw
@{{BIN_fw}}
fastcheck: