From a3e38872abce3a86e181188e8b91f9dffbc1f918 Mon Sep 17 00:00:00 2001 From: "jy910.yun" Date: Thu, 11 Apr 2013 11:34:17 +0900 Subject: [PATCH] delete redundant TC files to clear opensource keyword issue --- 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 | 28 --- TC/testcase/tslist | 3 - TC/testcase/utc_system_device_battery.c | 156 -------------- TC/testcase/utc_system_device_brightness.c | 330 ----------------------------- TC/tet_scen | 7 - TC/tetbuild.cfg | 5 - TC/tetclean.cfg | 5 - TC/tetexec.cfg | 5 - 14 files changed, 598 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 100644 TC/config delete mode 100755 TC/execute.sh delete mode 100755 TC/testcase/Makefile delete mode 100644 TC/testcase/tslist delete mode 100644 TC/testcase/utc_system_device_battery.c delete mode 100644 TC/testcase/utc_system_device_brightness.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 100644 index 8b68019..0000000 --- a/TC/config +++ /dev/null @@ -1,2 +0,0 @@ -TET_INSTALL_HOST_PATH=/home/idkiller/work/tetware/TETware -TET_INSTALL_TARGET_PATH=/mnt/nfs/tetware/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 100755 index 8cc3da8..0000000 --- a/TC/testcase/Makefile +++ /dev/null @@ -1,28 +0,0 @@ -CC = gcc - -C_FILES = $(shell ls *.c) - -PKGS = dlog capi-system-device capi-system-power - -#TET_ROOT = /home/idkiller/work/tetware/TETware/tetware-target - -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 9517124..0000000 --- a/TC/testcase/tslist +++ /dev/null @@ -1,3 +0,0 @@ -/testcase/utc_system_device_battery -/testcase/utc_system_device_brightness - diff --git a/TC/testcase/utc_system_device_battery.c b/TC/testcase/utc_system_device_battery.c deleted file mode 100644 index a93ba00..0000000 --- a/TC/testcase/utc_system_device_battery.c +++ /dev/null @@ -1,156 +0,0 @@ -/* - * - * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved - * PROPRIETARY/CONFIDENTIAL - * - * This software is the confidential and proprietary information of SAMSUNG - * ELECTRONICS ("Confidential Information"). You agree and acknowledge that - * this software is owned by Samsung and you shall not disclose such - * Confidential Information and shall use it only in accordance with the terms - * of the license agreement you entered into with SAMSUNG ELECTRONICS. SAMSUNG - * make no representations or warranties about the suitability of the software, - * either express or implied, including but not limited to the implied - * warranties of merchantability, fitness for a particular purpose, or - * non-infringement. SAMSUNG shall not be liable for any damages suffered by - * licensee arising out of or related to this software. - * - */ -#include -#include - -#define API_NAME_DEVICE_BATTERY_GET_PERCENT "device_battery_get_percent" -#define API_NAME_DEVICE_BATTERY_IS_FULL "device_battery_is_full" -#define API_NAME_DEVICE_BATTERY_IS_CHARGING "device_battery_is_charging" -#define API_NAME_DEVICE_BATTERY_SET_CB "device_battery_set_cb" -#define API_NAME_DEVICE_BATTERY_UNSET_CB "device_battery_unset_cb" - -static void startup(void); -static void cleanup(void); - -void (*tet_startup)(void) = startup; -void (*tet_cleanup)(void) = cleanup; - -static void utc_system_device_battery_get_percent_p(void); -static void utc_system_device_battery_get_percent_n(void); -static void utc_system_device_battery_is_full_p(void); -static void utc_system_device_battery_is_full_n(void); -static void utc_system_device_battery_is_charging_p(void); -static void utc_system_device_battery_is_charging_n(void); -static void utc_system_device_battery_set_cb_p(void); -static void utc_system_device_battery_set_cb_n(void); -static void utc_system_device_battery_unset_cb_p(void); - - -enum { - POSITIVE_TC_IDX = 0x01, - NEGATIVE_TC_IDX, -}; - -struct tet_testlist tet_testlist[] = { - { utc_system_device_battery_get_percent_p, POSITIVE_TC_IDX }, - { utc_system_device_battery_get_percent_n, NEGATIVE_TC_IDX }, - { utc_system_device_battery_is_full_p, POSITIVE_TC_IDX }, - { utc_system_device_battery_is_full_n, NEGATIVE_TC_IDX }, - { utc_system_device_battery_is_charging_p, POSITIVE_TC_IDX }, - { utc_system_device_battery_is_charging_n, NEGATIVE_TC_IDX }, - { utc_system_device_battery_set_cb_p, POSITIVE_TC_IDX }, - { utc_system_device_battery_set_cb_n, NEGATIVE_TC_IDX }, - { utc_system_device_battery_unset_cb_p, POSITIVE_TC_IDX }, - { NULL, 0}, -}; - -static void startup(void) -{ - /* start of TC */ -} - -static void cleanup(void) -{ - /* end of TC */ -} - -/** - * @brief Positive test case of device_battery_get_percent() - */ -static void utc_system_device_battery_get_percent_p(void) -{ - int percent = 0; - int error = DEVICE_ERROR_NONE; - error = device_battery_get_percent(&percent); - - dts_check_eq(API_NAME_DEVICE_BATTERY_GET_PERCENT, error, DEVICE_ERROR_NONE); -} - -/** - * @brief Negative test case of device_battery_get_percent() - */ -static void utc_system_device_battery_get_percent_n(void) -{ - int error = DEVICE_ERROR_NONE; - error = device_battery_get_percent(NULL); - - dts_check_ne(API_NAME_DEVICE_BATTERY_GET_PERCENT, error, DEVICE_ERROR_NONE); -} - -/** - * @brief Positive test case of device_battery_is_full() - */ -static void utc_system_device_battery_is_full_p(void) -{ - bool full; - int error = DEVICE_ERROR_NONE; - error = device_battery_is_full(&full); - dts_check_eq(API_NAME_DEVICE_BATTERY_IS_FULL, error, DEVICE_ERROR_NONE); -} - -/** - * @brief Negative test case of device_battery_is_full() - */ -static void utc_system_device_battery_is_full_n(void) -{ - int error = DEVICE_ERROR_NONE; - error = device_battery_is_full(NULL); - dts_check_ne(API_NAME_DEVICE_BATTERY_IS_FULL, error, DEVICE_ERROR_NONE); -} - - -static void utc_system_device_battery_is_charging_p(void) -{ - bool charging; - int error = DEVICE_ERROR_NONE; - error = device_battery_is_charging(&charging); - dts_check_eq(API_NAME_DEVICE_BATTERY_IS_CHARGING, error, DEVICE_ERROR_NONE); -} - -static void utc_system_device_battery_is_charging_n(void) -{ - bool charging; - int error = DEVICE_ERROR_NONE; - error = device_battery_is_charging(NULL); - dts_check_ne(API_NAME_DEVICE_BATTERY_IS_CHARGING, error, DEVICE_ERROR_NONE); -} - -static void battery_cb(int percent, void *user_data) -{ -} - -static void utc_system_device_battery_set_cb_p(void) -{ - int error = device_battery_set_cb(battery_cb, NULL); - device_battery_unset_cb(); - dts_check_eq(API_NAME_DEVICE_BATTERY_SET_CB, error, DEVICE_ERROR_NONE); -} - -static void utc_system_device_battery_set_cb_n(void) -{ - int error = device_battery_set_cb(NULL, NULL); - device_battery_unset_cb(); - dts_check_ne(API_NAME_DEVICE_BATTERY_SET_CB, error, DEVICE_ERROR_NONE); -} - -static void utc_system_device_battery_unset_cb_p(void) -{ - device_battery_set_cb(battery_cb, NULL); - int error = device_battery_unset_cb(); - dts_check_eq(API_NAME_DEVICE_BATTERY_SET_CB, error, DEVICE_ERROR_NONE); -} diff --git a/TC/testcase/utc_system_device_brightness.c b/TC/testcase/utc_system_device_brightness.c deleted file mode 100644 index 3914e9f..0000000 --- a/TC/testcase/utc_system_device_brightness.c +++ /dev/null @@ -1,330 +0,0 @@ -/* - * - * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved - * PROPRIETARY/CONFIDENTIAL - * - * This software is the confidential and proprietary information of SAMSUNG - * ELECTRONICS ("Confidential Information"). You agree and acknowledge that - * this software is owned by Samsung and you shall not disclose such - * Confidential Information and shall use it only in accordance with the terms - * of the license agreement you entered into with SAMSUNG ELECTRONICS. SAMSUNG - * make no representations or warranties about the suitability of the software, - * either express or implied, including but not limited to the implied - * warranties of merchantability, fitness for a particular purpose, or - * non-infringement. SAMSUNG shall not be liable for any damages suffered by - * licensee arising out of or related to this software. - * - */ -#include -#include -#include - -#define API_NAME_DEVICE_GET_DISPLAY_COUNT "device_get_display_numbers" -#define API_NAME_DEVICE_GET_BRIGHTNESS "device_get_brightness" -#define API_NAME_DEVICE_GET_MAX_BRIGHTNESS "device_get_max_brightness" -#define API_NAME_DEVICE_SET_BRIGHTNESS "device_set_brightness" -#define API_NAME_DEVICE_SET_BRIGHTNESS_FROM_SETTINGS "device_set_brightness_from_settings" - -static void startup(void); -static void cleanup(void); - -void (*tet_startup)(void) = startup; -void (*tet_cleanup)(void) = cleanup; - - -static void utc_system_device_get_display_numbers_p(void); -static void utc_system_device_get_brightness_p(void); -static void utc_system_device_get_brightness_n_1(void); -static void utc_system_device_get_brightness_n_2(void); -static void utc_system_device_get_max_brightness_p(void); -static void utc_system_device_get_max_brightness_n_1(void); -static void utc_system_device_get_max_brightness_n_2(void); -static void utc_system_device_set_brightness_p_1(void); -static void utc_system_device_set_brightness_p_2(void); -static void utc_system_device_set_brightness_n_1(void); -static void utc_system_device_set_brightness_n_2(void); -static void utc_system_device_set_brightness_from_settings_p(void); -static void utc_system_device_set_brightness_from_settings_n(void); - - -enum { - POSITIVE_TC_IDX = 0x01, - NEGATIVE_TC_IDX, -}; - -struct tet_testlist tet_testlist[] = { - { utc_system_device_get_display_numbers_p, POSITIVE_TC_IDX}, - { utc_system_device_get_brightness_p, POSITIVE_TC_IDX }, - { utc_system_device_get_brightness_n_1, NEGATIVE_TC_IDX }, - { utc_system_device_get_brightness_n_2, NEGATIVE_TC_IDX }, - { utc_system_device_get_max_brightness_p, POSITIVE_TC_IDX }, - { utc_system_device_get_max_brightness_n_1, NEGATIVE_TC_IDX }, - { utc_system_device_get_max_brightness_n_2, NEGATIVE_TC_IDX }, - { utc_system_device_set_brightness_p_1, POSITIVE_TC_IDX }, - { utc_system_device_set_brightness_p_2, POSITIVE_TC_IDX }, - { utc_system_device_set_brightness_n_1, NEGATIVE_TC_IDX }, - { utc_system_device_set_brightness_n_2, NEGATIVE_TC_IDX }, - { utc_system_device_set_brightness_from_settings_p, POSITIVE_TC_IDX }, - { utc_system_device_set_brightness_from_settings_n, NEGATIVE_TC_IDX }, - { NULL, 0}, -}; - -static int cnt; - -static void startup(void) -{ - /* start of TC */ - power_wakeup(false); - power_lock_state(POWER_STATE_NORMAL, 0); - - device_get_display_numbers(&cnt); -} - -static void cleanup(void) -{ - /* end of TC */ - power_unlock_state(POWER_STATE_NORMAL); -} - -static void utc_system_device_get_display_numbers_p(void) -{ - int _cnt, err; - err = device_get_display_numbers(&_cnt); - - if(err < 0){ - dts_fail(API_NAME_DEVICE_GET_DISPLAY_COUNT); - } - else{ - dts_pass(API_NAME_DEVICE_GET_DISPLAY_COUNT); - } -} - -/** - * @brief Positive test case of device_get_brightness() - */ -static void utc_system_device_get_brightness_p(void) -{ - int i; - int value = 0; - int error = DEVICE_ERROR_NONE; - - for(i=0; i 1 ? max_value / 2 : 1; - - if( device_set_brightness(i, setting) != DEVICE_ERROR_NONE ) { - dts_fail(API_NAME_DEVICE_SET_BRIGHTNESS); - } - dts_message(API_NAME_DEVICE_SET_BRIGHTNESS, "brightness=%d", setting); - - - if ( device_get_brightness(i, &value) != DEVICE_ERROR_NONE ) { - dts_fail(API_NAME_DEVICE_SET_BRIGHTNESS); - } - dts_message(API_NAME_DEVICE_SET_BRIGHTNESS, "brightness=%d", value); - - if ( value != setting ){ - dts_fail(API_NAME_DEVICE_SET_BRIGHTNESS); - } - } - - dts_pass(API_NAME_DEVICE_SET_BRIGHTNESS); -} - -/** - * @brief Negative test case of device_set_brightness() - */ -static void utc_system_device_set_brightness_n_1(void) -{ - int i=0; - int max_value = 0; - - for(i=0; i