rimmed pushed a commit to branch master. http://git.enlightenment.org/tools/eflete.git/commit/?id=3395f05f0ed1367be6d369ddbb3d6227511085fe
commit 3395f05f0ed1367be6d369ddbb3d6227511085fe Author: Andrii Kroitor <an.kroi...@samsung.com> Date: Thu Mar 24 08:19:58 2016 +0200 UTC: remove shortcuts tests --- tests/Makefile.am | 15 +----- tests/test_shortcuts/shortcuts_init.c | 69 ------------------------- tests/test_shortcuts/shortcuts_profile_load.c | 72 --------------------------- tests/test_shortcuts/shortcuts_shutdown.c | 70 -------------------------- tests/test_shortcuts/test_shortcuts.c | 43 ---------------- tests/test_shortcuts/test_shortcuts.h | 28 ----------- 6 files changed, 2 insertions(+), 295 deletions(-) diff --git a/tests/Makefile.am b/tests/Makefile.am index 0e32952..733258d 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -14,8 +14,7 @@ history_test \ logger_test \ project_manager_test \ config_test \ -cursor_test \ -shortcuts_test +cursor_test check_PROGRAMS = ${TESTS} @@ -39,7 +38,6 @@ FLAGS = \ -I${top_srcdir}/src/bin/ui/preference \ -I${top_srcdir}/src/bin/ui/live_view \ -I${top_srcdir}/src/bin/ui/live_view/elementary \ --I${top_srcdir}/src/bin/ui/shortcuts \ -I${top_srcdir}/tests \ @EFL_CFLAGS@ \ @ELEMENTARY_CFLAGS@ \ @@ -69,8 +67,7 @@ include_HEADERS = \ ../tests/test_project_manager/test_project_manager.h \ ../tests/test_config/test_config.h \ ../tests/test_cursor/test_cursor.h \ - ../tests/test_live_widget/test_live_widget.h \ - ../tests/test_shortcuts/test_shortcuts.h + ../tests/test_live_widget/test_live_widget.h ewe_init_test_SOURCES = \ ../tests/test_ewe_init/test_ewe_init.c \ @@ -221,14 +218,6 @@ live_widget_test_SOURCES = \ live_widget_test_CFLAGS = ${FLAGS} live_widget_test_LDADD = ${LD} -shortcuts_test_SOURCES = \ -../tests/test_shortcuts/test_shortcuts.c \ -../tests/test_shortcuts/shortcuts_init.c \ -../tests/test_shortcuts/shortcuts_shutdown.c \ -../tests/test_shortcuts/shortcuts_profile_load.c -shortcuts_test_CFLAGS = ${FLAGS} -shortcuts_test_LDADD = ${LD} - coverage: echo "<html><body>" > ../coverage.html lcov --zerocounters --directory ../src diff --git a/tests/test_shortcuts/shortcuts_init.c b/tests/test_shortcuts/shortcuts_init.c deleted file mode 100644 index e8c6b62..0000000 --- a/tests/test_shortcuts/shortcuts_init.c +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Edje Theme Editor - * Copyright (C) 2013-2014 Samsung Electronics. - * - * This file is part of Edje Theme Editor. - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; If not, see www.gnu.org/licenses/lgpl.html. - */ - -#include "test_shortcuts.h" - -/** - * @addtogroup shortcuts_test - * @{ - * @addtogroup shortcuts_init - * @{ - * Shortcuts - * <TABLE> - * @} - */ - -/** - * @addtogroup shortcuts_init - * @{ - * <tr> - * <td>shortcuts_init</td> - * <td>shortcuts_init_test_p1</td> - * <td> - * @precondition - * @step 1 initialize elementary library - * @step 2 create App_Data - * - * @procedure - * @step 1 call shortcuts_init - * </td> - * <td>App_Data *ap</td> - * <td>EINA_TRUE</td> - * </tr> - * @} - */ -EFLETE_TEST(shortcuts_init_test_p1) -{ - elm_init(0,0); - app_init(); - - ck_assert_msg(ap.shortcuts != NULL, "Shortcuts not initialized."); - - app_shutdown(); - elm_shutdown(); -} -END_TEST - -/** - * @addtogroup shortcuts_init - * @{ - * </TABLE> - * @} - * @} - */ diff --git a/tests/test_shortcuts/shortcuts_profile_load.c b/tests/test_shortcuts/shortcuts_profile_load.c deleted file mode 100644 index 2a6cad4..0000000 --- a/tests/test_shortcuts/shortcuts_profile_load.c +++ /dev/null @@ -1,72 +0,0 @@ -/** - * Edje Theme Editor - * Copyright (C) 2013-2014 Samsung Electronics. - * - * This file is part of Edje Theme Editor. - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; If not, see www.gnu.org/licenses/lgpl.html. - */ - -#include "test_shortcuts.h" - -/** - * @addtogroup shortcuts_test - * @{ - * @addtogroup shortcuts_profile_load - * @{ - * Shortcuts - * <TABLE> - * @} - */ - -/** - * @addtogroup shortcuts_profile_load - * @{ - * <tr> - * <td>shortcuts_profile_load</td> - * <td>shortcuts_profile_load_test_p</td> - * <td> - * @precondition - * @step 1 initialize elementary library - * @step 2 initialize and get application data - * @step 3 load "default" profile - * @step 4 get loaded "default" profile - * - * @procedure - * @step 1 call shortcuts_profile_load - * </td> - * <td>(App_Data *)app, (Profile *)profile</td> - * <td>EINA_TRUE</td> - * </tr> - * @} - */ -EFLETE_TEST(shortcuts_profile_load_test_p) -{ - elm_init(0,0); - app_init(); - profile_load("default"); - - ck_assert_msg(shortcuts_profile_load(profile_get()), "Cant load profile."); - - app_shutdown(); - elm_shutdown(); -} -END_TEST - -/** - * @addtogroup shortcuts_profile_load - * @{ - * </TABLE> - * @} - * @} - */ diff --git a/tests/test_shortcuts/shortcuts_shutdown.c b/tests/test_shortcuts/shortcuts_shutdown.c deleted file mode 100644 index 917462f..0000000 --- a/tests/test_shortcuts/shortcuts_shutdown.c +++ /dev/null @@ -1,70 +0,0 @@ -/* - * Edje Theme Editor - * Copyright (C) 2013-2014 Samsung Electronics. - * - * This file is part of Edje Theme Editor. - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; If not, see www.gnu.org/licenses/lgpl.html. - */ - -#include "test_shortcuts.h" - -/** - * @addtogroup shortcuts_test - * @{ - * @addtogroup shortcuts_shutdown - * @{ - * Shortcuts - * <TABLE> - * @} - */ - -/** - * @addtogroup shortcuts_shutdown - * @{ - * <tr> - * <td>shortcuts_shutdown</td> - * <td>shortcuts_shutdown_test_p1</td> - * <td> - * @precondition - * @step 1 initialize elementary library - * @step 2 create App_Data - * - * @procedure - * @step 1 call shortcuts_init - * @step 2 call shortcuts_shutdown - * </td> - * <td>App_Data *ap</td> - * <td>EINA_TRUE</td> - * </tr> - * @} - */ -EFLETE_TEST(shortcuts_shutdown_test_p1) -{ - elm_init(0,0); - app_init(); - - app_shutdown(); - ck_assert_msg(ap.shortcuts == NULL, "Can't shutdown shortcuts."); - - elm_shutdown(); -} -END_TEST - -/** - * @addtogroup shortcuts_shutdown - * @{ - * </TABLE> - * @} - * @} - */ diff --git a/tests/test_shortcuts/test_shortcuts.c b/tests/test_shortcuts/test_shortcuts.c deleted file mode 100644 index 433a8c8..0000000 --- a/tests/test_shortcuts/test_shortcuts.c +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Edje Theme Editor - * Copyright (C) 2013-2014 Samsung Electronics. - * - * This file is part of Edje Theme Editor. - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; If not, see www.gnu.org/licenses/lgpl.html. - */ - -#include "test_shortcuts.h" - -Suite* test_suite (void) { - Suite *suite = suite_create("shortcuts_test"); - TCase *tcase = tcase_create("TCase"); - - tcase_add_test(tcase, shortcuts_init_test_p1); - tcase_add_test(tcase, shortcuts_shutdown_test_p1); - tcase_add_test(tcase, shortcuts_profile_load_test_p); - - suite_add_tcase(suite, tcase); - return suite; -} - -int main(void) { - int number_failed; - Suite *suite = test_suite(); - SRunner *runner = srunner_create(suite); - srunner_set_xml (runner, "test_shortcuts.xml"); - srunner_run_all(runner, CK_VERBOSE); - number_failed = srunner_ntests_failed(runner); - srunner_free(runner); - return number_failed; -} diff --git a/tests/test_shortcuts/test_shortcuts.h b/tests/test_shortcuts/test_shortcuts.h deleted file mode 100644 index 7eb42a3..0000000 --- a/tests/test_shortcuts/test_shortcuts.h +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Edje Theme Editor - * Copyright (C) 2013-2014 Samsung Electronics. - * - * This file is part of Edje Theme Editor. - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; If not, see www.gnu.org/licenses/lgpl.html. - */ - -#include "utc_common.h" -#include "shortcuts.h" -#include "main_window.h" -#include "config.h" - -void shortcuts_init_test_p1(int); -void shortcuts_shutdown_test_p1(int); - -void shortcuts_profile_load_test_p(int); --