mirror of
https://github.com/RubyMetric/chsrc.git
synced 2024-11-22 20:31:31 +08:00
Move tests
This commit is contained in:
parent
71854c19a9
commit
6f09093c69
12
Makefile
12
Makefile
|
@ -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
|
||||||
|
|
|
@ -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[])
|
Loading…
Reference in New Issue
Block a user