Add target test-fw

This commit is contained in:
Aoran Zeng 2024-12-14 18:59:49 +08:00
parent 7a5f56ffe6
commit e9d41ffe6f
No known key found for this signature in database
GPG Key ID: 8F8BA8488E10ED98

View File

@ -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