[evolution-data-server/cursor-staging: 5/19] 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/cursor-staging: 5/19] test-server-utils: Add e_test_server_utils_run_full()
- Date: Mon, 21 Oct 2013 22:47:51 +0000 (UTC)
commit d0638d5ae143d93764b78d51ce128253725b6844
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 a7c4cc8..82dd22e 100644
--- a/tests/test-server-utils/e-test-server-utils.c
+++ b/tests/test-server-utils/e-test-server-utils.c
@@ -542,10 +542,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 f0137da..8978124 100644
--- a/tests/test-server-utils/e-test-server-utils.h
+++ b/tests/test-server-utils/e-test-server-utils.h
@@ -136,6 +136,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);
@@ -143,5 +153,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]