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 # License : GPLv3
# Authors : Aoran Zeng <ccmywish@qq.com> # Authors : Aoran Zeng <ccmywish@qq.com>
# Created on : <2023-08-28> # Created on : <2023-08-28>
# Last modified : <2023-09-20> # Last modified : <2024-05-24>
# --------------------------------------------------------------- # ---------------------------------------------------------------
CFLAGS = # -Wall CFLAGS = # -Wall
@ -37,12 +37,12 @@ test: $(TARGET)
./$(TARGET) get ruby ./$(TARGET) get ruby
./$(TARGET) get python ./$(TARGET) get python
.PHONY: xy test_xy:
xy: @mkdir -p build
@$(CC) test_xy.c -o xy @$(CC) test/xy.c -o build/xy
@./xy @./build/xy
clean: clean:
-@rm *.exe 2>/dev/null -@rm *.exe 2>/dev/null
-@rm $(TARGET) 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 * License : MIT
* Authors : Aoran Zeng <ccmywish@qq.com> * Authors : Aoran Zeng <ccmywish@qq.com>
* Created on : <2023-08-30> * Created on : <2023-08-30>
* Last modified : <2024-04-18> * Last modified : <2024-05-24>
* *
* test_xy: * test_xy:
* *
* xy.h * xy.h
* ------------------------------------------------------------*/ * ------------------------------------------------------------*/
#include "xy.h" #include "../xy.h"
int int
main (int argc, char const *argv[]) main (int argc, char const *argv[])