1
/*
2
 * AT-SPI - Assistive Technology Service Provider Interface
3
 * (Gnome Accessibility Project; https://wiki.gnome.org/Accessibility)
4
 *
5
 * Copyright (c) 2014 Samsung Electronics Co., Ltd.
6
 *
7
 * This library is free software; you can redistribute it and/or
8
 * modify it under the terms of the GNU Lesser General Public
9
 * License as published by the Free Software Foundation; either
10
 * version 2.1 of the License, or (at your option) any later version.
11
 *
12
 * This library is distributed in the hope that it will be useful,
13
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15
 * Lesser General Public License for more details.
16
 *
17
 * You should have received a copy of the GNU Lesser General Public
18
 * License along with this library; if not, write to the
19
 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
20
 * Boston, MA 02110-1301, USA.
21
 */
22

            
23
#include "atk_suite.h"
24
#include "atk_test_util.h"
25
#include <glib.h>
26
#include <stdio.h>
27
#include <stdlib.h>
28
#include <string.h>
29
#include <sys/wait.h>
30
#include <unistd.h>
31

            
32
static void
33
1
atk_suite_build (void)
34
{
35
1
  atk_test_accessible ();
36
1
  atk_test_action ();
37
1
  atk_test_component ();
38
1
  atk_test_collection ();
39
1
  atk_test_document ();
40

            
41
1
  atk_test_editable_text ();
42
1
  atk_test_hyperlink ();
43
1
  atk_test_hypertext ();
44
1
  atk_test_image ();
45
1
  atk_test_selection ();
46
1
  atk_test_state_set ();
47
1
  atk_test_table ();
48
1
  atk_test_table_cell ();
49
1
  atk_test_text ();
50
1
  atk_test_value ();
51
1
}
52

            
53
int
54
1
main (int argc, char **argv)
55
{
56
  int init_result;
57

            
58
1
  g_test_init (&argc, &argv, NULL);
59

            
60
1
  setlocale (LC_ALL, "");
61
1
  init_result = atspi_init ();
62
1
  if (init_result != 0)
63
    {
64
      g_error ("Could not initialize atspi, code %d", init_result);
65
    }
66

            
67
1
  fixture_listener_init ();
68

            
69
1
  atk_suite_build ();
70

            
71
1
  int result = g_test_run ();
72
1
  g_assert_cmpint (result, ==, 0);
73

            
74
1
  int leaked = atspi_exit ();
75
1
  g_assert_cmpint (leaked, ==, 0);
76

            
77
1
  return 0;
78
}