Compare commits

..

No commits in common. "f248a1d27987e9b1ad5b49312a58b8307d5bf861" and "31b8c83d2fe76b6ae11263c8914fd24b430614be" have entirely different histories.

4 changed files with 1 additions and 31 deletions

View File

@ -39,4 +39,4 @@ test:
@echo
./$(EXECUTABLE) -h
@echo
../tests/run_tests.sh
./$(EXECUTABLE) -f ../tests/calendar.ics

View File

@ -11,7 +11,6 @@
#include <fcntl.h>
#include <string.h>
#include <limits.h>
#include <unistd.h>
int main(int argc, char **argv) {
char *ics_path = "";
@ -39,8 +38,6 @@ int main(int argc, char **argv) {
while(read_until_nl(myfd, my_event)) {
if (strncmp(my_event, "BEGIN:VEVENT", 12) == 0) {
// include the BEGIN:EVENT to not loose the new line of first field
lseek(myfd, -12, SEEK_CUR);
memset(my_event, '\0', sizeof(my_event));
read_until_string(myfd, my_event, "END:VEVENT");
unfolding_string(my_event, unfolded_event);

View File

@ -1,15 +0,0 @@
#!/bin/bash
mapfile -t files < <(find ../tests/. -name "*.ics")
i=1
for file in ${files[@]}; do
echo "TEST ${i}: ${file}"
echo "===================================================="
../src/icscli -f "${file}"
echo "===================================================="
echo
((i++))
done
exit 0

View File

@ -1,12 +0,0 @@
BEGIN:VCALENDAR
BEGIN:VEVENT
DTSTART:20240413T070000Z
DTEND:20240413T083000Z
DTSTAMP:20240229T171200Z
SUMMARY:XYZ Exam (XYZ)
DESCRIPTION:XYZ Exam (XYZ)
UID:61792
CREATED:20240229T171308Z
LAST-MODIFIED:20240229T171308Z
END:VEVENT
END:VCALENDAR