5
#include "ecore_suite.h"
6
#include "../efl_check.h"
9
static const Efl_Test_Case etc[] = {
10
{ "Ecore", ecore_test_ecore },
11
{ "idle", ecore_test_ecore_idle },
12
{ "poller", ecore_test_ecore_idle },
14
{ "Ecore_X", ecore_test_ecore_x },
16
{ "Ecore_Imf", ecore_test_ecore_imf },
18
{ "Ecore Audio", ecore_test_ecore_audio},
20
{ "Ecore_Timers", ecore_test_timer },
21
{ "Ecore_Evas", ecore_test_ecore_evas },
22
{ "Ecore_Animators", ecore_test_animator },
23
{ "Eina_Thread_Queue", ecore_test_ecore_thread_eina_thread_queue },
24
{ "Eina_Thread_Queue", ecore_test_ecore_thread_eina_thread_queue2 },
26
{ "Ecore_Fb", ecore_test_ecore_fb },
28
{ "Ecore_Input", ecore_test_ecore_input },
29
{ "Ecore_File", ecore_test_ecore_file },
30
{ "Ecore_Job", ecore_test_ecore_job },
31
{ "Ecore_Args", ecore_test_ecore_args },
32
{ "Ecore_Pipe", ecore_test_ecore_pipe },
33
{ "Ecore_Evas_Selection", ecore_test_ecore_evas_selection },
37
static Ecore_Timer *timeout;
38
int timeout_reached = 0;
43
#if CHECK_MINOR_VERSION >= 11
44
const char *tcname = tcase_name();
48
if (tcname && strstr(tcname, "download"))
50
fprintf(stderr, "test timeout reached: download failed, probably network issue. skipping\n");
51
ecore_main_loop_quit();
55
ck_abort_msg("test timeout reached!");
63
ck_assert_int_eq(ecore_init(), 1);
65
if (eina_streq(getenv("CK_FORK"), "no")) return;
67
timeout = ecore_timer_add(5.0, timeout_cb, NULL);
68
ck_assert_msg(!!timeout, "timeout timer creation failed!");
73
ecore_timer_del(timeout);
75
ck_assert_int_eq(ecore_shutdown(), 0);
79
main(int argc, char **argv)
83
if (!_efl_test_option_disp(argc, argv, etc))
86
#ifdef NEED_RUN_IN_TREE
87
putenv("EFL_RUN_IN_TREE=1");
90
failed_count = _efl_suite_build_and_run(argc - 1, (const char **)argv + 1,
91
"Ecore", etc, SUITE_INIT_FN(ecore), SUITE_SHUTDOWN_FN(ecore));
93
return (failed_count == 0) ? 0 : 255;