mirror of
https://github.com/RubyMetric/chsrc
synced 2025-07-18 13:37:29 +08:00
Test file use DEBUG
mode
This commit is contained in:
parent
8f501dd50e
commit
f2a383412c
5
Makefile
5
Makefile
@ -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
|
||||
|
7
justfile
7
justfile
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user