summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2018-02-21 19:28:08 -0300
committerFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2018-02-21 19:28:08 -0300
commit13cf5d948e94d214b3e7d498f1af81be67f5d11a (patch)
tree340e54ce921602c20aa06acff9a45f46ad6f0727
parent76b9f4c2248aa9a4f42fdc4d0980ca66afc0563c (diff)
eolian: Add testing multiple parse callsdevs/felipealmeida/eolian-merge-test
-rw-r--r--src/tests/eolian/eolian_parsing.c113
1 files changed, 113 insertions, 0 deletions
diff --git a/src/tests/eolian/eolian_parsing.c b/src/tests/eolian/eolian_parsing.c
index 7c75be94da..9e2d34ef19 100644
--- a/src/tests/eolian/eolian_parsing.c
+++ b/src/tests/eolian/eolian_parsing.c
@@ -10,6 +10,118 @@
10 10
11#include "eolian_suite.h" 11#include "eolian_suite.h"
12 12
13START_TEST(eolian_multiple_parse)
14{
15 const Eolian_Unit* unit;
16
17 eolian_init();
18
19 Eolian *eos = eolian_new();
20
21 fail_if(!eolian_directory_scan(eos, TESTS_SRC_DIR"/data"));
22 /* fail_if(!eolian_directory_scan(eos, TESTS_SRC_DIR"/../../lib/efl/interfaces")); */
23 /* fail_if(!eolian_directory_scan(eos, TESTS_SRC_DIR"/../../lib/evas/canvas")); */
24 fail_if(!eolian_directory_scan(eos, TESTS_SRC_DIR"/../../lib"));
25
26 const char *files[] = {
27 TESTS_SRC_DIR"/data/base.eo",
28 TESTS_SRC_DIR"/data/class_funcs.eo",
29 // TESTS_SRC_DIR"/data/class_simple.eo",
30 TESTS_SRC_DIR"/data/complex_type.eo",
31 TESTS_SRC_DIR"/data/consts.eo",
32 TESTS_SRC_DIR"/data/ctor_dtor.eo",
33 TESTS_SRC_DIR"/data/decl.eo",
34 // TESTS_SRC_DIR"/data/docs.eo",
35 TESTS_SRC_DIR"/data/enum.eo",
36 TESTS_SRC_DIR"/data/events.eo",
37 // TESTS_SRC_DIR"/data/extern.eo",
38 TESTS_SRC_DIR"/data/free_func.eo",
39 TESTS_SRC_DIR"/data/function_as_argument.eo",
40 TESTS_SRC_DIR"/data/function_types.eot",
41 TESTS_SRC_DIR"/data/import.eo",
42 TESTS_SRC_DIR"/data/nmsp1_class1.eo",
43 TESTS_SRC_DIR"/data/nmsp1_nmsp11_class2.eo",
44 TESTS_SRC_DIR"/data/nmsp2_class1.eo",
45 TESTS_SRC_DIR"/data/no_nmsp.eo",
46 TESTS_SRC_DIR"/data/null.eo",
47 TESTS_SRC_DIR"/data/object_impl_add.eo",
48 TESTS_SRC_DIR"/data/object_impl.eo",
49 TESTS_SRC_DIR"/data/override.eo",
50 TESTS_SRC_DIR"/data/owning.eo",
51 TESTS_SRC_DIR"/data/parts.eo",
52 TESTS_SRC_DIR"/data/scope.eo",
53 TESTS_SRC_DIR"/data/struct.eo",
54 // TESTS_SRC_DIR"/data/typedef.eo",
55 // TESTS_SRC_DIR"/data/var.eo"
56
57 TESTS_SRC_DIR"/../../lib/efl/interfaces/efl_text_types.eot",
58 TESTS_SRC_DIR"/../../lib/evas/canvas/efl_canvas_object.eo",
59 TESTS_SRC_DIR"/../../lib/evas/canvas/efl_canvas_text_factory.eo",
60 TESTS_SRC_DIR"/../../lib/evas/canvas/efl_canvas_group.eo",
61 TESTS_SRC_DIR"/../../lib/evas/canvas/efl_canvas_image_internal.eo",
62 TESTS_SRC_DIR"/../../lib/evas/canvas/evas_canvas3d_camera.eo",
63 TESTS_SRC_DIR"/../../lib/evas/canvas/evas_canvas3d_texture.eo",
64 TESTS_SRC_DIR"/../../lib/evas/canvas/evas_canvas3d_material.eo",
65 TESTS_SRC_DIR"/../../lib/evas/canvas/evas_canvas3d_light.eo",
66 TESTS_SRC_DIR"/../../lib/evas/canvas/evas_canvas3d_mesh.eo",
67 TESTS_SRC_DIR"/../../lib/evas/canvas/evas_canvas3d_primitive.eo",
68 TESTS_SRC_DIR"/../../lib/evas/canvas/evas_canvas3d_node.eo",
69 TESTS_SRC_DIR"/../../lib/evas/canvas/evas_canvas3d_scene.eo",
70 TESTS_SRC_DIR"/../../lib/evas/canvas/evas_canvas3d_object.eo",
71 TESTS_SRC_DIR"/../../lib/evas/canvas/efl_canvas_vg.eo",
72 TESTS_SRC_DIR"/../../lib/evas/canvas/efl_vg.eo",
73 TESTS_SRC_DIR"/../../lib/evas/canvas/efl_vg_container.eo",
74 TESTS_SRC_DIR"/../../lib/evas/canvas/efl_vg_shape.eo",
75 TESTS_SRC_DIR"/../../lib/evas/canvas/efl_vg_gradient.eo",
76 TESTS_SRC_DIR"/../../lib/evas/canvas/efl_vg_gradient_radial.eo",
77 TESTS_SRC_DIR"/../../lib/evas/canvas/efl_vg_gradient_linear.eo",
78 TESTS_SRC_DIR"/../../lib/evas/canvas/efl_canvas_image.eo",
79 TESTS_SRC_DIR"/../../lib/evas/canvas/efl_canvas_snapshot.eo",
80 TESTS_SRC_DIR"/../../lib/evas/canvas/efl_canvas_proxy.eo",
81 TESTS_SRC_DIR"/../../lib/evas/canvas/efl_canvas_scene3d.eo",
82 TESTS_SRC_DIR"/../../lib/evas/canvas/efl_canvas_surface.eo",
83 TESTS_SRC_DIR"/../../lib/evas/canvas/efl_canvas_surface_tbm.eo",
84 TESTS_SRC_DIR"/../../lib/evas/canvas/efl_canvas_surface_x11.eo",
85 TESTS_SRC_DIR"/../../lib/evas/canvas/efl_canvas_surface_wayland.eo",
86 TESTS_SRC_DIR"/../../lib/evas/canvas/efl_canvas_filter_internal.eo",
87 TESTS_SRC_DIR"/../../lib/evas/canvas/efl_input_state.eo",
88 TESTS_SRC_DIR"/../../lib/evas/canvas/efl_input_interface.eo",
89 TESTS_SRC_DIR"/../../lib/evas/canvas/efl_input_event.eo",
90 TESTS_SRC_DIR"/../../lib/evas/canvas/efl_input_key.eo",
91 TESTS_SRC_DIR"/../../lib/evas/canvas/efl_input_pointer.eo",
92 TESTS_SRC_DIR"/../../lib/evas/canvas/efl_input_hold.eo",
93 TESTS_SRC_DIR"/../../lib/evas/canvas/efl_input_focus.eo",
94 TESTS_SRC_DIR"/../../lib/evas/canvas/efl_gfx_map.eo",
95 TESTS_SRC_DIR"/../../lib/evas/canvas/efl_animation.eo",
96 TESTS_SRC_DIR"/../../lib/evas/canvas/efl_animation_alpha.eo",
97 TESTS_SRC_DIR"/../../lib/evas/canvas/efl_animation_rotate.eo",
98 TESTS_SRC_DIR"/../../lib/evas/canvas/efl_animation_scale.eo",
99 TESTS_SRC_DIR"/../../lib/evas/canvas/efl_animation_translate.eo",
100 TESTS_SRC_DIR"/../../lib/evas/canvas/efl_animation_group.eo",
101 TESTS_SRC_DIR"/../../lib/evas/canvas/efl_animation_group_parallel.eo",
102 TESTS_SRC_DIR"/../../lib/evas/canvas/efl_animation_group_sequential.eo",
103 TESTS_SRC_DIR"/../../lib/evas/canvas/efl_animation_player.eo",
104 TESTS_SRC_DIR"/../../lib/evas/gesture/efl_gesture_touch.eo",
105 TESTS_SRC_DIR"/../../lib/evas/gesture/efl_gesture.eo",
106 TESTS_SRC_DIR"/../../lib/evas/gesture/efl_gesture_tap.eo",
107 TESTS_SRC_DIR"/../../lib/evas/gesture/efl_gesture_long_tap.eo",
108 TESTS_SRC_DIR"/../../lib/evas/gesture/efl_gesture_recognizer.eo",
109 TESTS_SRC_DIR"/../../lib/evas/gesture/efl_gesture_manager.eo"
110
111 };
112
113 int i = 0;
114 for(;i != sizeof(files)/sizeof(files[0]);++i)
115 {
116 fprintf(stderr, "Parsing %s\n", files[i]); fflush(stderr);
117 fail_if(!(unit = eolian_file_parse(eos, files[i])));
118 }
119
120 eolian_free(eos);
121 eolian_shutdown();
122}
123END_TEST
124
13START_TEST(eolian_namespaces) 125START_TEST(eolian_namespaces)
14{ 126{
15 const Eolian_Class *class11, *class112, *class21, *class_no, *impl_class, 127 const Eolian_Class *class11, *class112, *class21, *class_no, *impl_class,
@@ -1670,4 +1782,5 @@ void eolian_parsing_test(TCase *tc)
1670 tcase_add_test(tc, eolian_function_types); 1782 tcase_add_test(tc, eolian_function_types);
1671 tcase_add_test(tc, eolian_function_as_arguments); 1783 tcase_add_test(tc, eolian_function_as_arguments);
1672 tcase_add_test(tc, eolian_parts); 1784 tcase_add_test(tc, eolian_parts);
1785 tcase_add_test(tc, eolian_multiple_parse);
1673} 1786}