summaryrefslogtreecommitdiff
path: root/src/tests/evas/evas_suite.c
blob: e84d23f5dc87d316462ec1f6c2d00b374c2d1e4f (plain) (blame)
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 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 },
  { "Filters", evas_test_filters },
  { "Images", evas_test_image_object },
  { "Images", evas_test_image_object2 },
  { "Meshes", evas_test_mesh },
  { "Meshes", evas_test_mesh1 },
  { "Meshes", evas_test_mesh2 },
  { "Meshes", evas_test_mesh3 },
  { "Masking", evas_test_mask },
  { "Evas GL", evas_test_evasgl },
  { "Object Smart", evas_test_object_smart },
  { "Matrix", evas_test_matrix },
  { 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;
}