Move tests

This commit is contained in:
Aoran Zeng 2024-05-24 16:33:32 +08:00
parent 71854c19a9
commit 6f09093c69
2 changed files with 9 additions and 9 deletions

View File

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

View File

@ -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[])