diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2009-10-29 22:31:23 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2009-11-03 20:25:02 +0800 |
commit | f90aaa6e6f9dfa16dd3d6b6c526857f987862c99 (patch) | |
tree | a606ff4313a19ab4e9e2de4d562a019daf16ec43 /tests | |
parent | 3b0ccc3b5889e511190924a1f5f8df85de61e2bd (diff) | |
download | gsoc2013-empathy-f90aaa6e6f9dfa16dd3d6b6c526857f987862c99.tar gsoc2013-empathy-f90aaa6e6f9dfa16dd3d6b6c526857f987862c99.tar.gz gsoc2013-empathy-f90aaa6e6f9dfa16dd3d6b6c526857f987862c99.tar.bz2 gsoc2013-empathy-f90aaa6e6f9dfa16dd3d6b6c526857f987862c99.tar.lz gsoc2013-empathy-f90aaa6e6f9dfa16dd3d6b6c526857f987862c99.tar.xz gsoc2013-empathy-f90aaa6e6f9dfa16dd3d6b6c526857f987862c99.tar.zst gsoc2013-empathy-f90aaa6e6f9dfa16dd3d6b6c526857f987862c99.zip |
port check-empathy-chatroom.c to GTest
The tests have not been ported yet as they are currently
disabled.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/.gitignore | 1 | ||||
-rw-r--r-- | tests/Makefile.am | 7 | ||||
-rw-r--r-- | tests/check-libempathy.h | 1 | ||||
-rw-r--r-- | tests/check-main.c | 1 | ||||
-rw-r--r-- | tests/empathy-chatroom-test.c (renamed from tests/check-empathy-chatroom.c) | 30 |
5 files changed, 24 insertions, 16 deletions
diff --git a/tests/.gitignore b/tests/.gitignore index febd6a8be..eda398504 100644 --- a/tests/.gitignore +++ b/tests/.gitignore @@ -4,4 +4,5 @@ empathy-utils-test empathy-irc-server-test empathy-irc-network-test empathy-irc-network-manager-test +empathy-chatroom-test test-report.xml diff --git a/tests/Makefile.am b/tests/Makefile.am index d0b7fd36d..50a6bbade 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -27,7 +27,8 @@ TEST_PROGS = \ empathy-utils-test \ empathy-irc-server-test \ empathy-irc-network-test \ - empathy-irc-network-manager-test + empathy-irc-network-manager-test \ + empathy-chatroom-test empathy_utils_test_SOURCES = empathy-utils-test.c \ test-helper.c test-helper.h @@ -45,6 +46,9 @@ empathy_irc_network_manager_test_SOURCES = empathy-irc-network-manager-test.c \ check-irc-helper.h check-irc-helper.c \ check-empathy-helpers.h check-empathy-helpers.c +empathy_chatroom_test_SOURCES = empathy-chatroom-test.c \ + test-helper.c test-helper.h + check_PROGRAMS = check-main $(TEST_PROGS) TESTS = check-main @@ -57,7 +61,6 @@ check_main_SOURCES = \ check-empathy-helpers.c \ check-irc-helper.h \ check-irc-helper.c \ - check-empathy-chatroom.c \ check-empathy-chatroom-manager.c check_c_sources = \ diff --git a/tests/check-libempathy.h b/tests/check-libempathy.h index bcb0be9e2..a892bf67c 100644 --- a/tests/check-libempathy.h +++ b/tests/check-libempathy.h @@ -1,7 +1,6 @@ #ifndef __CHECK_LIBEMPATHY__ #define __CHECK_LIBEMPATHY__ -TCase * make_empathy_chatroom_tcase (void); TCase * make_empathy_chatroom_manager_tcase (void); #endif /* #ifndef __CHECK_LIBEMPATHY__ */ diff --git a/tests/check-main.c b/tests/check-main.c index e8b2c1a8a..00bcf4380 100644 --- a/tests/check-main.c +++ b/tests/check-main.c @@ -16,7 +16,6 @@ make_libempathy_suite (void) { Suite *s = suite_create ("libempathy"); - suite_add_tcase (s, make_empathy_chatroom_tcase ()); suite_add_tcase (s, make_empathy_chatroom_manager_tcase ()); return s; diff --git a/tests/check-empathy-chatroom.c b/tests/empathy-chatroom-test.c index 4d0b7e1ee..77d0c29e9 100644 --- a/tests/check-empathy-chatroom.c +++ b/tests/empathy-chatroom-test.c @@ -2,10 +2,8 @@ #include <stdio.h> #include <string.h> -#include <check.h> -#include "check-helpers.h" -#include "check-libempathy.h" #include "check-empathy-helpers.h" +#include "test-helper.h" #include <libempathy/empathy-chatroom.h> @@ -146,14 +144,22 @@ START_TEST (test_change_favorite) END_TEST #endif -TCase * -make_empathy_chatroom_tcase (void) +int +main (int argc, + char **argv) { - TCase *tc = tcase_create ("empathy-chatroom"); - /* - tcase_add_test (tc, test_empathy_chatroom_new); - tcase_add_test (tc, test_favorite_and_auto_connect); - tcase_add_test (tc, test_change_favorite); - */ - return tc; + int result; + + test_init (argc, argv); + +#if 0 + g_test_add_func ("/chatroom/new", test_empathy_chatroom_new); + g_test_add_func ("/chatroom/favorite-and-auto-connect", + test_favorite_and_auto_connect); + g_test_add_func ("/chatroom/change-favorite", test_change_favorite); +#endif + + result = g_test_run (); + test_deinit (); + return result; } |