mirror of
https://github.com/RubyMetric/chsrc.git
synced 2025-04-24 05:04:20 +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
|
||||
# -------------------------------------------------------------
|
||||
# --------------------------------------------------------------
|
||||
# Build File : Makefile
|
||||
# File Authors : Aoran Zeng <ccmywish@qq.com>
|
||||
# Contributors : Yangmoooo <yangmoooo@outlook.com>
|
||||
# |
|
||||
# Created On : <2023-08-28>
|
||||
# Last Modified : <2024-09-10>
|
||||
# ---------------------------------------------------------------
|
||||
# Last Modified : <2024-12-14>
|
||||
# --------------------------------------------------------------
|
||||
|
||||
CFLAGS = -Iinclude # -Wall
|
||||
|
||||
@ -32,17 +34,24 @@ all:
|
||||
CI: all
|
||||
@mv $(Target) $(CI_Build_Name)
|
||||
|
||||
test: $(Target)
|
||||
@perl ./test/cli.pl
|
||||
|
||||
fastcheck: $(Target)
|
||||
@perl ./test/cli.pl fastcheck
|
||||
test: test-xy test-fw
|
||||
|
||||
test-xy:
|
||||
@$(CC) test/xy.c $(CFLAGS) -o 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:
|
||||
-@rm *.exe 2>/dev/null
|
||||
-@rm xy 2>/dev/null
|
||||
-@rm fw 2>/dev/null
|
||||
-@rm chsrc 2>/dev/null
|
||||
|
Loading…
x
Reference in New Issue
Block a user