]> git.0d.be Git - empathy.git/blob - tests/check-main.c
Revert "merge git work"
[empathy.git] / tests / check-main.c
1 #include <stdlib.h>
2 #include <stdio.h>
3 #include <string.h>
4 #include <glib-object.h>
5
6 #include <check.h>
7
8 #include "check-helpers.h"
9 #include "check-libempathy.h"
10
11 #include "config.h"
12
13 static Suite *
14 make_libempathy_suite (void)
15 {
16     Suite *s = suite_create ("libempathy");
17
18     suite_add_tcase (s, make_empathy_utils_tcase ());
19
20     return s;
21 }
22
23 int
24 main (void)
25 {
26     int number_failed = 0;
27     Suite *s;
28     SRunner *sr;
29
30     check_helpers_init ();
31     g_type_init ();
32
33     s = make_libempathy_suite ();
34     sr = srunner_create (s);
35     srunner_run_all (sr, CK_NORMAL);
36     number_failed += srunner_ntests_failed (sr);
37     srunner_free (sr);
38
39     return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
40 }