1 #ifdef HAVE_CONFIG_H
2 # include <config.h>
3 #endif
4
5 #ifdef _WIN32
6 # include <evil_private.h> /* setenv */
7 #endif
8
9 #include "eolian_suite.h"
10 #include "../efl_check.h"
11 #include <Eolian.h>
12
13 static const Efl_Test_Case etc[] = {
14 { "Eolian Parsing", eolian_parsing_test},
15 { "Eolian Static Analysis", eolian_static_test},
16 { "Eolian Generation", eolian_generation_test},
17 { "Eolian Aux", eolian_aux_test},
18 { NULL, NULL }
19 };
20
SUITE_INIT(eolian)21 SUITE_INIT(eolian)
22 {
23 ck_assert_int_eq(eolian_init(), 1);
24 }
25
SUITE_SHUTDOWN(eolian)26 SUITE_SHUTDOWN(eolian)
27 {
28 ck_assert_int_eq(eolian_shutdown(), 0);
29 }
30
31 int
main(int argc,char ** argv)32 main(int argc, char **argv)
33 {
34 int failed_count;
35
36 setenv("CK_FORK", "no", 0);
37
38 if (!_efl_test_option_disp(argc, argv, etc))
39 return 0;
40
41 #ifdef NEED_RUN_IN_TREE
42 putenv("EFL_RUN_IN_TREE=1");
43 #endif
44
45 failed_count = _efl_suite_build_and_run(argc - 1, (const char **)argv + 1,
46 "Eolian", etc, SUITE_INIT_FN(eolian), SUITE_SHUTDOWN_FN(eolian));
47
48 return (failed_count == 0) ? 0 : 255;
49 }
50