mirror of
https://github.com/RubyMetric/chsrc
synced 2025-06-27 23:18:30 +08:00
Add target test-fw
This commit is contained in:
parent
7a5f56ffe6
commit
e9d41ffe6f
27
Makefile
27
Makefile
@ -1,11 +1,13 @@
|
|||||||
# ------------------------------------------------------------
|
# --------------------------------------------------------------
|
||||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
# -------------------------------------------------------------
|
# --------------------------------------------------------------
|
||||||
# Build File : Makefile
|
# Build File : Makefile
|
||||||
# File Authors : Aoran Zeng <ccmywish@qq.com>
|
# File Authors : Aoran Zeng <ccmywish@qq.com>
|
||||||
|
# Contributors : Yangmoooo <yangmoooo@outlook.com>
|
||||||
|
# |
|
||||||
# Created On : <2023-08-28>
|
# Created On : <2023-08-28>
|
||||||
# Last Modified : <2024-09-10>
|
# Last Modified : <2024-12-14>
|
||||||
# ---------------------------------------------------------------
|
# --------------------------------------------------------------
|
||||||
|
|
||||||
CFLAGS = -Iinclude # -Wall
|
CFLAGS = -Iinclude # -Wall
|
||||||
|
|
||||||
@ -32,17 +34,24 @@ all:
|
|||||||
CI: all
|
CI: all
|
||||||
@mv $(Target) $(CI_Build_Name)
|
@mv $(Target) $(CI_Build_Name)
|
||||||
|
|
||||||
test: $(Target)
|
test: test-xy test-fw
|
||||||
@perl ./test/cli.pl
|
|
||||||
|
|
||||||
fastcheck: $(Target)
|
|
||||||
@perl ./test/cli.pl fastcheck
|
|
||||||
|
|
||||||
test-xy:
|
test-xy:
|
||||||
@$(CC) test/xy.c $(CFLAGS) -o xy
|
@$(CC) test/xy.c $(CFLAGS) -o xy
|
||||||
@./xy
|
@./xy
|
||||||
|
|
||||||
|
test-fw:
|
||||||
|
@$(CC) test/fw.c $(CFLAGS) -o fw
|
||||||
|
@./fw
|
||||||
|
|
||||||
|
fastcheck: $(Target)
|
||||||
|
@perl ./test/cli.pl fastcheck
|
||||||
|
|
||||||
|
test-cli: $(Target)
|
||||||
|
@perl ./test/cli.pl
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
-@rm *.exe 2>/dev/null
|
-@rm *.exe 2>/dev/null
|
||||||
-@rm xy 2>/dev/null
|
-@rm xy 2>/dev/null
|
||||||
|
-@rm fw 2>/dev/null
|
||||||
-@rm chsrc 2>/dev/null
|
-@rm chsrc 2>/dev/null
|
||||||
|
Loading…
x
Reference in New Issue
Block a user