X-Git-Url: http://Server1/repobrowser/?p=xestiacalendar%2F.git;a=blobdiff_plain;f=source%2Ftests%2Fbuild.sh;h=3fe9257657703243bed7945f7e4853952b7d899f;hp=d3534be03321c301965b152b48c41af3bfa1ff74;hb=353e537a0c84a496c97e8889403c77d13a0b7341;hpb=fccdf15a7c322be7d22b83b0433595fe2f8867b8 diff --git a/source/tests/build.sh b/source/tests/build.sh index d3534be..3fe9257 100755 --- a/source/tests/build.sh +++ b/source/tests/build.sh @@ -1,5 +1,16 @@ #!/bin/sh +# Build the library first. + +g++ -ggdb --std=c++11 -c ../libraries/CalendarDataStorage/CalendarDataStorage.cpp \ + -o ../libraries/CalendarDataStorage/CalendarDataStorage-test.o \ + -lsqlite3 +ar rcs libCalendarDataStorage-test.a ../libraries/CalendarDataStorage/CalendarDataStorage-test.o + +echo "Building main unit test app..." + +# Build the unit testing application. + g++ `xml2-config --cflags --libs` -ggdb --std=c++11 -lcurl -lgtest -pthread \ xestiacalendar_test.cpp xestiacalendar_testcommon.cpp xestiacalendar_populate.cpp \ ../objects/calendarevent/CalendarEvent.cpp \ @@ -17,6 +28,9 @@ xestiacalendar_test.cpp xestiacalendar_testcommon.cpp xestiacalendar_populate.cp ../common/file.cpp \ ../common/text.cpp \ ../common/uuid.cpp \ +../common/monthviewgen.cpp \ +../common/random.cpp \ ../objects/CalDAV/CalDAV.cpp \ ../objects/CalDAV/CalDAV-XMLProcessing.cpp \ --DXESTIACAL_UNITTEST -o xestiacalendar_test +-DXESTIACAL_UNITTEST -o xestiacalendar_test \ +-L. -lCalendarDataStorage-test -lsqlite3