CPP=g++ STRIP=strip CPPFLAGS=`xml2-config --cflags` `wx-config --cxxflags` -I.. -I../objects -std=c++11 -pthread -DXESTIACAL_UNITTEST -ggdb -O0 -g --coverage -fprofile-arcs -ftest-coverage CPPLIBS=`wx-config --libs` `curl-config --libs` -lsfml-audio -lxml2 -lgtest -coverage -lsqlite3 MAKE=make OBJDIR=. ICALEVENTTESTS_OUT=xestiacalendar_icaleventtests ICALJOURNALTESTS_OUT=xestiacalendar_icaleventtests ICALTASKTESTS_OUT=xestiacalendar_icaltasktests ICALFREEBUSYTESTS_OUT=xestiacalendar_icalfreebusytests ICALTIMEZONETESTS_OUT=xestiacalendar_icaltimezonetests COMMONFUNCTIONSTESTS_OUT=xestiacalendar_commonfunctionstests CALENDARDATASTORAGETESTS_OUT=xestiacalendar_calendardatastoragetests ICALEVENTTESTS_OBJS=iCalendarEventTests/iCalendarEventLoad.cpp \ iCalendarEventTests/iCalendarEventSave.cpp \ ../objects/calendarobject/CalendarObject.cpp \ ../objects/calendarobject/CalendarObject-Save.cpp \ ../objects/calendarevent/CalendarEvent.cpp \ ../objects/calendarevent/CalendarEvent-Save.cpp \ ../common/file.cpp \ ../common/text.cpp \ iCalendarEventTests/main.cpp ICALJOURNALTESTS_OBJS=iCalendarJournalTests/iCalendarJournalLoad.cpp \ iCalendarJournalTests/iCalendarJournalSave.cpp \ ../objects/calendarobject/CalendarObject.cpp \ ../objects/calendarobject/CalendarObject-Save.cpp \ ../objects/calendarjournal/CalendarJournal.cpp \ ../objects/calendarjournal/CalendarJournal-Save.cpp \ ../common/file.cpp \ ../common/text.cpp \ iCalendarJournalTests/main.cpp ICALTASKTESTS_OBJS=iCalendarTaskTests/iCalendarTaskLoad.cpp \ iCalendarTaskTests/iCalendarTaskSave.cpp \ ../objects/calendarobject/CalendarObject.cpp \ ../objects/calendarobject/CalendarObject-Save.cpp \ ../objects/calendartask/CalendarTask.cpp \ ../objects/calendartask/CalendarTask-Save.cpp \ ../common/file.cpp \ ../common/text.cpp \ iCalendarTaskTests/main.cpp ICALFREEBUSYTESTS_OBJS=iCalendarFreeBusyTests/iCalendarFreeBusyLoad.cpp \ iCalendarFreeBusyTests/iCalendarFreeBusySave.cpp \ ../objects/calendarobject/CalendarObject.cpp \ ../objects/calendarobject/CalendarObject-Save.cpp \ ../objects/calendarfreebusy/CalendarFreeBusy.cpp \ ../objects/calendarfreebusy/CalendarFreeBusy-Save.cpp \ ../common/file.cpp \ ../common/text.cpp \ iCalendarFreeBusyTests/main.cpp ICALTIMEZONETESTS_OBJS=iCalendarTimeZoneTests/iCalendarTimeZoneLoad.cpp \ iCalendarTimeZoneTests/iCalendarTimeZoneSave.cpp \ ../objects/calendarobject/CalendarObject.cpp \ ../objects/calendarobject/CalendarObject-Save.cpp \ ../objects/calendartimezone/CalendarTimezone.cpp \ ../objects/calendartimezone/CalendarTimezone-Save.cpp \ ../common/file.cpp \ ../common/text.cpp \ iCalendarTimeZoneTests/main.cpp COMMONFUNCTIONSTESTS_OBJS=CommonFunctionsTests/CommonFunctionsTests.cpp \ ../common/file.cpp \ ../common/text.cpp \ ../common/monthviewgen.cpp \ CommonFunctionsTests/main.cpp CALENDARDATASTORAGETESTS_OBJS=CalendarDataStorageTests/CalendarDataStorageTests.cpp \ ../libraries/CalendarDataStorage/CalendarDataStorage.cpp \ ../objects/calendarobject/CalendarObject.cpp \ ../objects/calendarobject/CalendarObject-Save.cpp \ ../objects/calendarevent/CalendarEvent.cpp \ ../objects/calendarevent/CalendarEvent-Save.cpp \ ../common/random.cpp \ ../common/file.cpp \ ../common/text.cpp \ CalendarDataStorageTests/main.cpp setupbrokenfiles: chmod 000 iCalendarEvent-InvalidPermissions.vcf chmod 000 iCalendarJournal-InvalidPermissions.vcf chmod 000 iCalendarTask-InvalidPermissions.vcf chmod 000 iCalendarFreeBusy-InvalidPermissions.vcf chmod 000 iCalendarTimezone-InvalidPermissions.vcf resetbrokenfiles: chmod 660 iCalendarEvent-InvalidPermissions.vcf chmod 660 iCalendarJournal-InvalidPermissions.vcf chmod 660 iCalendarTask-InvalidPermissions.vcf chmod 660 iCalendarFreeBusy-InvalidPermissions.vcf chmod 660 iCalendarTimezone-InvalidPermissions.vcf icaleventtests-objs: $(ICALEVENTTESTS_OBJS) icaleventtests-exec: icaleventtests-objs $(CPP) $(CPPFLAGS) $(ICALEVENTTESTS_OBJS) -o $(ICALEVENTTESTS_OUT) $(CPPLIBS) icaleventtests-coverage: icaleventtests-exec gcov iCalendarEventTests/*.cpp ./$(ICALEVENTTESTS_OUT) --gtest_output=xml:icaleventtests.xml lcov -c --directory . --output-file xestiacalendar_icaleventtests.info icaljournaltests-objs: $(ICALJOURNALTESTS_OBJS) icaljournaltests-exec: icaljournaltests-objs $(CPP) $(CPPFLAGS) $(ICALJOURNALTESTS_OBJS) -o $(ICALJOURNALTESTS_OUT) $(CPPLIBS) icaljournaltests-coverage: icaljournaltests-exec gcov iCalendarJournalTests/*.cpp ./$(ICALJOURNALTESTS_OUT) --gtest_output=xml:icaljournaltests.xml lcov -c --directory . --output-file xestiacalendar_icaljournaltests.info icaltasktests-objs: $(ICALTASKTESTS_OBJS) icaltasktests-exec: icaltasktests-objs $(CPP) $(CPPFLAGS) $(ICALTASKTESTS_OBJS) -o $(ICALTASKTESTS_OUT) $(CPPLIBS) icaltasktests-coverage: icaltasktests-exec gcov iCalendarTaskTests/*.cpp ./$(ICALTASKTESTS_OUT) --gtest_output=xml:icaltasktests.xml lcov -c --directory . --output-file xestiacalendar_icaltasktests.info icalfreebusytests-objs: $(ICALFREEBUSYTESTS_OBJS) icalfreebusytests-exec: icalfreebusytests-objs $(CPP) $(CPPFLAGS) $(ICALFREEBUSYTESTS_OBJS) -o $(ICALFREEBUSYTESTS_OUT) $(CPPLIBS) icalfreebusytests-coverage: icalfreebusytests-exec gcov iCalendarFreeBusyTests/*.cpp ./$(ICALFREEBUSYTESTS_OUT) --gtest_output=xml:icalfreebusytests.xml lcov -c --directory . --output-file xestiacalendar_icalfreebusytests.info icaltimezonetests-objs: $(ICALTIMEZONETESTS_OBJS) icaltimezonetests-exec: icaltimezonetests-objs $(CPP) $(CPPFLAGS) $(ICALTIMEZONETESTS_OBJS) -o $(ICALTIMEZONETESTS_OUT) $(CPPLIBS) icaltimezonetests-coverage: icaltimezonetests-exec gcov iCalendarTimeZoneTests/*.cpp ./$(ICALTIMEZONETESTS_OUT) --gtest_output=xml:icaltimezonetests.xml lcov -c --directory . --output-file xestiacalendar_icaltimezonetests.info commonfunctionstests-objs: $(COMMONFUNCTIONSTESTS_OBJS) commonfunctionstests-exec: commonfunctionstests-objs $(CPP) $(CPPFLAGS) $(COMMONFUNCTIONSTESTS_OBJS) -o $(COMMONFUNCTIONSTESTS_OUT) $(CPPLIBS) commonfunctionstests-coverage: commonfunctionstests-exec gcov CommonFunctionsTests/*.cpp ./$(COMMONFUNCTIONSTESTS_OUT) --gtest_output=xml:commonfunctionstests.xml lcov -c --directory . --output-file xestiacalendar_commonfunctionstests.info calendardatastoragetests-objs: $(CALENDARDATASTORAGETESTS_OBJS) calendardatastoragetests-exec: calendardatastoragetests-objs $(CPP) $(CPPFLAGS) $(CALENDARDATASTORAGETESTS_OBJS) -o $(CALENDARDATASTORAGETESTS_OUT) $(CPPLIBS) calendardatastoragetests-coverage: calendardatastoragetests-exec gcov iCalendarTimeZoneTests/*.cpp ./$(CALENDARDATASTORAGETESTS_OUT) --gtest_output=xml:calendardatastoragetests.xml lcov -c --directory . --output-file xestiacalendar_calendardatastoragetests.info clean: resetbrokenfiles rm -rf *.gcda *.gcno *.xml *.info rm -rf $(ICALEVENTTESTS_OUT) $(ICALJOURNALTESTS_OUT) $(ICALTASKTESTS_OUT) $(ICALFREEBUSYTESTS_OUT) $(ICALTIMEZONETESTS_OUT) $(COMMONFUNCTIONSTESTS_OUT) $(CALENDARDATASTORAGETESTS_OUT) rm -rf Output report codecoverage: setupbrokenfiles icaleventtests-coverage icaljournaltests-coverage \ icaltasktests-coverage icalfreebusytests-coverage icaltimezonetests-coverage \ commonfunctionstests-coverage calendardatastoragetests-coverage lcov -a xestiacalendar_icaleventtests.info -o xestiacalendar_tests.info lcov -a xestiacalendar_icaljournaltests.info -o xestiacalendar_tests.info lcov -a xestiacalendar_icaltasktests.info -o xestiacalendar_tests.info lcov -a xestiacalendar_icalfreebusytests.info -o xestiacalendar_tests.info lcov -a xestiacalendar_icaltimezonetests.info -o xestiacalendar_tests.info lcov -a xestiacalendar_commonfunctionstests.info -o xestiacalendar_tests.info lcov -a xestiacalendar_calendardatastoragetests.info -o xestiacalendar_tests.info lcov -r xestiacalendar_tests.info '/usr/include/*' -o xestiacalendar_tests.info lcov -r xestiacalendar_tests.info '*tests/*' -o xestiacalendar_tests.info genhtml xestiacalendar_tests.info -output-directory report