summaryrefslogtreecommitdiff
path: root/src/tests/evas/evas_suite.c
blob: feaaf126af2a07179985e90e77bef2d3a2bc04ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif

#include <Evas.h>
#include <Ecore_Evas.h>

#include "evas_suite.h"
#include "../efl_check.h"

static const Efl_Test_Case etc[] = {
  { "Evas", evas_test_init },
  { "Evas Focus", evas_test_focus },
  { "Evas New", evas_test_new },
  { "Object", evas_test_object },
  { "Object Textblock", evas_test_textblock },
  { "Object Text", evas_test_text },
  { "Callbacks", evas_test_callbacks },
  { "Render Engines", evas_test_render_engines },
#if HAVE_LUA
  { "Filters", evas_test_filters },
#endif
  { "Images", evas_test_image_object },
  { "Images", evas_test_image_object2 },
  { "Masking", evas_test_mask },
  { "Evas GL", evas_test_evasgl },
  { "Object Smart", evas_test_object_smart },
  { "Events", evas_test_events },
  { "Efl Canvas Animation", efl_test_canvas_animation },
  { NULL, NULL }
};

SUITE_INIT(evas)
{
   ck_assert_int_eq(evas_init(), 1);
   ck_assert_int_eq(ecore_evas_init(), 1);
}

SUITE_SHUTDOWN(evas)
{
   ck_assert_int_eq(ecore_evas_shutdown(), 0);
   ck_assert_int_eq(evas_shutdown(), 0);
}

int
main(int argc, char **argv)
{
   int failed_count;

   if (!_efl_test_option_disp(argc, argv, etc))
     return 0;

#ifdef NEED_RUN_IN_TREE
   putenv("EFL_RUN_IN_TREE=1");
#endif

   failed_count = _efl_suite_build_and_run(argc - 1, (const char **)argv + 1,
                                           "Evas", etc, SUITE_INIT_FN(evas), SUITE_SHUTDOWN_FN(evas));

   return (failed_count == 0) ? 0 : 255;
}