summaryrefslogtreecommitdiff
path: root/TC
diff options
context:
space:
mode:
authortaeyoung <ty317.kim@samsung.com>2015-06-10 22:57:56 +0900
committertaeyoung <ty317.kim@samsung.com>2015-06-10 23:03:59 +0900
commitf0e71819ee83cd67d94be187dc301c3d9c2c83a5 (patch)
tree6aa37ca5c3652f89f60de0d78d75d801a8129dda /TC
parent7780e7ea0ea03dcc8e796aa6b22ec53ec34b98d1 (diff)
downloadlibsvi-f0e71819ee83cd67d94be187dc301c3d9c2c83a5.tar.gz
libsvi-f0e71819ee83cd67d94be187dc301c3d9c2c83a5.tar.bz2
libsvi-f0e71819ee83cd67d94be187dc301c3d9c2c83a5.zip
common: code sync with Tizen 2.3
- Currently, libsvi is too old and it is necessary to add many fixes and some features. Thus code sync is needed Change-Id: I0abd6ad42bf5ef74ae001a2c82aca5c6bc40ff32 Signed-off-by: taeyoung <ty317.kim@samsung.com>
Diffstat (limited to 'TC')
-rwxr-xr-xTC/_export_env.sh8
-rwxr-xr-xTC/_export_target_env.sh7
-rwxr-xr-xTC/build.sh6
-rwxr-xr-xTC/clean.sh11
-rw-r--r--TC/config2
-rwxr-xr-xTC/execute.sh6
-rwxr-xr-xTC/push.sh11
-rw-r--r--TC/testcase/Makefile28
-rw-r--r--TC/testcase/tslist1
-rw-r--r--TC/testcase/utc_system_feedback.c297
-rwxr-xr-xTC/tet_code12
-rw-r--r--[-rwxr-xr-x]TC/tet_scen2
-rw-r--r--[-rwxr-xr-x]TC/tetbuild.cfg7
-rw-r--r--[-rwxr-xr-x]TC/tetclean.cfg7
-rw-r--r--[-rwxr-xr-x]TC/tetexec.cfg6
-rwxr-xr-xTC/unit/Makefile22
-rwxr-xr-xTC/unit/tc_gen.sh28
-rwxr-xr-xTC/unit/tslist3
-rwxr-xr-xTC/unit/utc_ApplicationFW_svi_fini_func.c79
-rwxr-xr-xTC/unit/utc_ApplicationFW_svi_init_func.c72
-rwxr-xr-xTC/unit/utc_ApplicationFW_svi_play_func.c135
-rwxr-xr-xTC/unit/utc_MODULE_API_func.c.in64
22 files changed, 383 insertions, 431 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
index e7a9432..d58c039 100755
--- a/TC/build.sh
+++ b/TC/build.sh
@@ -1,10 +1,6 @@
#!/bin/sh
-export TET_INSTALL_PATH=$HOME/git/tetware/TETware # local tetware 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
+. ./_export_env.sh # setting environment variables
export TET_SUITE_ROOT=`pwd`
FILE_NAME_EXTENSION=`date +%s`
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..359c6eb
--- /dev/null
+++ b/TC/config
@@ -0,0 +1,2 @@
+TET_INSTALL_HOST_PATH=/var/tmp/dts_fw/TETware
+TET_INSTALL_TARGET_PATH=/var/tmp/dts_fw/TETware
diff --git a/TC/execute.sh b/TC/execute.sh
index a119011..a4f6095 100755
--- a/TC/execute.sh
+++ b/TC/execute.sh
@@ -1,10 +1,6 @@
#!/bin/sh
-export TET_INSTALL_PATH=/mnt/nfs/git/tetware/TETware
-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
+. ./_export_target_env.sh # setting environment variables
export TET_SUITE_ROOT=`pwd`
FILE_NAME_EXTENSION=`date +%s`
diff --git a/TC/push.sh b/TC/push.sh
new file mode 100755
index 0000000..2bbab27
--- /dev/null
+++ b/TC/push.sh
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+. ./config
+
+TC_PATH=/opt/home/$PKG_NAME
+
+echo $TC_PATH
+
+sdb root on
+sdb shell "mkdir -p $TC_PATH"
+sdb push . $TC_PATH
diff --git a/TC/testcase/Makefile b/TC/testcase/Makefile
new file mode 100644
index 0000000..6ab95dc
--- /dev/null
+++ b/TC/testcase/Makefile
@@ -0,0 +1,28 @@
+CC = gcc
+
+C_FILES = $(shell ls *.c)
+
+PKGS = dlog feedback
+
+#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..bdbd7ca
--- /dev/null
+++ b/TC/testcase/tslist
@@ -0,0 +1 @@
+/testcase/utc_system_feedback
diff --git a/TC/testcase/utc_system_feedback.c b/TC/testcase/utc_system_feedback.c
new file mode 100644
index 0000000..b784598
--- /dev/null
+++ b/TC/testcase/utc_system_feedback.c
@@ -0,0 +1,297 @@
+/*
+ *
+ * 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 <tet_api.h>
+#include <feedback.h>
+
+#define API_NAME_FEEDBACK_INITIALIZE "feedback_initialize"
+#define API_NAME_FEEDBACK_DEINITIALIZE "feedback_deinitialize"
+#define API_NAME_FEEDBACK_PLAY "feedback_play"
+#define API_NAME_FEEDBACK_PLAY_TYPE "feedback_play_type"
+#define API_NAME_FEEDBACK_GET_RESOURCE_PATH "feedback_get_resource_path"
+#define API_NAME_FEEDBACK_SET_RESOURCE_PATH "feedback_set_resource_path"
+
+static void startup(void);
+static void cleanup(void);
+
+void (*tet_startup)(void) = startup;
+void (*tet_cleanup)(void) = cleanup;
+
+
+static void utc_system_feedback_initialize_p(void);
+static void utc_system_feedback_deinitialize_p(void);
+static void utc_system_feedback_play_p(void);
+static void utc_system_feedback_play_n(void);
+static void utc_system_feedback_play_type_p(void);
+static void utc_system_feedback_play_type_n_1(void);
+static void utc_system_feedback_play_type_n_2(void);
+static void utc_system_feedback_get_resource_path_p(void);
+static void utc_system_feedback_get_resource_path_n_1(void);
+static void utc_system_feedback_get_resource_path_n_2(void);
+static void utc_system_feedback_get_resource_path_n_3(void);
+static void utc_system_feedback_set_resource_path_p(void);
+static void utc_system_feedback_set_resource_path_n_1(void);
+static void utc_system_feedback_set_resource_path_n_2(void);
+static void utc_system_feedback_set_resource_path_n_3(void);
+static void utc_system_feedback_set_resource_path_n_4(void);
+
+enum {
+ POSITIVE_TC_IDX = 0x01,
+ NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+ { utc_system_feedback_initialize_p, POSITIVE_TC_IDX },
+ { utc_system_feedback_deinitialize_p, POSITIVE_TC_IDX },
+ { utc_system_feedback_play_p, POSITIVE_TC_IDX },
+ { utc_system_feedback_play_n, NEGATIVE_TC_IDX },
+ { utc_system_feedback_play_type_p, POSITIVE_TC_IDX },
+ { utc_system_feedback_play_type_n_1, NEGATIVE_TC_IDX },
+ { utc_system_feedback_play_type_n_2, NEGATIVE_TC_IDX },
+ { utc_system_feedback_get_resource_path_p, POSITIVE_TC_IDX },
+ { utc_system_feedback_get_resource_path_n_1, NEGATIVE_TC_IDX },
+ { utc_system_feedback_get_resource_path_n_2, NEGATIVE_TC_IDX },
+ { utc_system_feedback_get_resource_path_n_3, NEGATIVE_TC_IDX },
+ { utc_system_feedback_set_resource_path_p, POSITIVE_TC_IDX },
+ { utc_system_feedback_set_resource_path_n_1, NEGATIVE_TC_IDX },
+ { utc_system_feedback_set_resource_path_n_2, NEGATIVE_TC_IDX },
+ { utc_system_feedback_set_resource_path_n_3, NEGATIVE_TC_IDX },
+ { utc_system_feedback_set_resource_path_n_4, NEGATIVE_TC_IDX },
+ { NULL, 0 },
+};
+
+#define SOUND_FILE_PATH "/usr/share/feedback/sound/touch/touch.ogg"
+#define VIBRATION_FILE_PATH "/usr/share/deviced/HW_touch_30ms_sharp.ivt"
+
+static void startup(void)
+{
+}
+
+static void cleanup(void)
+{
+}
+
+/**
+ * @brief Positive test case of feedback_initialize()
+ */
+static void utc_system_feedback_initialize_p(void)
+{
+ int ret;
+
+ ret = feedback_initialize();
+ dts_check_eq(API_NAME_FEEDBACK_INITIALIZE, ret, FEEDBACK_ERROR_NONE);
+}
+
+/**
+ * @brief Positive test case of feedback_deinitialize()
+ */
+static void utc_system_feedback_deinitialize_p(void)
+{
+ int ret;
+
+ ret = feedback_deinitialize();
+ dts_check_eq(API_NAME_FEEDBACK_DEINITIALIZE, ret, FEEDBACK_ERROR_NONE);
+}
+
+/**
+ * @brief Positive test case of feedback_play()
+ */
+static void utc_system_feedback_play_p(void)
+{
+ int i, ret;
+
+ for (i = 0; i < FEEDBACK_PATTERN_END; ++i) {
+ dts_message(API_NAME_FEEDBACK_PLAY, "Play [%d] pattern", i);
+
+ ret = feedback_play(i);
+ dts_check_eq(API_NAME_FEEDBACK_PLAY, ret, FEEDBACK_ERROR_NONE);
+ }
+}
+
+/**
+ * @brief Negative test case of feedback_play()
+ */
+static void utc_system_feedback_play_n(void)
+{
+ int ret;
+
+ ret = feedback_play(-1);
+ dts_check_ne(API_NAME_FEEDBACK_PLAY, ret, FEEDBACK_ERROR_NONE);
+}
+
+/**
+ * @brief Positive test case of feedback_play_type()
+ */
+static void utc_system_feedback_play_type_p(void)
+{
+ int i, ret;
+
+ for (i = 0; i < FEEDBACK_PATTERN_END; ++i) {
+ dts_message(API_NAME_FEEDBACK_PLAY_TYPE, "Play [%d] pattern", i);
+
+ ret = feedback_play_type(FEEDBACK_TYPE_SOUND, i);
+ dts_check_eq(API_NAME_FEEDBACK_PLAY_TYPE, ret, FEEDBACK_ERROR_NONE, "Sound Test");
+
+ ret = feedback_play_type(FEEDBACK_TYPE_VIBRATION, i);
+ dts_check_eq(API_NAME_FEEDBACK_PLAY_TYPE, ret, FEEDBACK_ERROR_NONE, "Vibration Test");
+ }
+}
+
+/**
+ * @brief Negative test case of feedback_play_type()
+ */
+static void utc_system_feedback_play_type_n_1(void)
+{
+ int ret;
+
+ ret = feedback_play_type(-1, FEEDBACK_PATTERN_TAP);
+ dts_check_ne(API_NAME_FEEDBACK_PLAY_TYPE, ret, FEEDBACK_ERROR_NONE);
+}
+
+/**
+ * @brief Negative test case of feedback_play_type()
+ */
+static void utc_system_feedback_play_type_n_2(void)
+{
+ int ret;
+
+ ret = feedback_play_type(FEEDBACK_TYPE_SOUND, -1);
+ dts_check_ne(API_NAME_FEEDBACK_PLAY_TYPE, ret, FEEDBACK_ERROR_NONE);
+}
+
+/**
+ * @brief Positive test case of feedback_get_resource_path()
+ */
+static void utc_system_feedback_get_resource_path_p(void)
+{
+ int i, ret;
+ char *str = NULL;
+
+ for (i = 0; i < FEEDBACK_PATTERN_END; ++i) {
+ dts_message(API_NAME_FEEDBACK_GET_RESOURCE_PATH, "Get [%d] pattern path", i);
+
+ ret = feedback_get_resource_path(FEEDBACK_TYPE_SOUND, i, &str);
+ dts_check_eq(API_NAME_FEEDBACK_GET_RESOURCE_PATH, ret, FEEDBACK_ERROR_NONE,
+ "[%d] sound file path : %s", i, str);
+ free(str);
+ str = NULL;
+
+ ret = feedback_get_resource_path(FEEDBACK_TYPE_VIBRATION, i, &str);
+ dts_check_eq(API_NAME_FEEDBACK_GET_RESOURCE_PATH, ret, FEEDBACK_ERROR_NONE,
+ "[%d] vibration file path : %s", i, str);
+ free(str);
+ str = NULL;
+ }
+}
+
+/**
+ * @brief Negative test case of feedback_get_resource_path()
+ */
+static void utc_system_feedback_get_resource_path_n_1(void)
+{
+ int ret;
+ char *str = NULL;
+
+ ret = feedback_get_resource_path(-1, FEEDBACK_PATTERN_TAP, &str);
+ dts_check_ne(API_NAME_FEEDBACK_GET_RESOURCE_PATH, ret, FEEDBACK_ERROR_NONE);
+}
+
+/**
+ * @brief Negative test case of feedback_get_resource_path()
+ */
+static void utc_system_feedback_get_resource_path_n_2(void)
+{
+ int ret;
+ char *str = NULL;
+
+ ret = feedback_get_resource_path(FEEDBACK_TYPE_SOUND, -1, &str);
+ dts_check_ne(API_NAME_FEEDBACK_GET_RESOURCE_PATH, ret, FEEDBACK_ERROR_NONE);
+}
+
+/**
+ * @brief Negative test case of feedback_get_resource_path()
+ */
+static void utc_system_feedback_get_resource_path_n_3(void)
+{
+ int ret;
+
+ ret = feedback_get_resource_path(FEEDBACK_TYPE_SOUND, FEEDBACK_PATTERN_TAP, NULL);
+ dts_check_ne(API_NAME_FEEDBACK_GET_RESOURCE_PATH, ret, FEEDBACK_ERROR_NONE);
+}
+
+/**
+ * @brief Positive test case of feedback_set_resource_path()
+ */
+static void utc_system_feedback_set_resource_path_p(void)
+{
+ int i, ret;
+
+ for (i = 0; i < FEEDBACK_PATTERN_END; ++i) {
+ dts_message(API_NAME_FEEDBACK_SET_RESOURCE_PATH, "Set [%d] pattern path", i);
+
+ ret = feedback_set_resource_path(FEEDBACK_TYPE_SOUND, i, SOUND_FILE_PATH);
+ dts_check_eq(API_NAME_FEEDBACK_SET_RESOURCE_PATH, ret, FEEDBACK_ERROR_NONE);
+
+ ret = feedback_set_resource_path(FEEDBACK_TYPE_VIBRATION, i, VIBRATION_FILE_PATH);
+ dts_check_eq(API_NAME_FEEDBACK_SET_RESOURCE_PATH, ret, FEEDBACK_ERROR_NONE);
+ }
+}
+
+/**
+ * @brief Negative test case of feedback_set_resource_path()
+ */
+static void utc_system_feedback_set_resource_path_n_1(void)
+{
+ int ret;
+
+ ret = feedback_set_resource_path(-1, FEEDBACK_PATTERN_TAP, SOUND_FILE_PATH);
+ dts_check_ne(API_NAME_FEEDBACK_SET_RESOURCE_PATH, ret, FEEDBACK_ERROR_NONE);
+}
+
+/**
+ * @brief Negative test case of feedback_set_resource_path()
+ */
+static void utc_system_feedback_set_resource_path_n_2(void)
+{
+ int ret;
+
+ ret = feedback_set_resource_path(FEEDBACK_TYPE_SOUND, -1, SOUND_FILE_PATH);
+ dts_check_ne(API_NAME_FEEDBACK_SET_RESOURCE_PATH, ret, FEEDBACK_ERROR_NONE);
+}
+
+/**
+ * @brief Negative test case of feedback_set_resource_path()
+ */
+static void utc_system_feedback_set_resource_path_n_3(void)
+{
+ int ret;
+
+ ret = feedback_set_resource_path(FEEDBACK_TYPE_SOUND, FEEDBACK_PATTERN_TAP, NULL);
+ dts_check_ne(API_NAME_FEEDBACK_SET_RESOURCE_PATH, ret, FEEDBACK_ERROR_NONE);
+}
+
+/**
+ * @brief Negative test case of feedback_set_resource_path()
+ */
+static void utc_system_feedback_set_resource_path_n_4(void)
+{
+ int ret;
+
+ ret = feedback_set_resource_path(FEEDBACK_TYPE_SOUND, FEEDBACK_PATTERN_TAP, "/usr/share/no_file");
+ dts_check_ne(API_NAME_FEEDBACK_SET_RESOURCE_PATH, ret, FEEDBACK_ERROR_NONE);
+}
+
diff --git a/TC/tet_code b/TC/tet_code
deleted file mode 100755
index a2cf6c1..0000000
--- a/TC/tet_code
+++ /dev/null
@@ -1,12 +0,0 @@
-# TET reserved codes
-0 "PASS"
-1 "FAIL"
-2 "UNRESOLVED"
-3 "NOTINUSE"
-4 "UNSUPPORTED"
-5 "UNTESTED"
-6 "UNINITIATED"
-7 "NORESULT"
-
-# Test suite additional codes
-33 "INSPECT"
diff --git a/TC/tet_scen b/TC/tet_scen
index 43cbc9b..03f029a 100755..100644
--- a/TC/tet_scen
+++ b/TC/tet_scen
@@ -4,4 +4,4 @@ all
# Test scenario
TEST
- :include:/unit/tslist
+ :include:/testcase/tslist
diff --git a/TC/tetbuild.cfg b/TC/tetbuild.cfg
index a584acd..f7eda55 100755..100644
--- a/TC/tetbuild.cfg
+++ b/TC/tetbuild.cfg
@@ -1,2 +1,5 @@
-TET_OUTPUT_CAPTURE=False
-TET_BUILD_TOOL=make
+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
index c66eda4..02d7030 100755..100644
--- a/TC/tetclean.cfg
+++ b/TC/tetclean.cfg
@@ -1,2 +1,5 @@
-TET_OUTPUT_CAPTURE=False
-TET_CLEAN_TOOL=make clean
+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
index 0d9d39a..ef3e452 100755..100644
--- a/TC/tetexec.cfg
+++ b/TC/tetexec.cfg
@@ -1 +1,5 @@
-TET_OUTPUT_CAPTURE=False
+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 ?
diff --git a/TC/unit/Makefile b/TC/unit/Makefile
deleted file mode 100755
index 0f41c47..0000000
--- a/TC/unit/Makefile
+++ /dev/null
@@ -1,22 +0,0 @@
-CC ?= gcc
-
-TARGETS = utc_ApplicationFW_svi_init_func utc_ApplicationFW_svi_fini_func utc_ApplicationFW_svi_play_func
-
-PKGS = vconf devman_haptic mm-sound dlog svi
-
-LDFLAGS = `pkg-config --libs $(PKGS)`
-LDFLAGS += $(TET_ROOT)/lib/tet3/tcm_s.o
-LDFLAGS += -L$(TET_ROOT)/lib/tet3 -ltcm_s
-LDFLAGS += -L$(TET_ROOT)/lib/tet3 -lapi_s
-
-CFLAGS = -I. `pkg-config --cflags $(PKGS)`
-CFLAGS += -I$(TET_ROOT)/inc/tet3
-CFLAGS += -Wall
-
-all: $(TARGETS)
-
-$(TARGETS): %: %.c
- $(CC) -o $@ $< $(CFLAGS) $(LDFLAGS)
-
-clean:
- rm -f $(TARGETS)
diff --git a/TC/unit/tc_gen.sh b/TC/unit/tc_gen.sh
deleted file mode 100755
index 54f482d..0000000
--- a/TC/unit/tc_gen.sh
+++ /dev/null
@@ -1,28 +0,0 @@
-#!/bin/sh
-
-TMPSTR=$0
-SCRIPT=${TMPSTR##*/}
-
-if [ $# -lt 2 ]; then
- echo "Usage) $SCRIPT module_name api_name"
- exit 1
-fi
-
-MODULE=$1
-API=$2
-TEMPLATE=utc_MODULE_API_func.c.in
-TESTCASE=utc_${MODULE}_${API}_func
-
-sed -e '
- s^@API@^'"$API"'^g
- s^@MODULE@^'"$MODULE"'^g
- ' $TEMPLATE > $TESTCASE.c
-
-if [ ! -e "$TESTCASE.c" ]; then
- echo "Failed"
- exit 1
-fi
-echo "Testcase file is $TESTCASE.c"
-echo "Done"
-echo "please put \"$TESTCASE\" as Target in Makefile"
-echo "please put \"/unit/$TESTCASE\" in tslist"
diff --git a/TC/unit/tslist b/TC/unit/tslist
deleted file mode 100755
index 6de8918..0000000
--- a/TC/unit/tslist
+++ /dev/null
@@ -1,3 +0,0 @@
-/unit/utc_ApplicationFW_svi_init_func
-/unit/utc_ApplicationFW_svi_fini_func
-/unit/utc_ApplicationFW_svi_play_func
diff --git a/TC/unit/utc_ApplicationFW_svi_fini_func.c b/TC/unit/utc_ApplicationFW_svi_fini_func.c
deleted file mode 100755
index e67311a..0000000
--- a/TC/unit/utc_ApplicationFW_svi_fini_func.c
+++ /dev/null
@@ -1,79 +0,0 @@
-/*
- * libsvi
- *
- * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Seokkyu Jang <seokkyu.jang@samsung.com>
- * Contact: Sangil Yoon <si83.yoon@samsung.com>
- *
- * 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 <svi.h>
-
-static void startup(void);
-static void cleanup(void);
-
-void (*tet_startup)(void) = startup;
-void (*tet_cleanup)(void) = cleanup;
-
-static void utc_ApplicationFW_svi_fini_func_01(void);
-
-static int handle = 0;
-
-enum {
- POSITIVE_TC_IDX = 0x01,
-};
-
-struct tet_testlist tet_testlist[] = {
- { utc_ApplicationFW_svi_fini_func_01, POSITIVE_TC_IDX },
- { NULL, 0},
-};
-
-static void startup(void)
-{
- int r;
- char *err;
-
- r = svi_init(&handle);
-
- if (r) {
- err = "Cannot init svi";
- tet_infoline(err);
- tet_delete(POSITIVE_TC_IDX, err);
-
- }
-}
-
-static void cleanup(void)
-{
-}
-
-/**
- * @brief Positive test case of svi_fini()
- */
-static void utc_ApplicationFW_svi_fini_func_01(void)
-{
- int r = 0;
-
- r = svi_fini(handle);
-
- if (r) {
- tet_infoline("svi_fini() failed in positive test case");
- tet_result(TET_FAIL);
- return;
- }
- tet_result(TET_PASS);
-}
diff --git a/TC/unit/utc_ApplicationFW_svi_init_func.c b/TC/unit/utc_ApplicationFW_svi_init_func.c
deleted file mode 100755
index 1dedf1d..0000000
--- a/TC/unit/utc_ApplicationFW_svi_init_func.c
+++ /dev/null
@@ -1,72 +0,0 @@
-/*
- * libsvi
- *
- * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Seokkyu Jang <seokkyu.jang@samsung.com>
- * Contact: Sangil Yoon <si83.yoon@samsung.com>
- *
- * 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 <svi.h>
-
-static void startup(void);
-static void cleanup(void);
-
-void (*tet_startup)(void) = startup;
-void (*tet_cleanup)(void) = cleanup;
-
-static void utc_ApplicationFW_svi_init_func_01(void);
-
-static int handle = 0;
-
-enum {
- POSITIVE_TC_IDX = 0x01,
-};
-
-struct tet_testlist tet_testlist[] = {
- { utc_ApplicationFW_svi_init_func_01, POSITIVE_TC_IDX },
- { NULL, 0},
-};
-
-static void startup(void)
-{
-}
-
-static void cleanup(void)
-{
-}
-
-/**
- * @brief Positive test case of svi_init()
- */
-static void utc_ApplicationFW_svi_init_func_01(void)
-{
- int r = 0;
-
-
- r = svi_init(&handle);
-
- if (r) {
- tet_infoline("svi_init() failed in positive test case");
- tet_result(TET_FAIL);
- return;
- }
- tet_result(TET_PASS);
-
- svi_fini(handle);
-}
-
diff --git a/TC/unit/utc_ApplicationFW_svi_play_func.c b/TC/unit/utc_ApplicationFW_svi_play_func.c
deleted file mode 100755
index e7740ac..0000000
--- a/TC/unit/utc_ApplicationFW_svi_play_func.c
+++ /dev/null
@@ -1,135 +0,0 @@
-/*
- * libsvi
- *
- * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Seokkyu Jang <seokkyu.jang@samsung.com>
- * Contact: Sangil Yoon <si83.yoon@samsung.com>
- *
- * 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 <svi.h>
-#include <stdio.h>
-
-static void startup(void);
-static void cleanup(void);
-
-void (*tet_startup)(void) = startup;
-void (*tet_cleanup)(void) = cleanup;
-
-static void utc_ApplicationFW_svi_play_func_01(void);
-static void utc_ApplicationFW_svi_play_func_02(void);
-
-static int handle = 0;
-enum {
- POSITIVE_TC_IDX = 0x01,
- NEGATIVE_TC_IDX,
-};
-
-struct tet_testlist tet_testlist[] = {
- { utc_ApplicationFW_svi_play_func_01, POSITIVE_TC_IDX },
- { utc_ApplicationFW_svi_play_func_02, NEGATIVE_TC_IDX },
- { NULL, 0},
-};
-
-static void startup(void)
-{
- int r;
- char *err;
-
- r = svi_init(&handle);
-
- if (r) {
- err = "Cannot init svi";
- tet_infoline(err);
- tet_delete(POSITIVE_TC_IDX, err);
- tet_delete(NEGATIVE_TC_IDX, err);
- }
-}
-
-static void cleanup(void)
-{
- svi_fini(handle);
-}
-
-/**
- * @brief Positive test case of svi_play()
- */
-static void utc_ApplicationFW_svi_play_func_01(void)
-{
- int r = 0;
-
- r = svi_play(handle, SVI_VIB_NONE, SVI_SND_NONE);
-
- if (r) {
- tet_infoline("svi_play() failed in positive test case");
- tet_result(TET_FAIL);
- return;
- }
-
- r = svi_play(handle, SVI_VIB_TOUCH_TOUCH, SVI_SND_TOUCH_TOUCH1);
-
- if (r) {
- tet_infoline("svi_play() failed in positive test case");
- tet_result(TET_FAIL);
- return;
- }
-
- r = svi_play(handle, SVI_VIB_OPERATION_VIBRATION, SVI_SND_TOUCH_KEY00);
-
- if (r) {
- tet_infoline("svi_play() failed in positive test case");
- tet_result(TET_FAIL);
- return;
- }
-
- r = svi_play(handle, SVI_VIB_OPERATION_POWER_ON, SVI_SND_TOUCH_KEY_STAR);
-
- if (r) {
- tet_infoline("svi_play() failed in positive test case");
- tet_result(TET_FAIL);
- return;
- }
-
- tet_result(TET_PASS);
-}
-
-/**
- * @brief Negative test case of ug_init svi_play()
- */
-static void utc_ApplicationFW_svi_play_func_02(void)
-{
- int r = 0;
-
- r = svi_play(handle, -100, SVI_SND_NONE);
-
- if (r != -1) {
- tet_infoline("svi_play() failed in negative test case");
- tet_result(TET_FAIL);
- return;
- }
-
- r = svi_play(handle, SVI_VIB_NONE, -100);
-
- if (r != -1) {
- tet_infoline("svi_play() failed in negative test case");
- tet_result(TET_FAIL);
- return;
- }
-
-
- tet_result(TET_PASS);
-}
diff --git a/TC/unit/utc_MODULE_API_func.c.in b/TC/unit/utc_MODULE_API_func.c.in
deleted file mode 100755
index b235fa3..0000000
--- a/TC/unit/utc_MODULE_API_func.c.in
+++ /dev/null
@@ -1,64 +0,0 @@
-#include <tet_api.h>
-
-static void startup(void);
-static void cleanup(void);
-
-void (*tet_startup)(void) = startup;
-void (*tet_cleanup)(void) = cleanup;
-
-static void utc_@MODULE@_@API@_func_01(void);
-static void utc_@MODULE@_@API@_func_02(void);
-
-enum {
- POSITIVE_TC_IDX = 0x01,
- NEGATIVE_TC_IDX,
-};
-
-struct tet_testlist tet_testlist[] = {
- { utc_@MODULE@_@API@_func_01, POSITIVE_TC_IDX },
- { utc_@MODULE@_@API@_func_02, NEGATIVE_TC_IDX },
-};
-
-static void startup(void)
-{
-}
-
-static void cleanup(void)
-{
-}
-
-/**
- * @brief Positive test case of @API@()
- */
-static void utc_@MODULE@_@API@_func_01(void)
-{
- int r = 0;
-
-/*
- r = @API@(...);
-*/
- if (r) {
- tet_infoline("@API@() failed in positive test case");
- tet_result(TET_FAIL);
- return;
- }
- tet_result(TET_PASS);
-}
-
-/**
- * @brief Negative test case of ug_init @API@()
- */
-static void utc_@MODULE@_@API@_func_02(void)
-{
- int r = 0;
-
-/*
- r = @API@(...);
-*/
- if (r) {
- tet_infoline("@API@() failed in negative test case");
- tet_result(TET_FAIL);
- return;
- }
- tet_result(TET_PASS);
-}