added Makefile for unit test

This commit is contained in:
bjt-user 2024-07-09 08:27:18 +02:00
parent c4fc332419
commit 3ead0c07b2
4 changed files with 11 additions and 10 deletions

1
.gitignore vendored
View File

@ -1,4 +1,5 @@
icscli
.gitconfig
*.o
*.out
tags

10
unit-tests/Makefile Normal file
View 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

View File

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

Binary file not shown.