remove old files 00/92000/1
authorRoman Peresipkyn <r.peresipkyn@samsung.com>
Wed, 12 Oct 2016 13:25:23 +0000 (16:25 +0300)
committerRoman Peresipkyn <r.peresipkyn@samsung.com>
Wed, 12 Oct 2016 13:25:30 +0000 (16:25 +0300)
Change-Id: Ib1aee63ec52d5ac055002310978853f6a3148cb1
Signed-off-by: Roman Peresipkyn <r.peresipkyn@samsung.com>
configure.ac
tests/Makefile.am [deleted file]
tests/eom-test-output.c [deleted file]

index 71c95ec..69650db 100755 (executable)
@@ -141,7 +141,6 @@ AC_OUTPUT([Makefile
            src/Makefile
            include/Makefile
            include/eom.pc
-           tests/Makefile
            ut/Makefile])
 
 echo "CFLAGS       : $CFLAGS"
diff --git a/tests/Makefile.am b/tests/Makefile.am
deleted file mode 100644 (file)
index 1829456..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-AM_CFLAGS = \
-       $(LIBEOM_CFLAGS) \
-       -I$(top_srcdir)/include
-
-AM_LDFLAGS = \
-       $(LIBEOM_LIBS) \
-       $(top_builddir)/src/libeom.la
-
-noinst_PROGRAMS = \
-       eom-test-output
-
-eom_test_output_SOURCES = eom-test-output.c
diff --git a/tests/eom-test-output.c b/tests/eom-test-output.c
deleted file mode 100755 (executable)
index 3cdd3e0..0000000
+++ /dev/null
@@ -1,87 +0,0 @@
-#include <stdio.h>
-#include <stdlib.h>
-#include <gio/gio.h>
-#include <eom.h>
-
-/* This test application consider only one output */
-
-static void
-test_eom_output_notify_cb_output_add(eom_output_notify_s *notify, void *user_data)
-{
-       eom_output_notify_add_s *add_notify = (eom_output_notify_add_s*)notify;
-       printf("output(%d) connected\n", add_notify->output_id);
-
-       /* already has one connected output */
-       if (output)
-               return;
-
-       output = eom_output_create(add_notify->output_id);
-       if (!output)
-               printf("fail: creating output\n");
-}
-
-static void
-test_eom_output_notify_cb_output_remove(eom_output_notify_s *notify, void *user_data)
-{
-       eom_output_notify_remove_s *rm_notify = (eom_output_notify_remove_s*)notify;
-       printf("output(%d) disconnected\n", rm_notify->output_id);
-
-       /* no connected output */
-       if (!output)
-               return;
-
-       if (eom_output_get_output_id(output) != rm_notify->output_id) {
-               printf("I'm not interested in this output(%d,%d)\n", eom_output_get_output_id(output), rm_notify->output_id);
-               return;
-       }
-
-       eom_output_destroy(output);
-       output = NULL;
-}
-
-static void
-test_eom_check_connected_output(void)
-{
-       int output_cnt;
-       eom_output_id *output_ids;
-
-       output_ids = eom_get_eom_output_ids(&output_cnt);
-       if (!output_ids)
-               goto done;
-
-       printf("output(%d) connected\n", output_ids[0]);
-
-done:
-       if (output_ids)
-               free(output_ids);
-}
-
-int
-main(int argc, char *argv[])
-{
-       GMainLoop *event_loop;
-
-       g_type_init();
-
-       if (eom_init())
-               return 0;
-
-       eom_output_add_notify_cb(EOM_OUTPUT_NOTIFY_ADD, test_eom_output_notify_cb_output_add, NULL);
-       eom_output_add_notify_cb(EOM_OUTPUT_NOTIFY_REMOVE, test_eom_output_notify_cb_output_remove, NULL);
-
-       test_eom_check_connected_output();
-
-       /* run event loop */
-       event_loop = g_main_loop_new(NULL, FALSE);
-       g_main_loop_run(event_loop);
-
-       if (output)
-               eom_output_destroy(output);
-
-       eom_output_remove_notify_cb(test_eom_output_notify_cb_output_add);
-       eom_output_remove_notify_cb(test_eom_output_notify_cb_output_remove);
-
-       eom_deinit();
-
-       return 0;
-}