Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Version 0.06 release
[xestiacalendar/.git] / source / tests / build.sh
index 9973318..3fe9257 100755 (executable)
@@ -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 \
@@ -18,6 +29,8 @@ xestiacalendar_test.cpp xestiacalendar_testcommon.cpp xestiacalendar_populate.cp
 ../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
Xestia Software Development
Yn Maystri
© 2006 - 2019 Xestia Software Development
Software

Xestia Address Book
Xestia Calendar
Development

Xestia Gelforn
Everything else

About
News
Privacy Policy