From aee8c92412c39a50e2503cf7fc7c7b59de26cfe1 Mon Sep 17 00:00:00 2001 From: Gwanglim Lee Date: Tue, 10 Feb 2015 14:13:46 +0900 Subject: [PATCH] Remove obsolete TC files Change-Id: Ic0b97da788d4f64076b8bf1eb9ea6f39fc92b2a2 --- TC/_export_env.sh | 8 - TC/_export_target_env.sh | 7 - TC/build.sh | 16 - TC/clean.sh | 11 - TC/config | 2 - TC/execute.sh | 15 - TC/testcase/Makefile | 26 -- TC/testcase/tslist | 1 - .../utc_efl_util_set_notification_window_level.c | 438 --------------------- TC/tet_scen | 7 - TC/tetbuild.cfg | 5 - TC/tetclean.cfg | 5 - TC/tetexec.cfg | 5 - 13 files changed, 546 deletions(-) delete mode 100755 TC/_export_env.sh delete mode 100755 TC/_export_target_env.sh delete mode 100755 TC/build.sh delete mode 100755 TC/clean.sh delete mode 100755 TC/config delete mode 100755 TC/execute.sh delete mode 100644 TC/testcase/Makefile delete mode 100644 TC/testcase/tslist delete mode 100644 TC/testcase/utc_efl_util_set_notification_window_level.c delete mode 100755 TC/tet_scen delete mode 100644 TC/tetbuild.cfg delete mode 100644 TC/tetclean.cfg delete mode 100644 TC/tetexec.cfg diff --git a/TC/_export_env.sh b/TC/_export_env.sh deleted file mode 100755 index 72a11ec..0000000 --- a/TC/_export_env.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/sh - -. ./config -export TET_INSTALL_PATH=$TET_INSTALL_HOST_PATH # tetware root path -export TET_TARGET_PATH=$TET_INSTALL_PATH/tetware-target # tetware target path -export PATH=$TET_TARGET_PATH/bin:$PATH -export LD_LIBRARY_PATH=$TET_TARGET_PATH/lib/tet3:$LD_LIBRARY_PATH -export TET_ROOT=$TET_TARGET_PATH diff --git a/TC/_export_target_env.sh b/TC/_export_target_env.sh deleted file mode 100755 index 5ddaa53..0000000 --- a/TC/_export_target_env.sh +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/sh -. ./config -export TET_INSTALL_PATH=$TET_INSTALL_TARGET_PATH # path to path -export TET_TARGET_PATH=$TET_INSTALL_PATH/tetware-target -export PATH=$TET_TARGET_PATH/bin:$PATH -export LD_LIBRARY_PATH=$TET_TARGET_PATH/lib/tet3:$LD_LIBRARY_PATH -export TET_ROOT=$TET_TARGET_PATH diff --git a/TC/build.sh b/TC/build.sh deleted file mode 100755 index 72aad6c..0000000 --- a/TC/build.sh +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/sh - -. ./_export_env.sh # setting environment variables - -export TET_SUITE_ROOT=`pwd` -FILE_NAME_EXTENSION=`date +%s` - -RESULT_DIR=results -HTML_RESULT=$RESULT_DIR/build-tar-result-$FILE_NAME_EXTENSION.html -JOURNAL_RESULT=$RESULT_DIR/build-tar-result-$FILE_NAME_EXTENSION.journal - -mkdir -p $RESULT_DIR - -tcc -c -p ./ -tcc -b -j $JOURNAL_RESULT -p ./ -grw -c 7 -f chtml -o $HTML_RESULT $JOURNAL_RESULT diff --git a/TC/clean.sh b/TC/clean.sh deleted file mode 100755 index 29743e0..0000000 --- a/TC/clean.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/sh - -. ./_export_env.sh # setting environment variables - -export TET_SUITE_ROOT=`pwd` -RESULT_DIR=results - -tcc -c -p ./ # executing tcc, with clean option (-c) -rm -r $RESULT_DIR -rm -r tet_tmp_dir -rm testcase/tet_captured diff --git a/TC/config b/TC/config deleted file mode 100755 index 1a8d731..0000000 --- a/TC/config +++ /dev/null @@ -1,2 +0,0 @@ -TET_INSTALL_HOST_PATH=/home/ilovefilm/TETware -TET_INSTALL_TARGET_PATH=/mnt/nfs/TETware diff --git a/TC/execute.sh b/TC/execute.sh deleted file mode 100755 index a4f6095..0000000 --- a/TC/execute.sh +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/sh - -. ./_export_target_env.sh # setting environment variables - -export TET_SUITE_ROOT=`pwd` -FILE_NAME_EXTENSION=`date +%s` - -RESULT_DIR=results -HTML_RESULT=$RESULT_DIR/exec-tar-result-$FILE_NAME_EXTENSION.html -JOURNAL_RESULT=$RESULT_DIR/exec-tar-result-$FILE_NAME_EXTENSION.journal - -mkdir -p $RESULT_DIR - -tcc -e -j $JOURNAL_RESULT -p ./ -grw -c 3 -f chtml -o $HTML_RESULT $JOURNAL_RESULT diff --git a/TC/testcase/Makefile b/TC/testcase/Makefile deleted file mode 100644 index 0d15f65..0000000 --- a/TC/testcase/Makefile +++ /dev/null @@ -1,26 +0,0 @@ -CC = gcc - -C_FILES = $(shell ls *.c) - -PKGS = capi-ui-efl-util elementary ecore-x ecore evas x11 dlog glib-2.0 - -LDFLAGS += $(TET_ROOT)/lib/tet3/tcm_s.o -LDFLAGS += -L$(TET_ROOT)/lib/tet3 -ltcm_s -LDFLAGS += -L$(TET_ROOT)/lib/tet3 -lapi_s -LDFLAGS += `pkg-config --libs $(PKGS)` - -CFLAGS += `pkg-config --cflags $(PKGS)` -CFLAGS += -I. -CFLAGS += -I$(TET_ROOT)/inc/tet3 -CFLAGS += -Wall - -#TARGETS = $(C_FILES:%.c=tc-%) -TCS := $(shell ls -1 *.c | cut -d. -f1) - -all: $(TCS) - -%: %.c - $(CC) -o $@ $< $(CFLAGS) $(LDFLAGS) - -clean: - rm -f $(TCS) diff --git a/TC/testcase/tslist b/TC/testcase/tslist deleted file mode 100644 index 48142ea..0000000 --- a/TC/testcase/tslist +++ /dev/null @@ -1 +0,0 @@ -/testcase/utc_efl_util_set_notification_window_level diff --git a/TC/testcase/utc_efl_util_set_notification_window_level.c b/TC/testcase/utc_efl_util_set_notification_window_level.c deleted file mode 100644 index d468318..0000000 --- a/TC/testcase/utc_efl_util_set_notification_window_level.c +++ /dev/null @@ -1,438 +0,0 @@ -/* - * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved - * - * Licensed under the Apache License, Version 2.0 (the License); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an AS IS BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include -#include -#include - -#define API_SET_NOTIFICATION_WINDOW_LEVEL "efl_util_set_notification_window_level" -#define API_GET_NOTIFICATION_WINDOW_LEVEL "efl_util_get_notification_window_level" - - -static void startup(void); -static void cleanup(void); - -void (*tet_startup)(void) = startup; -void (*tet_cleanup)(void) = cleanup; - -static void utc_efl_util_set_notification_window_level_negative_1(void); -static void utc_efl_util_set_notification_window_level_negative_2(void); -static void utc_efl_util_set_notification_window_level_negative_3(void); - -static void utc_efl_util_get_notification_window_level_negative_1(void); -static void utc_efl_util_get_notification_window_level_negative_2(void); - -static void utc_efl_util_set_notification_window_level_positive_1(void); -static void utc_efl_util_set_notification_window_level_positive_2(void); -static void utc_efl_util_set_notification_window_level_positive_3(void); - -static void utc_efl_util_get_notification_window_level_positive_1(void); -static void utc_efl_util_get_notification_window_level_positive_2(void); -static void utc_efl_util_get_notification_window_level_positive_3(void); - - -struct tet_testlist tet_testlist[] = { - { utc_efl_util_set_notification_window_level_negative_1, 1 }, - { utc_efl_util_set_notification_window_level_negative_2, 1 }, - { utc_efl_util_set_notification_window_level_negative_3, 1 }, - { utc_efl_util_get_notification_window_level_negative_1, 1 }, - { utc_efl_util_get_notification_window_level_negative_2, 1 }, - { utc_efl_util_set_notification_window_level_positive_1, 1 }, - { utc_efl_util_set_notification_window_level_positive_2, 1 }, - { utc_efl_util_set_notification_window_level_positive_3, 1 }, - { utc_efl_util_get_notification_window_level_positive_1, 1 }, - { utc_efl_util_get_notification_window_level_positive_2, 1 }, - { utc_efl_util_get_notification_window_level_positive_3, 1 }, - { NULL, 0 }, -}; - - -static void startup(void) -{ - /* start of TC */ - elm_init(0, NULL); -} - - -static void cleanup(void) -{ - /* end of TC */ - elm_shutdown(); -} - - -static void win_del(void *data, Evas_Object *obj, void *event) -{ - elm_exit(); -} - - -static Evas_Object* create_normal_win(const char *name) -{ - Evas_Object *eo; - - eo = elm_win_add(NULL, name, ELM_WIN_BASIC); - if (eo) - { - elm_win_title_set(eo, name); - elm_win_borderless_set(eo, EINA_TRUE); - evas_object_smart_callback_add(eo, "delete,request", - win_del, NULL); - elm_win_indicator_mode_set(eo, ELM_WIN_INDICATOR_SHOW); - } - - return eo; -} - - -static Evas_Object* create_notification_win(const char *name) -{ - Evas_Object *eo; - - eo = elm_win_add(NULL, name, ELM_WIN_NOTIFICATION); - if (eo) - { - elm_win_title_set(eo, name); - elm_win_borderless_set(eo, EINA_TRUE); - evas_object_smart_callback_add(eo, "delete,request", - win_del, NULL); - elm_win_indicator_mode_set(eo, ELM_WIN_INDICATOR_SHOW); - } - - return eo; -} - - -/** - * @brief Negative test case of efl_util_set_notification_window_level() - */ -static void utc_efl_util_set_notification_window_level_negative_1(void) -{ - int ret; - - ret = efl_util_set_notification_window_level(NULL, EFL_UTIL_NOTIFICATION_LEVEL_2); - - if (ret == EFL_UTIL_ERROR_INVALID_PARAMETER) - { - dts_pass(API_SET_NOTIFICATION_WINDOW_LEVEL, "passed"); - } - else - { - dts_fail(API_SET_NOTIFICATION_WINDOW_LEVEL, "failed"); - } -} - - -/** - * @brief Negative test case of efl_util_set_notification_window_level() - */ -static void utc_efl_util_set_notification_window_level_negative_2(void) -{ - Evas_Object *win; - int ret; - - win = create_normal_win("Normal window"); - if (!win) - { - dts_fail(API_SET_NOTIFICATION_WINDOW_LEVEL, "failed to create window"); - } - - ret = efl_util_set_notification_window_level(win, EFL_UTIL_NOTIFICATION_LEVEL_2); - - if (ret == EFL_UTIL_ERROR_NOT_SUPPORTED_WINDOW_TYPE) - { - dts_pass(API_SET_NOTIFICATION_WINDOW_LEVEL, "passed"); - } - else - { - dts_fail(API_SET_NOTIFICATION_WINDOW_LEVEL, "failed"); - } -} - - -/** - * @brief Negative test case of efl_util_set_notification_window_level() - */ -static void utc_efl_util_set_notification_window_level_negative_3(void) -{ - Evas_Object *win; - int ret; - - win = create_notification_win("Notification Type Window"); - if (!win) - { - dts_fail(API_SET_NOTIFICATION_WINDOW_LEVEL, "failed to create window"); - } - - ret = efl_util_set_notification_window_level(win, 100); - - if (ret == EFL_UTIL_ERROR_INVALID_PARAMETER) - { - dts_pass(API_SET_NOTIFICATION_WINDOW_LEVEL, "passed"); - } - else - { - dts_fail(API_SET_NOTIFICATION_WINDOW_LEVEL, "failed"); - } -} - - -/** - * @brief Negative test case of efl_util_set_notification_window_level() - */ -static void utc_efl_util_get_notification_window_level_negative_1(void) -{ - int ret; - int level; - - ret = efl_util_get_notification_window_level(NULL, &level); - - if (ret == EFL_UTIL_ERROR_INVALID_PARAMETER) - { - dts_pass(API_GET_NOTIFICATION_WINDOW_LEVEL, "passed"); - } - else - { - dts_fail(API_GET_NOTIFICATION_WINDOW_LEVEL, "failed"); - } -} - - -/** - * @brief Negative test case of efl_util_set_notification_window_level() - */ -static void utc_efl_util_get_notification_window_level_negative_2(void) -{ - Evas_Object *win; - int ret; - int level; - - win = create_normal_win("Normal Type Window"); - if (!win) - { - dts_fail(API_GET_NOTIFICATION_WINDOW_LEVEL, "failed to create window"); - } - - ret = efl_util_get_notification_window_level(win, &level); - - if (ret == EFL_UTIL_ERROR_NOT_SUPPORTED_WINDOW_TYPE) - { - dts_pass(API_GET_NOTIFICATION_WINDOW_LEVEL, "passed"); - } - else - { - dts_fail(API_GET_NOTIFICATION_WINDOW_LEVEL, "failed"); - } -} - - -/** - * @brief Positive test case of efl_util_set_notification_window_level() - */ -static void utc_efl_util_set_notification_window_level_positive_1(void) -{ - Evas_Object *win; - int ret; - - win = create_notification_win("Notification Type Window"); - if (!win) - { - dts_fail(API_SET_NOTIFICATION_WINDOW_LEVEL, "failed to create window"); - } - - ret = efl_util_set_notification_window_level(win, EFL_UTIL_NOTIFICATION_LEVEL_1); - - if (ret == EFL_UTIL_ERROR_NONE) - { - dts_pass(API_SET_NOTIFICATION_WINDOW_LEVEL, "passed"); - } - else - { - dts_fail(API_SET_NOTIFICATION_WINDOW_LEVEL, "failed"); - } -} - - -/** - * @brief Positive test case of efl_util_set_notification_window_level() - */ -static void utc_efl_util_set_notification_window_level_positive_2(void) -{ - Evas_Object *win; - int ret1, ret2; - - win = create_notification_win("Notification Type Window"); - if (!win) - { - dts_fail(API_SET_NOTIFICATION_WINDOW_LEVEL, "failed to create window"); - } - - ret1 = efl_util_set_notification_window_level(win, EFL_UTIL_NOTIFICATION_LEVEL_1); - ret2 = efl_util_set_notification_window_level(win, EFL_UTIL_NOTIFICATION_LEVEL_2); - - if (ret2 == EFL_UTIL_ERROR_NONE) - { - dts_pass(API_SET_NOTIFICATION_WINDOW_LEVEL, "passed"); - } - else - { - dts_fail(API_SET_NOTIFICATION_WINDOW_LEVEL, "failed"); - } -} - - -/** - * @brief Positive test case of efl_util_set_notification_window_level() - */ -static void utc_efl_util_set_notification_window_level_positive_3(void) -{ - Evas_Object *win; - int ret1, ret2, ret3; - - win = create_notification_win("Notification Type Window"); - if (!win) - { - dts_fail(API_SET_NOTIFICATION_WINDOW_LEVEL, "failed to create window"); - } - - ret1 = efl_util_set_notification_window_level(win, EFL_UTIL_NOTIFICATION_LEVEL_1); - ret2 = efl_util_set_notification_window_level(win, EFL_UTIL_NOTIFICATION_LEVEL_2); - ret3 = efl_util_set_notification_window_level(win, EFL_UTIL_NOTIFICATION_LEVEL_3); - - if (ret3 == EFL_UTIL_ERROR_NONE) - { - dts_pass(API_SET_NOTIFICATION_WINDOW_LEVEL, "passed"); - } - else - { - dts_fail(API_SET_NOTIFICATION_WINDOW_LEVEL, "failed"); - } -} - - -/** - * @brief Positive test case of efl_util_set_notification_window_level() - */ -static void utc_efl_util_get_notification_window_level_positive_1(void) -{ - Evas_Object *win; - int ret; - int level; - - win = create_notification_win("Notification Type Window"); - if (!win) - { - dts_fail(API_GET_NOTIFICATION_WINDOW_LEVEL, "failed to create window"); - } - efl_util_set_notification_window_level(win, EFL_UTIL_NOTIFICATION_LEVEL_1); - - level = -1; - ret = efl_util_get_notification_window_level(win, &level); - - if (ret == EFL_UTIL_ERROR_NONE) - { - if (level == EFL_UTIL_NOTIFICATION_LEVEL_1) - { - dts_pass(API_GET_NOTIFICATION_WINDOW_LEVEL, "passed"); - } - else - { - dts_fail(API_GET_NOTIFICATION_WINDOW_LEVEL, "failed - level is wrong"); - } - } - else - { - dts_fail(API_GET_NOTIFICATION_WINDOW_LEVEL, "failed - return value is wrong"); - } -} - - -/** - * @brief Positive test case of efl_util_set_notification_window_level() - */ -static void utc_efl_util_get_notification_window_level_positive_2(void) -{ - Evas_Object *win; - int ret; - int level; - - win = create_notification_win("Notification Type Window"); - if (!win) - { - dts_fail(API_GET_NOTIFICATION_WINDOW_LEVEL, "failed to create window"); - } - efl_util_set_notification_window_level(win, EFL_UTIL_NOTIFICATION_LEVEL_1); - efl_util_set_notification_window_level(win, EFL_UTIL_NOTIFICATION_LEVEL_2); - - level = -1; - ret = efl_util_get_notification_window_level(win, &level); - - if (ret == EFL_UTIL_ERROR_NONE) - { - if (level == EFL_UTIL_NOTIFICATION_LEVEL_2) - { - dts_pass(API_GET_NOTIFICATION_WINDOW_LEVEL, "passed"); - } - else - { - dts_fail(API_GET_NOTIFICATION_WINDOW_LEVEL, "failed - level is wrong"); - } - } - else - { - dts_fail(API_GET_NOTIFICATION_WINDOW_LEVEL, "failed - return value is wrong"); - } -} - - -/** - * @brief Positive test case of efl_util_set_notification_window_level() - */ -static void utc_efl_util_get_notification_window_level_positive_3(void) -{ - Evas_Object *win; - int ret; - int level; - - win = create_notification_win("Notification Type Window"); - if (!win) - { - dts_fail(API_GET_NOTIFICATION_WINDOW_LEVEL, "failed to create window"); - } - efl_util_set_notification_window_level(win, EFL_UTIL_NOTIFICATION_LEVEL_1); - efl_util_set_notification_window_level(win, EFL_UTIL_NOTIFICATION_LEVEL_3); - - level = -1; - ret = efl_util_get_notification_window_level(win, &level); - - if (ret == EFL_UTIL_ERROR_NONE) - { - if (level == EFL_UTIL_NOTIFICATION_LEVEL_3) - { - dts_pass(API_GET_NOTIFICATION_WINDOW_LEVEL, "passed"); - } - else - { - dts_fail(API_GET_NOTIFICATION_WINDOW_LEVEL, "failed - level is wrong"); - } - } - else - { - dts_fail(API_GET_NOTIFICATION_WINDOW_LEVEL, "failed - return value is wrong"); - } -} - diff --git a/TC/tet_scen b/TC/tet_scen deleted file mode 100755 index 03f029a..0000000 --- a/TC/tet_scen +++ /dev/null @@ -1,7 +0,0 @@ -all - ^TEST -##### Scenarios for TEST ##### - -# Test scenario -TEST - :include:/testcase/tslist diff --git a/TC/tetbuild.cfg b/TC/tetbuild.cfg deleted file mode 100644 index f7eda55..0000000 --- a/TC/tetbuild.cfg +++ /dev/null @@ -1,5 +0,0 @@ -TET_OUTPUT_CAPTURE=True # capture option for build operation checking -TET_BUILD_TOOL=make # build with using make command -TET_BUILD_FILE=-f Makefile # execution file (Makefile) for build -TET_API_COMPLIANT=True # use TET API in Test Case ? -TET_PASS_TC_NAME=True # report passed TC name in Journal file? diff --git a/TC/tetclean.cfg b/TC/tetclean.cfg deleted file mode 100644 index 02d7030..0000000 --- a/TC/tetclean.cfg +++ /dev/null @@ -1,5 +0,0 @@ -TET_OUTPUT_CAPTURE=True # capture option -TET_CLEAN_TOOL= make clean # clean tool -TET_CLEAN_FILE= Makefile # file for clean -TET_API_COMPLIANT=True # TET API useage -TET_PASS_TC_NAME=True # showing name , passed TC diff --git a/TC/tetexec.cfg b/TC/tetexec.cfg deleted file mode 100644 index ef3e452..0000000 --- a/TC/tetexec.cfg +++ /dev/null @@ -1,5 +0,0 @@ -TET_OUTPUT_CAPTURE=True # capturing execution or not -TET_EXEC_TOOL= # ex) exec : execution tool set up/ Optional -TET_EXEC_FILE= # ex) exectool : execution file/ Optional -TET_API_COMPLIANT=True # Test case or Tool usesTET API? -TET_PASS_TC_NAME=True # showing Passed TC name ? -- 2.7.4