+++ /dev/null
-#include <check.h>
-#include <Elementary.h>
-#include "../../utc_negative_unitest.h"
-
-/**
- * @addtogroup elm_general
- * @{
- * @defgroup elm_quicklaunch_exe_path_get elm_quicklaunch_exe_path_get()
- *
- *
- * @precondition
- * @step 1 Initialize Elementary with elm_init()
- */
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- elm_init(0, NULL);
-}
-
-static void
-teardown(void)
-{
- elm_shutdown();
- printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_quicklaunch_exe_path_get
- * @{
- * @objective Positive test case 01 checks if function call with valid value to get
- * whether gets the path to execute file or not works properly
- *
- * @n Input data:
- * @li name of execute file "bash"
- * @li path to the current working directory
- *
- * @procedure
- * @step 1 Get the path to the current working directory
- * @step 2 Check returned value
- * @step 3 Get the path to execute file for the given name of execute file "bash"
- * @step 4 Check returned value
- *
- * @passcondition
- * Tested function passes if returned value is equal to "/bin/bash" and
- * there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_quicklaunch_exe_path_get_p_01)
-{
- char buff[512];
- char *exe_path = NULL;
- char *cwd = NULL;
-
-
- cwd = getcwd(buff, 512);
- if (cwd == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed, current working directory path isn't get..", __FILE__, __LINE__);
- return;
- }
-
- exe_path = elm_quicklaunch_exe_path_get("bash", cwd);
-
-#if 0 // EFLv1.7.9.9
- exe_path = elm_quicklaunch_exe_path_get("bash");
-#endif
-
- if (exe_path == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed, exe path is NULL..", __FILE__, __LINE__);
- return;
- }
- if (strcmp(exe_path, "/bin/bash") != 0)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed, exe path isn't get..", __FILE__, __LINE__);
- return;
- }
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_quicklaunch_exe_path_get
- * @{
- * @objective: Negative test case 01 checks if function call with invalid value to get
- * whether isn't get the path to execute file or not works properly
- *
- * @n Input data: NULL instead of the name of execute file
- *
- * @procedure
- * @step 1 Get the path to the current working directory
- * @step 2 Check returned value
- * @step 3 Call test function with NULL instead of the name of execute file
- * @step 4 Call test function with NULL instead of the path to current working directory
- *
- * @passcondition:
- * Tested function passes if returned value is NULL and
- * there is no segmentation fault
- * @}
- */
-#ifdef NOT_APPROVED_FOR_BUILD
-START_TEST(utc_elm_quicklaunch_exe_path_get_n_01)
-{
- // negative test for checking a non-existing execute file
- char buff[512];
- char *cwd = NULL;
-
-
- cwd = getcwd(buff, 512);
- if (cwd == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed, current working directory path isn't get..", __FILE__, __LINE__);
- return;
- }
-
- if (TEST_FAIL == UNITEST_FUNC_NEG_RET(NULL, elm_quicklaunch_exe_path_get, "bash", cwd))
- {
-
-#if 0 // EFLv1.7.9.9
- if (TEST_FAIL == UNITEST_FUNC_NEG_RET(NULL, elm_quicklaunch_exe_path_get, "bash")) {
-#endif
-
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- return;
- }
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-#endif
-
-/**
- * @}
- */
-Suite *
-test_suite(void)
-{
- Suite *suite = suite_create("utc_elm_quicklaunch_exe_path_get");
-
- TCase *tcase = tcase_create("TCase");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_elm_quicklaunch_exe_path_get_p_01);
-#ifdef NOT_APPROVED_FOR_BUILD
- tcase_add_test(tcase, utc_elm_quicklaunch_exe_path_get_n_01);
-#endif
- suite_add_tcase(suite, tcase);
-
- return suite;
-}
-
-int
-main()
-{
- int number_failed;
-
- Suite *suite = test_suite();
- SRunner *srunner = srunner_create(suite);
- srunner_set_log(srunner, "utc_elm_quicklaunch_exe_path_get.log");
- srunner_set_xml(srunner, "utc_elm_quicklaunch_exe_path_get.xml");
- srunner_run_all(srunner, CK_NORMAL);
- number_failed = srunner_ntests_failed(srunner);
- srunner_free(srunner);
-
- return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
-}
+++ /dev/null
-#include <check.h>
-#include <Elementary.h>
-
-/**
- * @addtogroup elm_general
- * @{
- * @defgroup elm_quicklaunch_fallback elm_quicklaunch_fallback()
- *
- *
- * @precondition
- * @step 1 Initialize Elementary with elm_init()
- */
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- elm_init(0, NULL);
-}
-
-static void
-teardown(void)
-{
- elm_shutdown();
- printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_quicklaunch_fallback
- * @{
- * @objective Positive test case 01 checks if function call with valid value to fallback
- * whether quicklaunch fallbacks or not works properly
- *
- * @n Input data:
- * @li 0 as count of arguments
- * @li NULL as pointer to arguments array
- *
- * @procedure
- * @step 1 Get the fallback value for the given parameters
- * @step 2 Check returned value
- *
- * @passcondition
- * Tested function passes if returned value is equal to 1 and
- * there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_quicklaunch_fallback_p_01)
-{
- int fallback_value = 0;
- const char *arg = "test";
-
- elm_quicklaunch_mode_set(EINA_TRUE);
- fallback_value = elm_quicklaunch_fallback(0, &arg);
- if (fallback_value != 1)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed, fallback value isn't get..", __FILE__, __LINE__);
- return;
- }
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_quicklaunch_fallback
- * @{
- * @objective: Negative test case 01 checks if function call with invalid value to fallback
- * whether quicklaunch isn't fallback or not works properly
- *
- * @n Input data: -1 instead of count of arguments
- *
- * @procedure
- * @step 1 Call test function with -1 instead of count of arguments
- * @step 2 Check returned value
- *
- * @passcondition:
- * Tested function passes if returned value is 0 and
- * there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_quicklaunch_fallback_n_01)
-{
- int fallback_value = 0;
-
- fallback_value = elm_quicklaunch_fallback(-1, NULL);
- if (fallback_value != 0)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- return;
- }
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @}
- */
-Suite *
-test_suite(void)
-{
- Suite *suite = suite_create("utc_elm_quicklaunch_fallback");
-
- TCase *tcase = tcase_create("TCase");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_elm_quicklaunch_fallback_p_01);
- tcase_add_test(tcase, utc_elm_quicklaunch_fallback_n_01);
- suite_add_tcase(suite, tcase);
-
- return suite;
-}
-
-int
-main()
-{
- int number_failed;
-
- Suite *suite = test_suite();
- SRunner *srunner = srunner_create(suite);
- srunner_set_log(srunner, "utc_elm_quicklaunch_fallback.log");
- srunner_set_xml(srunner, "utc_elm_quicklaunch_fallback.xml");
- srunner_run_all(srunner, CK_NORMAL);
- number_failed = srunner_ntests_failed(srunner);
- srunner_free(srunner);
-
- return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
-}
+++ /dev/null
-CC ?= gcc
-
-C_FILES = $(shell cat tslist)
-
-PKGS = elementary check
-
-LDFLAGS = `pkg-config --libs $(PKGS)`
-
-CFLAGS = -I. `pkg-config --cflags $(PKGS)`
-CFLAGS += -Wall
-
-#TARGETS = $(C_FILES:%.c=tc-%)
-TCS := $(shell ls -1 *.c | cut -d. -f1)
-
-all: $(TCS)
-
-%: %.c
- $(CC) -o $@ $< $(CFLAGS) $(LDFLAGS)
-
-module:
- $(CC) -Wall -Werror -g -c -fPIC module.c
- $(CC) -shared -Wl,-z,defs -Wl,-soname,module.so -o module.so module.o
-
-clean:
- rm -f $(TCS)
+++ /dev/null
-#include <stdio.h>
-
-__attribute__ ((visibility("default"))) int elm_main(void)
-{
- printf("module func\n");
- return 0;
-}
+++ /dev/null
-utc_elm_quicklaunch_init.c
-utc_elm_quicklaunch_shutdown.c
-utc_elm_quicklaunch_sub_init.c
-utc_elm_quicklaunch_sub_shutdown.c
-utc_elm_quicklaunch_prepare.c
-utc_elm_quicklaunch_cleanup.c
-utc_elm_quicklaunch_fork.c
-utc_elm_quicklaunch_mode_get.c
-utc_elm_quicklaunch_mode_set.c
-utc_elm_quicklaunch_seed.c
-utc_elm_quicklaunch_exe_path_get.c
-utc_elm_quicklaunch_fallback.c
+++ /dev/null
-utc_elm_quicklaunch_init.c
-utc_elm_quicklaunch_shutdown.c
-utc_elm_quicklaunch_sub_init.c
-utc_elm_quicklaunch_sub_shutdown.c
-utc_elm_quicklaunch_prepare.c
-utc_elm_quicklaunch_cleanup.c
-utc_elm_quicklaunch_fork.c
-utc_elm_quicklaunch_mode_get.c
-utc_elm_quicklaunch_mode_set.c
-utc_elm_quicklaunch_seed.c
-utc_elm_quicklaunch_exe_path_get.c
-utc_elm_quicklaunch_fallback.c
+++ /dev/null
-utc_elm_quicklaunch_init.c
-utc_elm_quicklaunch_shutdown.c
-utc_elm_quicklaunch_sub_init.c
-utc_elm_quicklaunch_sub_shutdown.c
-utc_elm_quicklaunch_prepare.c
-utc_elm_quicklaunch_cleanup.c
-utc_elm_quicklaunch_fork.c
-utc_elm_quicklaunch_mode_get.c
-utc_elm_quicklaunch_mode_set.c
-utc_elm_quicklaunch_seed.c
-utc_elm_quicklaunch_exe_path_get.c
-utc_elm_quicklaunch_fallback.c
+++ /dev/null
-utc_elm_quicklaunch_init.c
-utc_elm_quicklaunch_shutdown.c
-utc_elm_quicklaunch_sub_init.c
-utc_elm_quicklaunch_sub_shutdown.c
-utc_elm_quicklaunch_prepare.c
-utc_elm_quicklaunch_cleanup.c
-utc_elm_quicklaunch_fork.c
-utc_elm_quicklaunch_mode_get.c
-utc_elm_quicklaunch_mode_set.c
-utc_elm_quicklaunch_seed.c
-utc_elm_quicklaunch_exe_path_get.c
-utc_elm_quicklaunch_fallback.c
+++ /dev/null
-#include <check.h>
-#include <Elementary.h>
-
-/**
- * @addtogroup elm_quicklaunch
- * @{
- * @defgroup elm_quicklaunch_cleanup elm_quicklaunch_cleanup()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Enable quicklaunch mode
- */
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- elm_init(0, NULL);
- elm_quicklaunch_mode_set(EINA_TRUE);
-}
-
-static void
-teardown(void)
-{
- elm_shutdown();
- printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_quicklaunch_cleanup
- * @{
- * @objective Positive test case checks if clean after prepare quicklaunch doesn't cause segmentation fault
- * @n Input Data: no parameters passed to function
- *
- * @procedure
- * @step 1 Get the path to the current working directory
- * @step 2 Prepare quicklaunch
- * @step 3 Fork quicklaunch
- * @step 4 Cleanup quicklaunch
- *
- * @passcondition There is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_quicklaunch_cleanup_p)
-{
- Eina_Bool ret = EINA_FALSE;
- char **argv = NULL;
- char buf[512];
- char *cwd = NULL;
-
-
- cwd = getcwd(buf, 512);
- if (cwd == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- argv = malloc(sizeof(char*));
- if (argv == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : There isn't enough memory..", __FILE__, __LINE__);
- }
- argv[0] = "./module.so";
- ret = elm_quicklaunch_prepare(1, argv, cwd);
- if (ret != EINA_TRUE)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to prepare quick launch..", __FILE__, __LINE__);
- }
- ret = elm_quicklaunch_fork(1, argv, NULL, NULL, NULL);
- free(argv);
- if (ret != EINA_TRUE)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to fork quick launch..", __FILE__, __LINE__);
- }
- elm_quicklaunch_cleanup();
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-Suite *
-test_suite(void)
-{
- Suite *suite = suite_create("utc_elm_quicklaunch_cleanup");
-
- TCase *tcase = tcase_create("TCase");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_elm_quicklaunch_cleanup_p);
- suite_add_tcase(suite, tcase);
-
- return suite;
-}
-
-int
-main()
-{
- int number_failed;
-
- Suite *suite = test_suite();
- SRunner *srunner = srunner_create(suite);
- srunner_set_log(srunner, "utc_elm_quicklaunch_cleanup.log");
- srunner_set_xml(srunner, "utc_elm_quicklaunch_cleanup.xml");
- srunner_run_all(srunner, CK_NORMAL);
- number_failed = srunner_ntests_failed(srunner);
- srunner_free(srunner);
-
- return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
-}
+++ /dev/null
-#include <check.h>
-#include <Elementary.h>
-#include "../../utc_negative_unitest.h"
-
-/**
- * @addtogroup elm_general
- * @{
- * @defgroup elm_quicklaunch_exe_path_get elm_quicklaunch_exe_path_get()
- *
- *
- * @precondition
- * @step 1 Initialize Elementary with elm_init()
- */
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- elm_init(0, NULL);
-}
-
-static void
-teardown(void)
-{
- elm_shutdown();
- printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_quicklaunch_exe_path_get
- * @{
- * @objective Positive test case checks if function call with valid value to get
- * whether gets the path to execute file or not works properly
- *
- * @n Input data:
- * @li name of execute file "bash"
- * @li path to the current working directory
- *
- * @procedure
- * @step 1 Get the path to the current working directory
- * @step 2 Check returned value
- * @step 3 Get the path to execute file for the given name of execute file "bash"
- * @step 4 Check returned value
- *
- * @passcondition
- * Tested function passes if returned value is equal to "/bin/bash" and
- * there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_quicklaunch_exe_path_get_p)
-{
- char *exe_path = NULL;
- char *argv = "module.so";
- char buf[512];
- char *cwd = NULL;
-
- cwd = getcwd(buf, 512);
- if (cwd == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- exe_path = elm_quicklaunch_exe_path_get(argv, cwd);
- strcat(cwd, "/module.so");
-
- if (strcmp(exe_path, cwd))
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed, wrong exe path..", __FILE__, __LINE__);
- }
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_quicklaunch_exe_path_get
- * @{
- * @objective: Negative test case checks if function call with invalid value to get
- * whether isn't get the path to execute file or not works properly
- *
- * @n Input data:
- * @li argv as argument vector with one item "./module.so"
- * @li NULL path to the current working directory
- *
- * @procedure
- * @step 1 Get the path to the current working directory
- * @step 2 Check returned value
- * @step 3 Call test function with NULL path to working directory
- * @step 4 Check returned value
- *
- * @passcondition:
- * Tested function passes if returned value is NULL and
- * there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_quicklaunch_exe_path_get_n)
-{
- char *exe_path = NULL;
- char *argv = "module.so";
- char buf[512];
-
- exe_path = getcwd(buf, 512);
- if (exe_path == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- exe_path = elm_quicklaunch_exe_path_get(argv, NULL);
- if (exe_path)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @}
- */
-Suite *
-test_suite(void)
-{
- Suite *suite = suite_create("utc_elm_quicklaunch_exe_path_get");
-
- TCase *tcase = tcase_create("TCase");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_elm_quicklaunch_exe_path_get_p);
- tcase_add_test(tcase, utc_elm_quicklaunch_exe_path_get_n);
- suite_add_tcase(suite, tcase);
-
- return suite;
-}
-
-int
-main()
-{
- int number_failed;
-
- Suite *suite = test_suite();
- SRunner *srunner = srunner_create(suite);
- srunner_set_log(srunner, "utc_elm_quicklaunch_exe_path_get.log");
- srunner_set_xml(srunner, "utc_elm_quicklaunch_exe_path_get.xml");
- srunner_run_all(srunner, CK_NORMAL);
- number_failed = srunner_ntests_failed(srunner);
- srunner_free(srunner);
-
- return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
-}
+++ /dev/null
-#include <check.h>
-#include <Elementary.h>
-
-/**
- * @addtogroup elm_general
- * @{
- * @defgroup elm_quicklaunch_fallback elm_quicklaunch_fallback()
- *
- *
- * @precondition
- * @step 1 Initialize Elementary with elm_init()
- * @step 2 Set quicklaunch mode to EINA_TRUE
- */
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- elm_init(0, NULL);
- elm_quicklaunch_mode_set(EINA_TRUE);
-}
-
-static void
-teardown(void)
-{
- elm_shutdown();
- printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_quicklaunch_fallback
- * @{
- * @objective Positive test case checks if function call with valid value to fallback
- * whether quicklaunch fallbacks or not works properly
- *
- * @n Input data:
- * @li 1 as argument count
- * @li argv as argument vector with one item "./module.so"
- *
- * @procedure
- * @step 1 Set exe file as argv parameter
- * @step 2 Get the fallback value for the given parameters
- * @step 3 Free argv
- * @step 4 Check returned value
- *
- * @passcondition
- * Tested function passes if returned value is equal to 1 and
- * there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_quicklaunch_fallback_p)
-{
- int fallback_value = 0;
- char ** argv = NULL;
-
- argv = (char *)malloc(sizeof(char *));
- if (argv == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
- argv[0] = "./module.so";
-
- fallback_value = elm_quicklaunch_fallback(1, argv);
-
- free(argv);
- if (fallback_value != 1)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d]: Test has failed, fallback value isn't get..", __FILE__, __LINE__);
- }
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_quicklaunch_fallback
- * @{
- * @objective: Negative test case checks if function call with wrong value to fallback
- * whether quicklaunch isn't fallback or not works properly
- *
- * @n Input data:
- * @li wrong count of arguments
- * @li argv as argument vector with one item "./module.so"
- *
- * @procedure
- * @step 1 Set exe file as argv parameter
- * @step 2 Call test function with wrong instead of count of arguments
- * @step 3 Check returned value
- *
- * @passcondition:
- * Tested function passes if returned value is 0 and
- * there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_quicklaunch_fallback_n)
-{
- int fallback_value = 0;
- char ** argv = NULL;
-
- argv = (char *)malloc(sizeof(char *));
- if (argv == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
- argv[0] = "./module.so";
-
- fallback_value = elm_quicklaunch_fallback(3, argv);
- free(argv);
- if (fallback_value != 0)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d]: Test has failed..", __FILE__, __LINE__);
- }
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @}
- */
-Suite *
-test_suite(void)
-{
- Suite *suite = suite_create("utc_elm_quicklaunch_fallback");
-
- TCase *tcase = tcase_create("TCase");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_elm_quicklaunch_fallback_p);
- tcase_add_test(tcase, utc_elm_quicklaunch_fallback_n);
- suite_add_tcase(suite, tcase);
-
- return suite;
-}
-
-int
-main()
-{
- int number_failed;
-
- Suite *suite = test_suite();
- SRunner *srunner = srunner_create(suite);
- srunner_set_log(srunner, "utc_elm_quicklaunch_fallback.log");
- srunner_set_xml(srunner, "utc_elm_quicklaunch_fallback.xml");
- srunner_run_all(srunner, CK_NORMAL);
- number_failed = srunner_ntests_failed(srunner);
- srunner_free(srunner);
-
- return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
-}
+++ /dev/null
-#include <check.h>
-#include <Elementary.h>
-
-/**
- * @addtogroup elm_quicklaunch
- * @{
- * @defgroup elm_quicklaunch_fork elm_quicklaunch_fork()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Enable quicklaunch mode
- */
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- elm_init(0, NULL);
- elm_quicklaunch_mode_set(EINA_TRUE);
-}
-
-static void
-teardown(void)
-{
- elm_shutdown();
- printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_quicklaunch_fork
- * @{
- * @objective Positive test case checks if fork quicklaunch process works properly and doesn't cause segmentation fault
- * @n Input Data:
- * @li 1 as argument count
- * @li argv as argument vector with one item "./module.so"
- * @li NULL
- * @li NULL
- * @li NULL
- *
- * @procedure
- * @step 1 Fork a new process
- *
- * @passcondition Returned value is EINA_TRUE and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_quicklaunch_fork_p)
-{
- Eina_Bool ret = EINA_FALSE;
- char ** argv = NULL;
-
- argv = (char *)malloc(sizeof(char *));
- if (argv == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- argv[0] = "./module.so";
- ret = elm_quicklaunch_fork(1, argv, NULL, NULL, NULL);
- free(argv);
- if (ret != EINA_TRUE)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_quicklaunch_fork
- * @{
- * @objective Negative test case checks if call test function with null instead of the argv parameter
- * works properly and doesn't cause segmentation fault
- * @n Input Data:
- * @li 1 as argument count
- * @li NULL
- * @li NULL
- * @li NULL
- * @li NULL
- *
- * @procedure
- * @step 1 Fork a new process
- *
- * @passcondition Returned value is EINA_TRUE and there is no segmentation fault
- * @}
- */
-#ifdef NOT_APPROVED_FOR_BUILD
-START_TEST(utc_elm_quicklaunch_fork_n)
-{
- Eina_Bool ret = EINA_TRUE;
-
- ret = elm_quicklaunch_fork(1, NULL, NULL, NULL, NULL);
- if (ret != EINA_FALSE)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-#endif //NOT_APPROVED_FOR_BUILD
-
-/**
- *@}
- */
-Suite *
-test_suite(void)
-{
- Suite *suite = suite_create("utc_elm_quicklaunch_fork");
-
- TCase *tcase = tcase_create("TCase");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_elm_quicklaunch_fork_p);
-#ifdef NOT_APPROVED_FOR_BUILD
- tcase_add_test(tcase, utc_elm_quicklaunch_fork_n);
-#endif
- suite_add_tcase(suite, tcase);
-
- return suite;
-}
-
-int
-main()
-{
- int number_failed;
-
- Suite *suite = test_suite();
- SRunner *srunner = srunner_create(suite);
- srunner_set_log(srunner, "utc_elm_quicklaunch_fork.log");
- srunner_set_xml(srunner, "utc_elm_quicklaunch_fork.xml");
- srunner_run_all(srunner, CK_NORMAL);
- number_failed = srunner_ntests_failed(srunner);
- srunner_free(srunner);
-
- return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
-}
+++ /dev/null
-#include <check.h>
-#include <Elementary.h>
-
-/**
- * @addtogroup elm_quicklaunch
- * @{
- * @defgroup elm_quicklaunch_init elm_quicklaunch_init()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Enable quicklaunch mode
- */
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- elm_init(0, NULL);
- elm_quicklaunch_mode_set(EINA_TRUE);
-}
-
-static void
-teardown(void)
-{
- elm_shutdown();
- printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_quicklaunch_init
- * @{
- * @objective Positive test case checks if initialize quicklaunch works properly and doesn't cause segmentation fault
- * @n Input Data:
- * @li 0
- * @li NULL
- *
- * @procedure
- * @step 1 Call elm_quicklaunch_init
- *
- * @passcondition Return 2, because in elm_init quicklaunch is initialized for first time, and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_quicklaunch_init_p)
-{
- int ret = 0;
-
- ret = elm_quicklaunch_init(0, NULL);
- if (ret != 2)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
- elm_quicklaunch_shutdown();
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-Suite *
-test_suite(void)
-{
- Suite *suite = suite_create("utc_elm_quicklaunch_init");
-
- TCase *tcase = tcase_create("TCase");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_elm_quicklaunch_init_p);
- suite_add_tcase(suite, tcase);
-
- return suite;
-}
-
-int
-main()
-{
- int number_failed;
-
- Suite *suite = test_suite();
- SRunner *srunner = srunner_create(suite);
- srunner_set_log(srunner, "utc_elm_quicklaunch_init.log");
- srunner_set_xml(srunner, "utc_elm_quicklaunch_init.xml");
- srunner_run_all(srunner, CK_NORMAL);
- number_failed = srunner_ntests_failed(srunner);
- srunner_free(srunner);
-
- return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
-}
+++ /dev/null
-#include <check.h>
-#include <Elementary.h>
-
-/**
- * @addtogroup elm_quicklaunch
- * @{
- * @defgroup elm_quicklaunch_mode_get elm_quicklaunch_mode_get()
- *
- * @precondition
- * @step 1 Initialize Elementary
- */
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- elm_init(0, NULL);
-}
-
-static void
-teardown(void)
-{
- elm_shutdown();
- printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_quicklaunch_mode_get
- * @{
- * @objective Positive test case checks if gets quicklaunch mode works properly and doesn't cause segmentation fault
- * @n Input Data: no parameters passed to function
- *
- * @procedure
- * @step 1 Set quicklaunch mode to EINA_TRUE
- * @step 2 Get quicklaunch mode
- * @step 3 Set quicklaunch mode to EINA_FALSE
- * @step 4 Get quicklaunch mode
- *
- * @passcondition Returned value is equal to EINA_TRUE at step 2 and EINA_FALSE at step 4 and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_quicklaunch_mode_get_p)
-{
- Eina_Bool ret = EINA_FALSE;
-
- elm_quicklaunch_mode_set(EINA_TRUE);
- ret = elm_quicklaunch_mode_get();
- if (ret != EINA_TRUE)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
- elm_quicklaunch_mode_set(EINA_FALSE);
- ret = elm_quicklaunch_mode_get();
- if (ret != EINA_FALSE)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-Suite *
-test_suite(void)
-{
- Suite *suite = suite_create("utc_elm_quicklaunch_mode_get");
-
- TCase *tcase = tcase_create("TCase");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_elm_quicklaunch_mode_get_p);
- suite_add_tcase(suite, tcase);
-
- return suite;
-}
-
-int
-main()
-{
- int number_failed;
-
- Suite *suite = test_suite();
- SRunner *srunner = srunner_create(suite);
- srunner_set_log(srunner, "utc_elm_quicklaunch_mode_get.log");
- srunner_set_xml(srunner, "utc_elm_quicklaunch_mode_get.xml");
- srunner_run_all(srunner, CK_NORMAL);
- number_failed = srunner_ntests_failed(srunner);
- srunner_free(srunner);
-
- return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
-}
+++ /dev/null
-#include <check.h>
-#include <Elementary.h>
-
-/**
- * @addtogroup elm_quicklaunch
- * @{
- * @defgroup elm_quicklaunch_mode_set elm_quicklaunch_mode_set()
- *
- * @precondition
- * @step 1 Initialize Elementary
- */
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- elm_init(0, NULL);
-}
-
-static void
-teardown(void)
-{
- elm_shutdown();
- printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_quicklaunch_mode_set
- * @{
- * @objective Positive test case checks if sets quicklaunch mode works properly and doesn't cause segmentation fault
- * @n Input Data: EINA_TRUE, EINA_FALSE
- *
- * @procedure
- * @step 1 Set quicklaunch mode to EINA_TRUE
- * @step 2 Get quicklaunch mode
- * @step 3 Set quicklaunch mode to EINA_FALSE
- * @step 4 Get quicklaunch mode
- *
- * @passcondition Returned value is equal to EINA_TRUE at step 2 and EINA_FALSE at step 4 and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_quicklaunch_mode_set_p)
-{
- Eina_Bool ret = EINA_FALSE;
-
- elm_quicklaunch_mode_set(EINA_TRUE);
- ret = elm_quicklaunch_mode_get();
- if (ret != EINA_TRUE)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
- elm_quicklaunch_mode_set(EINA_FALSE);
- ret = elm_quicklaunch_mode_get();
- if (ret != EINA_FALSE)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-Suite *
-test_suite(void)
-{
- Suite *suite = suite_create("utc_elm_quicklaunch_mode_set");
-
- TCase *tcase = tcase_create("TCase");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_elm_quicklaunch_mode_set_p);
- suite_add_tcase(suite, tcase);
-
- return suite;
-}
-
-int
-main()
-{
- int number_failed;
-
- Suite *suite = test_suite();
- SRunner *srunner = srunner_create(suite);
- srunner_set_log(srunner, "utc_elm_quicklaunch_mode_set.log");
- srunner_set_xml(srunner, "utc_elm_quicklaunch_mode_set.xml");
- srunner_run_all(srunner, CK_NORMAL);
- number_failed = srunner_ntests_failed(srunner);
- srunner_free(srunner);
-
- return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
-}
+++ /dev/null
-#include <check.h>
-#include <Elementary.h>
-#include "../../utc_negative_unitest.h"
-
-/**
- * @addtogroup elm_quicklaunch
- * @{
- * @defgroup elm_quicklaunch_prepare elm_quicklaunch_prepare()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Enable quicklaunch mode
- */
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- elm_init(0, NULL);
- elm_quicklaunch_mode_set(EINA_TRUE);
-}
-
-static void
-teardown(void)
-{
- elm_shutdown();
- printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_quicklaunch_prepare
- * @{
- * @objective Positive test case checks if prepare quicklaunch
- * works properly and doesn't cause segmentation fault
- * @n Input Data:
- * @li 1 as argument count
- * @li argv as argument vector with one item "./module.so"
- * @li path to the current working directory
- *
- * @procedure
- * @step 1 Get the path to the current working directory
- * @step 2 Prepare quicklaunch
- *
- * @passcondition Returned value is EINA_TRUE and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_quicklaunch_prepare_p)
-{
- Eina_Bool ret = EINA_FALSE;
- char **argv = NULL;
- char buf[512];
- char *cwd = NULL;
-
-
- cwd = getcwd(buf, 512);
- if (cwd == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- argv = malloc(sizeof(char*));
- if (argv == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Isn't enough memory", __FILE__, __LINE__);
- }
- argv[0] = "./module.so";
- ret = elm_quicklaunch_prepare(1, argv, cwd);
- free(argv);
- if (ret != EINA_TRUE)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_quicklaunch_prepare
- * @{
- * @objective Negative test case checks if call test function with NULL
- * instead of the file name doesn't cause segmentation fault
- * @n Input Data:
- * @li 1 as argument count
- * @li argv as argument vector with one item NULL instead of the file name
- * @li path to the current working directory
- *
- * @procedure
- * @step 1 Get the path to the current working directory
- * @step 2 Call test function with NULL instead of the file name
- *
- * @passcondition Returned value is EINA_FALSE and there is no segmentation fault
- * @}
- */
-#ifdef NOT_APPROVED_FOR_BUILD
-START_TEST(utc_elm_quicklaunch_prepare_n)
-{
- Eina_Bool ret = EINA_FALSE;
- char **argv = NULL;
- char buf[512];
- char *cwd = NULL;
-
-
- cwd = getcwd(buf, 512);
- if (cwd == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- argv = malloc(sizeof(char*));
- if (argv == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Isn't enough memory", __FILE__, __LINE__);
- }
- argv[0] = NULL;
- ret = elm_quicklaunch_prepare(1, argv, cwd);
- free(argv);
- if (ret != EINA_FALSE)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-#endif //NOT_APPROVED_FOR_BUILD
-
-/**
- *@}
- */
-Suite *
-test_suite(void)
-{
- Suite *suite = suite_create("utc_elm_quicklaunch_prepare");
-
- TCase *tcase = tcase_create("TCase");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_elm_quicklaunch_prepare_p);
-#ifdef NOT_APPROVED_FOR_BUILD
- tcase_add_test(tcase, utc_elm_quicklaunch_prepare_n);
-#endif
- suite_add_tcase(suite, tcase);
-
- return suite;
-}
-
-int
-main()
-{
- int number_failed;
-
- Suite *suite = test_suite();
- SRunner *srunner = srunner_create(suite);
- srunner_set_log(srunner, "utc_elm_quicklaunch_prepare.log");
- srunner_set_xml(srunner, "utc_elm_quicklaunch_prepare.xml");
- srunner_run_all(srunner, CK_NORMAL);
- number_failed = srunner_ntests_failed(srunner);
- srunner_free(srunner);
-
- return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
-}
+++ /dev/null
-#include <check.h>
-#include <Elementary.h>
-#include "../../utc_negative_unitest.h"
-
-/**
- * @addtogroup elm_quicklaunch
- * @{
- * @defgroup elm_quicklaunch_seed elm_quicklaunch_seed()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Enable quicklaunch mode
- */
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- elm_init(0, NULL);
- elm_quicklaunch_mode_set(EINA_TRUE);
-}
-
-static void
-teardown(void)
-{
- elm_shutdown();
- printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_quicklaunch_seed
- * @{
- * @objective Positive Test case checks if test fucntion doesn't cause segmentation fault
- * @n Input Data: no parameters passed to function
- *
- * @procedure
- * @step 1 Call test function
- *
- * @passcondition There is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_quicklaunch_seed_p)
-{
- elm_quicklaunch_seed();
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-Suite *
-test_suite(void)
-{
- Suite *suite = suite_create("utc_elm_quicklaunch_seed");
-
- TCase *tcase = tcase_create("TCase");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_elm_quicklaunch_seed_p);
- suite_add_tcase(suite, tcase);
-
- return suite;
-}
-
-int
-main()
-{
- int number_failed;
-
- Suite *suite = test_suite();
- SRunner *srunner = srunner_create(suite);
- srunner_set_log(srunner, "utc_elm_quicklaunch_seed.log");
- srunner_set_xml(srunner, "utc_elm_quicklaunch_seed.xml");
- srunner_run_all(srunner, CK_NORMAL);
- number_failed = srunner_ntests_failed(srunner);
- srunner_free(srunner);
-
- return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
-}
+++ /dev/null
-#include <check.h>
-#include <Elementary.h>
-#include "../../utc_negative_unitest.h"
-
-/**
- * @addtogroup elm_quicklaunch
- * @{
- * @defgroup elm_quicklaunch_shutdown elm_quicklaunch_shutdown()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Enable quicklaunch mode
- */
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- elm_init(0, NULL);
- elm_quicklaunch_mode_set(EINA_TRUE);
-}
-
-static void
-teardown(void)
-{
- elm_shutdown();
- printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_quicklaunch_shutdown
- * @{
- * @objective Positive test case checks if shutdown quicklaunch works properly and doesn't cause segmentation fault
- * @n Input Data: no parameters passed to function
- *
- * @procedure
- * @step 1 Call elm_quicklaunch_init()
- * @step 2 Call elm_quicklaunch_shutdown()
- *
- * @passcondition Returned value is equal to 1 at step 2 and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_quicklaunch_shutdown_p)
-{
- int ret = 0;
-
- elm_quicklaunch_init(0, NULL);
- ret = elm_quicklaunch_shutdown();
- if (ret != 1)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-Suite *
-test_suite(void)
-{
- Suite *suite = suite_create("utc_elm_quicklaunch_shutdown");
-
- TCase *tcase = tcase_create("TCase");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_elm_quicklaunch_shutdown_p);
- suite_add_tcase(suite, tcase);
-
- return suite;
-}
-
-int
-main()
-{
- int number_failed;
-
- Suite *suite = test_suite();
- SRunner *srunner = srunner_create(suite);
- srunner_set_log(srunner, "utc_elm_quicklaunch_shutdown.log");
- srunner_set_xml(srunner, "utc_elm_quicklaunch_shutdown.xml");
- srunner_run_all(srunner, CK_NORMAL);
- number_failed = srunner_ntests_failed(srunner);
- srunner_free(srunner);
-
- return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
-}
+++ /dev/null
-#include <check.h>
-#include <Elementary.h>
-
-Eina_Bool quicklaunch_inited = EINA_FALSE;
-
-/**
- * @addtogroup elm_quicklaunch
- * @{
- * @defgroup elm_quicklaunch_sub_init elm_quicklaunch_sub_init()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Enable quicklaunch mode
- * @step 3 Init quicklaunch
- */
-static void
-setup(void)
-{
- int ret = 0;
-
- printf(" ============ Startup ============ \n");
- elm_init(0, NULL);
- elm_quicklaunch_mode_set(EINA_TRUE);
- quicklaunch_inited = EINA_FALSE;
- ret = elm_quicklaunch_init(0, NULL);
- if (ret != 2)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Quick launch init has failed..", __FILE__, __LINE__);
- }
- quicklaunch_inited = EINA_TRUE;
-}
-
-static void
-teardown(void)
-{
- if (quicklaunch_inited == EINA_TRUE)
- {
- elm_quicklaunch_shutdown();
- }
- elm_shutdown();
- printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_quicklaunch_sub_init
- * @{
- * @objective Positive test case checks if test function works properly and doesn't cause segmentation fault
- * @n Input Data:
- * @li 0
- * @li NULL
- *
- * @procedure
- * @step 1 Call elm_quicklaunch_sub_init
- * @step 2 Call elm_quicklaunch_sub_shutdown
- *
- * @passcondition Returned value is 2 at step 1 and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_quicklaunch_sub_init_p)
-{
- int ret = 0;
-
- if (quicklaunch_inited != EINA_TRUE)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
- ret = elm_quicklaunch_sub_init(0, NULL);
- if (ret != 2)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
- ret = elm_quicklaunch_sub_shutdown();
- if (ret != 1)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : elm_quicklaunch_sub_shutdown() has failed..", __FILE__, __LINE__);
- }
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-Suite *
-test_suite(void)
-{
- Suite *suite = suite_create("utc_elm_quicklaunch_sub_init");
-
- TCase *tcase = tcase_create("TCase");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_elm_quicklaunch_sub_init_p);
- suite_add_tcase(suite, tcase);
-
- return suite;
-}
-
-int
-main()
-{
- int number_failed;
-
- Suite *suite = test_suite();
- SRunner *srunner = srunner_create(suite);
- srunner_set_log(srunner, "utc_elm_quicklaunch_sub_init.log");
- srunner_set_xml(srunner, "utc_elm_quicklaunch_sub_init.xml");
- srunner_run_all(srunner, CK_NORMAL);
- number_failed = srunner_ntests_failed(srunner);
- srunner_free(srunner);
-
- return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
-}
+++ /dev/null
-#include <check.h>
-#include <Elementary.h>
-
-Eina_Bool quicklaunch_inited = EINA_FALSE;
-
-/**
- * @addtogroup elm_quicklaunch
- * @{
- * @defgroup elm_quicklaunch_sub_shutdown elm_quicklaunch_sub_shutdown()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Enable quicklaunch mode
- * @step 3 Init quicklaunch
- */
-static void
-setup(void)
-{
- int ret = 0;
-
- printf(" ============ Startup ============ \n");
- elm_init(0, NULL);
- elm_quicklaunch_mode_set(EINA_TRUE);
- quicklaunch_inited = EINA_FALSE;
- ret = elm_quicklaunch_init(0, NULL);
- if (ret != 2)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Quick launch init has failed..", __FILE__, __LINE__);
- }
- quicklaunch_inited = EINA_TRUE;
-}
-
-static void
-teardown(void)
-{
- if (quicklaunch_inited == EINA_TRUE)
- {
- elm_quicklaunch_shutdown();
- }
- elm_shutdown();
- printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_quicklaunch_sub_shutdown
- * @{
- * @objective Positive test case checks if test function works properly and doesn't cause segmentation fault
- * @n Input Data: no parameters passed to function
- *
- * @procedure
- * @step 1 Call elm_quicklaunch_sub_init
- * @step 2 Call elm_quicklaunch_sub_shutdown
- *
- * @passcondition Returned value is 1 at step 2 and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_quicklaunch_sub_shutdown_p)
-{
- int ret = 0;
-
- if (quicklaunch_inited != EINA_TRUE)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
- ret = elm_quicklaunch_sub_init(0, NULL);
- if (ret != 2)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : elm_quicklaunch_sub_init() has failed..", __FILE__, __LINE__);
- }
- ret = elm_quicklaunch_sub_shutdown();
- if (ret != 1)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-Suite *
-test_suite(void)
-{
- Suite *suite = suite_create("utc_elm_quicklaunch_sub_shutdown");
-
- TCase *tcase = tcase_create("TCase");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_elm_quicklaunch_sub_shutdown_p);
- suite_add_tcase(suite, tcase);
-
- return suite;
-}
-
-int
-main()
-{
- int number_failed;
-
- Suite *suite = test_suite();
- SRunner *srunner = srunner_create(suite);
- srunner_set_log(srunner, "utc_elm_quicklaunch_sub_shutdown.log");
- srunner_set_xml(srunner, "utc_elm_quicklaunch_sub_shutdown.xml");
- srunner_run_all(srunner, CK_NORMAL);
- number_failed = srunner_ntests_failed(srunner);
- srunner_free(srunner);
-
- return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
-}
/elementary/popup/tslist
/elementary/profile/tslist
/elementary/progressbar/tslist
-/elementary/quicklaunch/tslist
/elementary/radio/tslist
/elementary/scroll/tslist
/elementary/scroller/tslist
/elementary/popup/tslist_mobile
/elementary/profile/tslist_mobile
/elementary/progressbar/tslist_mobile
-/elementary/quicklaunch/tslist_mobile
/elementary/radio/tslist_mobile
/elementary/scroll/tslist_mobile
/elementary/scroller/tslist_mobile
/elementary/popup/tslist_wear
/elementary/profile/tslist_wear
/elementary/progressbar/tslist_wear
-#/elementary/quicklaunch/tslist_wear
/elementary/radio/tslist_wear
/elementary/scroll/tslist_wear
/elementary/scroller/tslist_wear
/elementary/popup/tslist_tv
/elementary/profile/tslist_tv
/elementary/progressbar/tslist_tv
-#/elementary/quicklaunch/tslist_tv
/elementary/radio/tslist_tv
/elementary/scroll/tslist_tv
/elementary/scroller/tslist_tv