[evolution-data-server/openismus-work-3-8] test-server-utils: Add e_test_server_utils_run_full()
- From: Tristan Van Berkom <tvb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server/openismus-work-3-8] test-server-utils: Add e_test_server_utils_run_full()
- Date: Mon, 27 May 2013 13:37:21 +0000 (UTC)
commit 8dadeac668f388e2b061d42c4e0548e5732c2dcd
Author: Mathias Hasselmann <mathias openismus com>
Date: Tue Mar 5 11:03:24 2013 +0100
test-server-utils: Add e_test_server_utils_run_full()
Basically this is to tell e_test_server_utils_run() to not
wipe the working directory before start.
Conflicts:
tests/test-server-utils/e-test-server-utils.h
tests/test-server-utils/e-test-server-utils.c | 9 ++++++++-
tests/test-server-utils/e-test-server-utils.h | 11 +++++++++++
2 files changed, 19 insertions(+), 1 deletions(-)
---
diff --git a/tests/test-server-utils/e-test-server-utils.c b/tests/test-server-utils/e-test-server-utils.c
index faefffd..d1721e5 100644
--- a/tests/test-server-utils/e-test-server-utils.c
+++ b/tests/test-server-utils/e-test-server-utils.c
@@ -451,10 +451,17 @@ e_test_server_utils_teardown (ETestServerFixture *fixture,
gint
e_test_server_utils_run (void)
{
+ return e_test_server_utils_run_full (0);
+}
+
+gint
+e_test_server_utils_run_full (ETestServerFlags flags)
+{
gint tests_ret;
/* Cleanup work directory */
- delete_work_directory ();
+ if ((flags & E_TEST_SERVER_KEEP_WORK_DIRECTORY) == 0)
+ delete_work_directory ();
setup_environment ();
diff --git a/tests/test-server-utils/e-test-server-utils.h b/tests/test-server-utils/e-test-server-utils.h
index 1e5f72e..4ba4a77 100644
--- a/tests/test-server-utils/e-test-server-utils.h
+++ b/tests/test-server-utils/e-test-server-utils.h
@@ -135,6 +135,16 @@ struct _ETestServerFixture {
guint registry_finalized : 1;
};
+/**
+ * ETestServiceFlags:
+ * @E_TEST_SERVER_KEEP_WORK_DIRECTORY: Don't delete working directory upon startup.
+ *
+ * Instructions upon e_test_server_utils_run_full() operation.
+ */
+typedef enum {
+ E_TEST_SERVER_KEEP_WORK_DIRECTORY = (1 << 0)
+} ETestServerFlags;
+
void e_test_server_utils_setup (ETestServerFixture *fixture,
gconstpointer user_data);
@@ -142,5 +152,6 @@ void e_test_server_utils_teardown (ETestServerFixture *fixture,
gconstpointer user_data);
gint e_test_server_utils_run (void);
+gint e_test_server_utils_run_full (ETestServerFlags flags);
#endif /* E_TEST_UTILS_H */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]