@ECORE_EVAS_CFLAGS@ \
@ECORE_WAYLAND_CFLAGS@ \
@ECORE_WAYLAND_SRV_CFLAGS@ \
-@ECORE_DRM_CFLAGS@
+@ECORE_DRM_CFLAGS@ \
+@ECORE_FB_CFLAGS@
tests_ecore_ecore_suite_LDADD = \
@CHECK_LIBS@ \
@USE_ECORE_IMF_LIBS@ \
@USE_ECORE_EVAS_LIBS@ \
@USE_ECORE_WAYLAND_LIBS@ \
+@USE_ECORE_FB_LIBS@ \
@ECORE_WAYLAND_SRV_LIBS@ \
@ECORE_DRM_LIBS@
+
tests_ecore_ecore_suite_DEPENDENCIES = \
@USE_ECORE_INTERNAL_LIBS@ \
@USE_ECORE_AUDIO_INTERNAL_LIBS@ \
@USE_ECORE_IMF_INTERNAL_LIBS@ \
@USE_ECORE_EVAS_INTERNAL_LIBS@ \
@USE_ECORE_WAYLAND_INTERNAL_LIBS@ \
-@USE_ECORE_DRM_INTERNAL_LIBS@
+@USE_ECORE_DRM_INTERNAL_LIBS@ \
+@USE_ECORE_FB_INTERNAL_LIBS@
if HAVE_ECORE_AUDIO
tests_ecore_ecore_suite_SOURCES += tests/ecore/ecore_test_ecore_audio.c
tests_ecore_ecore_suite_SOURCES += tests/ecore/ecore_test_ecore_drm.c
endif
+if HAVE_ECORE_FB
+tests_ecore_ecore_suite_SOURCES += tests/ecore/ecore_test_ecore_fb.c
+endif
+
endif
EXTRA_DIST += \
#if HAVE_ECORE_DRM
{ "Ecore_Drm", ecore_test_ecore_drm },
#endif
+#if HAVE_ECORE_FB
+ { "Ecore_Fb", ecore_test_ecore_fb },
+#endif
{ NULL, NULL }
};
void ecore_test_ecore_thread_eina_thread_queue(TCase *tc);
void ecore_test_ecore_wayland(TCase *tc);
void ecore_test_ecore_drm(TCase *tc);
+void ecore_test_ecore_fb(TCase *tc);
#endif /* _ECORE_SUITE_H */
--- /dev/null
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+#include <stdio.h>
+#include <unistd.h>
+
+#include <Ecore_Fb.h>
+
+#include "ecore_suite.h"
+
+#define MAX_ITER 10
+
+START_TEST(ecore_test_ecore_fb_init)
+{
+ int ret, i, j;
+
+ for (i = 1; i <= MAX_ITER; i++)
+ {
+ ret = ecore_fb_init("display");
+ fprintf(stderr, "Created %d ecore fb instance.\n", i);
+ fail_if(ret != i);
+ }
+
+ for (j = MAX_ITER - 1; j >= 0; j--)
+ {
+ ret = ecore_fb_shutdown();
+ fprintf(stderr, "Deleted %d ecore fb instance.\n", MAX_ITER - j);
+ fail_if(ret != j);
+ }
+}
+END_TEST
+
+void ecore_test_ecore_fb(TCase *tc)
+{
+ tcase_add_test(tc, ecore_test_ecore_fb_init);
+}