[evolution-data-server] Removing obsolete tests from test/libecal/client
- From: Tristan Van Berkom <tvb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] Removing obsolete tests from test/libecal/client
- Date: Sat, 16 Mar 2013 07:59:44 +0000 (UTC)
commit 53d63640f7fd11476f65f840176a552e46741268
Author: Tristan Van Berkom <tristanvb openismus com>
Date: Sat Mar 16 16:58:21 2013 +0900
Removing obsolete tests from test/libecal/client
Also managed to completely remove client-test-utils from this
directory.
tests/libecal/client/Makefile.am | 34 +--
tests/libecal/client/client-test-utils.c | 336 -------------
tests/libecal/client/client-test-utils.h | 24 -
tests/libecal/client/test-client-add-timezone.c | 1 -
tests/libecal/client/test-client-examine.c | 493 --------------------
tests/libecal/client/test-client-open.c | 129 -----
tests/libecal/client/test-client-send-objects.c | 40 ++-
.../client/test-client-stress-factory--fifo.c | 52 --
.../client/test-client-stress-factory--serial.c | 39 --
.../test-client-stress-factory--single-cal.c | 68 ---
tests/libecal/client/test-client-stress-views.c | 127 -----
11 files changed, 41 insertions(+), 1302 deletions(-)
---
diff --git a/tests/libecal/client/Makefile.am b/tests/libecal/client/Makefile.am
index 4cdc58d..71242dd 100644
--- a/tests/libecal/client/Makefile.am
+++ b/tests/libecal/client/Makefile.am
@@ -1,8 +1,5 @@
-noinst_LTLIBRARIES = libclient-test-utils.la
-libclient_test_utils_la_SOURCES = client-test-utils.c client-test-utils.h
-
-libclient_test_utils_la_CPPFLAGS = \
+TEST_CPPFLAGS= \
$(AM_CPPFLAGS) \
-I$(top_srcdir) \
-I$(top_builddir) \
@@ -17,7 +14,7 @@ libclient_test_utils_la_CPPFLAGS = \
$(CAMEL_CFLAGS) \
$(NULL)
-libclient_test_utils_la_LIBADD = \
+TEST_LIBS = \
$(top_builddir)/calendar/libecal/libecal-1.2.la \
$(top_builddir)/tests/test-server-utils/libetestserverutils.la \
$(EVOLUTION_CALENDAR_LIBS) \
@@ -56,21 +53,6 @@ BROKEN_TEST = \
# The test program
noinst_PROGRAMS = $(TESTS) $(BROKEN_TESTS) \
- test-client-open \
- test-client-examine \
- test-client-stress-views \
- test-client-stress-factory--serial \
- test-client-stress-factory--fifo \
- test-client-stress-factory--single-cal \
- $(NULL)
-
-TEST_CPPFLAGS= \
- $(libclient_test_utils_la_CPPFLAGS) \
- $(NULL)
-
-TEST_LIBS = \
- $(libclient_test_utils_la_LIBADD) \
- libclient-test-utils.la \
$(NULL)
# ordered alphanumerically
@@ -78,8 +60,6 @@ test_client_add_timezone_LDADD=$(TEST_LIBS)
test_client_add_timezone_CPPFLAGS=$(TEST_CPPFLAGS)
test_client_create_object_LDADD=$(TEST_LIBS)
test_client_create_object_CPPFLAGS=$(TEST_CPPFLAGS)
-test_client_examine_LDADD=$(TEST_LIBS)
-test_client_examine_CPPFLAGS=$(TEST_CPPFLAGS)
test_client_get_attachment_uris_LDADD=$(TEST_LIBS)
test_client_get_attachment_uris_CPPFLAGS=$(TEST_CPPFLAGS)
test_client_get_free_busy_LDADD=$(TEST_LIBS)
@@ -94,8 +74,6 @@ test_client_modify_object_LDADD=$(TEST_LIBS)
test_client_modify_object_CPPFLAGS=$(TEST_CPPFLAGS)
test_client_get_revision_LDADD=$(TEST_LIBS)
test_client_get_revision_CPPFLAGS=$(TEST_CPPFLAGS)
-test_client_open_LDADD=$(TEST_LIBS)
-test_client_open_CPPFLAGS=$(TEST_CPPFLAGS)
test_client_receive_objects_LDADD=$(TEST_LIBS)
test_client_receive_objects_CPPFLAGS=$(TEST_CPPFLAGS)
test_client_bulk_methods_LDADD=$(TEST_LIBS)
@@ -106,13 +84,5 @@ test_client_remove_object_LDADD=$(TEST_LIBS)
test_client_remove_object_CPPFLAGS=$(TEST_CPPFLAGS)
test_client_send_objects_LDADD=$(TEST_LIBS)
test_client_send_objects_CPPFLAGS=$(TEST_CPPFLAGS)
-test_client_stress_factory__fifo_LDADD=$(TEST_LIBS)
-test_client_stress_factory__fifo_CPPFLAGS=$(TEST_CPPFLAGS)
-test_client_stress_factory__serial_LDADD=$(TEST_LIBS)
-test_client_stress_factory__serial_CPPFLAGS=$(TEST_CPPFLAGS)
-test_client_stress_factory__single_cal_LDADD=$(TEST_LIBS)
-test_client_stress_factory__single_cal_CPPFLAGS=$(TEST_CPPFLAGS)
-test_client_stress_views_LDADD=$(TEST_LIBS)
-test_client_stress_views_CPPFLAGS=$(TEST_CPPFLAGS)
-include $(top_srcdir)/git.mk
diff --git a/tests/libecal/client/test-client-add-timezone.c b/tests/libecal/client/test-client-add-timezone.c
index 2e42876..afce41d 100644
--- a/tests/libecal/client/test-client-add-timezone.c
+++ b/tests/libecal/client/test-client-add-timezone.c
@@ -4,7 +4,6 @@
#include <libecal/libecal.h>
#include <libical/ical.h>
-#include "client-test-utils.h"
#include "e-test-server-utils.h"
#define TZID_NEW "XYZ"
diff --git a/tests/libecal/client/test-client-send-objects.c b/tests/libecal/client/test-client-send-objects.c
index e30e162..3041777 100644
--- a/tests/libecal/client/test-client-send-objects.c
+++ b/tests/libecal/client/test-client-send-objects.c
@@ -5,11 +5,49 @@
#include <libical/ical.h>
#include "e-test-server-utils.h"
-#include "client-test-utils.h" /* For print_icomp() */
static ETestServerClosure cal_closure =
{ E_TEST_SERVER_CALENDAR, NULL, E_CAL_CLIENT_SOURCE_TYPE_EVENTS };
+static void
+print_ecomp (ECalComponent *ecalcomp)
+{
+ const gchar *uid = NULL;
+ ECalComponentText summary = { 0 };
+
+ g_return_if_fail (ecalcomp != NULL);
+
+ e_cal_component_get_uid (ecalcomp, &uid);
+ e_cal_component_get_summary (ecalcomp, &summary);
+
+ g_print (" Component: %s\n", uid ? uid : "no-uid");
+ g_print (" Summary: %s\n", summary.value ? summary.value : "NULL");
+ g_print ("\n");
+}
+
+static void
+print_icomp (icalcomponent *icalcomp)
+{
+ ECalComponent *ecomp;
+
+ g_return_if_fail (icalcomp != NULL);
+
+ ecomp = e_cal_component_new ();
+ icalcomp = icalcomponent_new_clone (icalcomp);
+
+ if (!e_cal_component_set_icalcomponent (ecomp, icalcomp)) {
+ icalcomponent_free (icalcomp);
+ g_object_unref (ecomp);
+ g_printerr ("%s: Failed to assing icalcomp to ECalComponent\n", G_STRFUNC);
+ g_print ("\n");
+ return;
+ }
+
+ print_ecomp (ecomp);
+
+ g_object_unref (ecomp);
+}
+
static icalcomponent *
create_object (void)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]