aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/Makefile.am4
-rw-r--r--tests/check-empathy-chatroom.c3
-rw-r--r--tests/test.manager5
-rw-r--r--tests/test.profile4
4 files changed, 13 insertions, 3 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 6134aa142..ccf6c8f1d 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -51,4 +51,6 @@ check_main_CFLAGS = \
@CHECK_CFLAGS@ \
$(AM_CFLAGS)
-TESTS_ENVIRONMENT = EMPATHY_SRCDIR=@abs_top_srcdir@
+TESTS_ENVIRONMENT = EMPATHY_SRCDIR=@abs_top_srcdir@ \
+ MC_PROFILE_DIR=@abs_top_srcdir@/tests \
+ MC_MANAGER_DIR=@abs_top_srcdir@/tests
diff --git a/tests/check-empathy-chatroom.c b/tests/check-empathy-chatroom.c
index fca2f1286..1e426b552 100644
--- a/tests/check-empathy-chatroom.c
+++ b/tests/check-empathy-chatroom.c
@@ -15,8 +15,7 @@ create_chatroom (void)
McAccount *account;
EmpathyChatroom *chatroom;
- /* FIXME: we should fake the profile */
- profile = mc_profile_lookup ("jabber");
+ profile = mc_profile_lookup ("test");
account = mc_account_create (profile);
chatroom = empathy_chatroom_new (account);
fail_if (chatroom == NULL);
diff --git a/tests/test.manager b/tests/test.manager
new file mode 100644
index 000000000..8a49c3267
--- /dev/null
+++ b/tests/test.manager
@@ -0,0 +1,5 @@
+[ConnectionManager]
+BusName=org.freedesktop.Telepathy.ConnectionManager.test
+ObjectPath=/org/freedesktop/Telepathy/ConnectionManager/test
+
+[Protocol test]
diff --git a/tests/test.profile b/tests/test.profile
new file mode 100644
index 000000000..20e552a1a
--- /dev/null
+++ b/tests/test.profile
@@ -0,0 +1,4 @@
+[Profile]
+Manager = test
+Protocol = test
+DisplayName = test