added Makefile for unit test
This commit is contained in:
parent
c4fc332419
commit
3ead0c07b2
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,4 +1,5 @@
|
|||||||
icscli
|
icscli
|
||||||
.gitconfig
|
.gitconfig
|
||||||
*.o
|
*.o
|
||||||
|
*.out
|
||||||
tags
|
tags
|
||||||
|
10
unit-tests/Makefile
Normal file
10
unit-tests/Makefile
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
CC = gcc
|
||||||
|
CFLAGS = -Wall -g -O0
|
||||||
|
|
||||||
|
test_parse_ics:
|
||||||
|
$(CC) $(CFLAGS) test_parse_ics.c ../src/parse_ics.c ../src/string_handling.c ../src/list_handling.c ../src/date_time_handling.c ../src/read_until_string.c ../src/read_until_nl.c -o test_parse_ics.out
|
||||||
|
./test_parse_ics.out
|
||||||
|
|
||||||
|
.PHONY:clean
|
||||||
|
clean:
|
||||||
|
-rm -vf *.out
|
@ -1,10 +0,0 @@
|
|||||||
For unit test `test_parse_ics.c`.
|
|
||||||
|
|
||||||
compilation command:
|
|
||||||
```
|
|
||||||
gcc -Wall test_parse_ics.c ../src/parse_ics.c ../src/string_handling.c ../src/list_handling.c ../src/date_time_handling.c ../src/read_until_string.c ../src/read_until_nl.c
|
|
||||||
```
|
|
||||||
|
|
||||||
```
|
|
||||||
./a.out
|
|
||||||
```
|
|
BIN
unit-tests/a.out
BIN
unit-tests/a.out
Binary file not shown.
Reference in New Issue
Block a user