mirror of
https://github.com/RubyMetric/chsrc.git
synced 2024-11-22 20:19:02 +08:00
Move tests
This commit is contained in:
parent
71854c19a9
commit
6f09093c69
12
Makefile
12
Makefile
|
@ -3,7 +3,7 @@
|
|||
# License : GPLv3
|
||||
# Authors : Aoran Zeng <ccmywish@qq.com>
|
||||
# Created on : <2023-08-28>
|
||||
# Last modified : <2023-09-20>
|
||||
# Last modified : <2024-05-24>
|
||||
# ---------------------------------------------------------------
|
||||
|
||||
CFLAGS = # -Wall
|
||||
|
@ -37,12 +37,12 @@ test: $(TARGET)
|
|||
./$(TARGET) get ruby
|
||||
./$(TARGET) get python
|
||||
|
||||
.PHONY: xy
|
||||
xy:
|
||||
@$(CC) test_xy.c -o xy
|
||||
@./xy
|
||||
test_xy:
|
||||
@mkdir -p build
|
||||
@$(CC) test/xy.c -o build/xy
|
||||
@./build/xy
|
||||
|
||||
clean:
|
||||
-@rm *.exe 2>/dev/null
|
||||
-@rm $(TARGET) 2>/dev/null
|
||||
-@rm ./xy 2>/dev/null
|
||||
-@rm ./build/* 2>/dev/null
|
||||
|
|
|
@ -1,16 +1,16 @@
|
|||
/** ------------------------------------------------------------
|
||||
* File : test_xy.c
|
||||
* File : xy.c
|
||||
* License : MIT
|
||||
* Authors : Aoran Zeng <ccmywish@qq.com>
|
||||
* Created on : <2023-08-30>
|
||||
* Last modified : <2024-04-18>
|
||||
* Last modified : <2024-05-24>
|
||||
*
|
||||
* test_xy:
|
||||
*
|
||||
* 测试 xy.h
|
||||
* ------------------------------------------------------------*/
|
||||
|
||||
#include "xy.h"
|
||||
#include "../xy.h"
|
||||
|
||||
int
|
||||
main (int argc, char const *argv[])
|
Loading…
Reference in New Issue
Block a user