summaryrefslogtreecommitdiff
path: root/TC
diff options
context:
space:
mode:
authorJinkun Jang <jinkun.jang@samsung.com>2013-03-13 01:45:51 +0900
committerJinkun Jang <jinkun.jang@samsung.com>2013-03-13 01:45:51 +0900
commit51e698761ed52249496990a6ca5362460af2ca2b (patch)
tree10fe8022c6f0e1f83bc941283bf56349fdafd595 /TC
parentcb9665baa95abaeac5268efb421afd4f2e3d5152 (diff)
downloaddevice-51e698761ed52249496990a6ca5362460af2ca2b.tar.gz
device-51e698761ed52249496990a6ca5362460af2ca2b.tar.bz2
device-51e698761ed52249496990a6ca5362460af2ca2b.zip
Tizen 2.1 base
Diffstat (limited to 'TC')
-rwxr-xr-xTC/_export_env.sh8
-rwxr-xr-xTC/_export_target_env.sh7
-rwxr-xr-xTC/build.sh16
-rwxr-xr-xTC/clean.sh11
-rw-r--r--TC/config2
-rwxr-xr-xTC/execute.sh15
-rwxr-xr-xTC/testcase/Makefile28
-rw-r--r--TC/testcase/tslist3
-rw-r--r--TC/testcase/utc_system_device_battery.c157
-rw-r--r--TC/testcase/utc_system_device_brightness.c331
-rwxr-xr-xTC/tet_scen7
-rw-r--r--TC/tetbuild.cfg5
-rw-r--r--TC/tetclean.cfg5
-rw-r--r--TC/tetexec.cfg5
14 files changed, 600 insertions, 0 deletions
diff --git a/TC/_export_env.sh b/TC/_export_env.sh
new file mode 100755
index 0000000..72a11ec
--- /dev/null
+++ b/TC/_export_env.sh
@@ -0,0 +1,8 @@
+#!/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
new file mode 100755
index 0000000..5ddaa53
--- /dev/null
+++ b/TC/_export_target_env.sh
@@ -0,0 +1,7 @@
+#!/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
new file mode 100755
index 0000000..72aad6c
--- /dev/null
+++ b/TC/build.sh
@@ -0,0 +1,16 @@
+#!/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
new file mode 100755
index 0000000..29743e0
--- /dev/null
+++ b/TC/clean.sh
@@ -0,0 +1,11 @@
+#!/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
new file mode 100644
index 0000000..8b68019
--- /dev/null
+++ b/TC/config
@@ -0,0 +1,2 @@
+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
new file mode 100755
index 0000000..a4f6095
--- /dev/null
+++ b/TC/execute.sh
@@ -0,0 +1,15 @@
+#!/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
new file mode 100755
index 0000000..8cc3da8
--- /dev/null
+++ b/TC/testcase/Makefile
@@ -0,0 +1,28 @@
+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
new file mode 100644
index 0000000..9517124
--- /dev/null
+++ b/TC/testcase/tslist
@@ -0,0 +1,3 @@
+/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
new file mode 100644
index 0000000..b92fb59
--- /dev/null
+++ b/TC/testcase/utc_system_device_battery.c
@@ -0,0 +1,157 @@
+/*
+ * capi-system-device
+ * Copyright (c) 2012 Samsung Electronics Co., Ltd.
+ *
+ * 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 <tet_api.h>
+#include <device.h>
+
+#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
new file mode 100644
index 0000000..61ed563
--- /dev/null
+++ b/TC/testcase/utc_system_device_brightness.c
@@ -0,0 +1,331 @@
+/*
+ * capi-system-device
+ * Copyright (c) 2012 Samsung Electronics Co., Ltd.
+ *
+ * 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 <tet_api.h>
+#include <device.h>
+#include <power.h>
+
+#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<cnt; i++){
+ error = device_get_brightness(i, &value);
+
+ if (error != DEVICE_ERROR_NONE){
+ dts_fail(API_NAME_DEVICE_GET_BRIGHTNESS);
+ }
+
+ if (value < 0){
+ dts_fail(API_NAME_DEVICE_GET_BRIGHTNESS);
+ }
+ }
+
+ dts_pass(API_NAME_DEVICE_GET_BRIGHTNESS);
+}
+
+/**
+ * @brief Negative test case of device_get_brightness() with bad display parameter
+ */
+static void utc_system_device_get_brightness_n_1(void)
+{
+ int value = 0;
+ int error = DEVICE_ERROR_NONE;
+
+ error = device_get_brightness(cnt+1, &value);
+ dts_check_ne(API_NAME_DEVICE_GET_BRIGHTNESS, error, DEVICE_ERROR_NONE);
+}
+
+/**
+ * @brief Negative test case of device_get_brightness() with null pointer
+ */
+static void utc_system_device_get_brightness_n_2(void)
+{
+ int value = 0, i=0;
+ int error = DEVICE_ERROR_NONE;
+
+ for(i=0; i<cnt; i++){
+ error = device_get_brightness(i, NULL);
+
+ if(error == DEVICE_ERROR_NONE){
+ dts_fail(API_NAME_DEVICE_GET_BRIGHTNESS);
+ }
+ }
+ dts_pass(API_NAME_DEVICE_GET_BRIGHTNESS);
+}
+
+/**
+ * @brief Positive test case of device_get_max_brightness()
+ */
+static void utc_system_device_get_max_brightness_p(void)
+{
+ int value = 0, i=0;
+ int error = DEVICE_ERROR_NONE;
+
+ for(i=0; i<cnt; i++){
+ error = device_get_max_brightness(i, &value);
+
+ if(error != DEVICE_ERROR_NONE){
+ dts_fail(API_NAME_DEVICE_GET_MAX_BRIGHTNESS);
+ }
+ }
+ dts_pass(API_NAME_DEVICE_GET_MAX_BRIGHTNESS);
+}
+
+/**
+ * @brief Negative test case of device_get_max_brightness() with bad display parameter
+ */
+static void utc_system_device_get_max_brightness_n_1(void)
+{
+ int value = 0;
+ int error = DEVICE_ERROR_NONE;
+ error = device_get_max_brightness(cnt+1, &value);
+
+ dts_check_ne(API_NAME_DEVICE_GET_MAX_BRIGHTNESS, error, DEVICE_ERROR_NONE);
+}
+
+/**
+ * @brief Negative test case of device_get_max_brightness() with null pointer
+ */
+static void utc_system_device_get_max_brightness_n_2(void)
+{
+ int error = DEVICE_ERROR_NONE, i=0;
+
+ for(i=0; i<cnt; i++){
+ error = device_get_max_brightness(i, NULL);
+
+ if(error == DEVICE_ERROR_NONE){
+ dts_fail(API_NAME_DEVICE_GET_MAX_BRIGHTNESS);
+ }
+ }
+ dts_pass(API_NAME_DEVICE_GET_MAX_BRIGHTNESS);
+}
+
+/**
+ * @brief Positive test case of device_set_brightness()
+ */
+static void utc_system_device_set_brightness_p_1(void)
+{
+ int i=0;
+ int err;
+
+ dts_message(API_NAME_DEVICE_SET_BRIGHTNESS, "!@#$ cnt=%d", cnt);
+
+ for(i=0; i<cnt; i++){
+ dts_message(API_NAME_DEVICE_SET_BRIGHTNESS, "index=%d", i);
+ err = device_set_brightness(i, 0);
+ dts_message(API_NAME_DEVICE_SET_BRIGHTNESS, "error=%d", err);
+ if(err != DEVICE_ERROR_NONE) {
+ dts_fail(API_NAME_DEVICE_SET_BRIGHTNESS);
+ }
+ }
+ dts_pass(API_NAME_DEVICE_SET_BRIGHTNESS);
+}
+
+/**
+ * @brief Positive test case of device_set_brightness()
+ */
+static void utc_system_device_set_brightness_p_2(void)
+{
+ int setting = 0;
+ int max_value = 0;
+ int value = 0, i=0;
+
+ for(i=0; i<cnt; i++){
+ if( device_get_max_brightness(i, &max_value) != DEVICE_ERROR_NONE ) {
+ dts_fail(API_NAME_DEVICE_SET_BRIGHTNESS);
+ }
+
+ if( max_value < 0 ) {
+ dts_fail(API_NAME_DEVICE_SET_BRIGHTNESS);
+ }
+
+ setting = max_value > 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<cnt; i++){
+ if( device_get_max_brightness(i, &max_value) != DEVICE_ERROR_NONE ) {
+ dts_fail(API_NAME_DEVICE_SET_BRIGHTNESS, "fail get_max_brightness");
+ }
+
+ if( device_set_brightness(i, max_value+1) == DEVICE_ERROR_NONE ) {
+ dts_fail(API_NAME_DEVICE_SET_BRIGHTNESS, "fail 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_2(void)
+{
+ int i=0;
+
+ for(i=0; i<cnt; i++){
+ if( device_set_brightness(i, -1) == DEVICE_ERROR_NONE ) {
+ dts_fail(API_NAME_DEVICE_SET_BRIGHTNESS);
+ }
+ }
+
+ dts_pass(API_NAME_DEVICE_SET_BRIGHTNESS);
+}
+
+/**
+ * @brief Positive test case of device_set_brightness_from_settings()
+ */
+static void utc_system_device_set_brightness_from_settings_p(void)
+{
+ int i, error;
+
+ dts_message(API_NAME_DEVICE_SET_BRIGHTNESS_FROM_SETTINGS, "display cnt=%d", cnt);
+
+ for(i=0; i<cnt; i++){
+ dts_message(API_NAME_DEVICE_SET_BRIGHTNESS_FROM_SETTINGS, "index=%d", i);
+ error = device_set_brightness_from_settings(i);
+ dts_message(API_NAME_DEVICE_SET_BRIGHTNESS_FROM_SETTINGS, "error=%d", error);
+ if(error != DEVICE_ERROR_NONE) {
+ dts_fail(API_NAME_DEVICE_SET_BRIGHTNESS_FROM_SETTINGS);
+ }
+ }
+ dts_pass(API_NAME_DEVICE_SET_BRIGHTNESS_FROM_SETTINGS);
+}
+
+/**
+ * @brief Negative test case of device_set_brightness_from_settings() with bad display parameter
+ */
+static void utc_system_device_set_brightness_from_settings_n(void)
+{
+ int error = DEVICE_ERROR_NONE;
+
+ error = device_set_brightness_from_settings(cnt+1);
+
+ dts_check_ne(API_NAME_DEVICE_SET_BRIGHTNESS_FROM_SETTINGS, error, DEVICE_ERROR_NONE);
+}
diff --git a/TC/tet_scen b/TC/tet_scen
new file mode 100755
index 0000000..03f029a
--- /dev/null
+++ b/TC/tet_scen
@@ -0,0 +1,7 @@
+all
+ ^TEST
+##### Scenarios for TEST #####
+
+# Test scenario
+TEST
+ :include:/testcase/tslist
diff --git a/TC/tetbuild.cfg b/TC/tetbuild.cfg
new file mode 100644
index 0000000..f7eda55
--- /dev/null
+++ b/TC/tetbuild.cfg
@@ -0,0 +1,5 @@
+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
new file mode 100644
index 0000000..02d7030
--- /dev/null
+++ b/TC/tetclean.cfg
@@ -0,0 +1,5 @@
+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
new file mode 100644
index 0000000..ef3e452
--- /dev/null
+++ b/TC/tetexec.cfg
@@ -0,0 +1,5 @@
+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 ?